I'm testing SRS on my server. I have a problem when using DVR to save WebRTC to an mp4 file. The mp4 file only has some seconds, not full time (sometimes it only has 1 second). Do you have any suggestions for my case?
SRS server, DVR doesn’t work correctly with WebRTC
230 Views Asked by anhhtbk At
1
There are 1 best solutions below
Related Questions in WEBRTC
- WebRTC close navigator.getUserMedia correctly
- Android WebRTC compile
- Java-based WebRTC SFU implementation for Spring Boot project
- Web RTC simple peer connection with socket.io could not be established
- WebRTC from Firefox to Android crashes
- How can I connect to a websocket from a vue app that is exposed to the network (yarn dev --host)?
- How to setup multiple peer connection with datachannels?
- Webrtc initial negotiation succeeds but renegotiation fails
- Webrtc Vulnerable Version
- aiortc: Combining multiple mp3 files to be returned as a single MediaStreamTrack
- WebRTC Data Channel is always in connecting state
- WebRTC ICE fails for IOS Browsers
- Need to connect my WebRTC stream(Handled by PeerJS) to my Asterisk server
- aiortc: Recording video on server discards beyond a few seconds
- Android 12+: Microphone stops in WebRTC app within a WebView when screen is locked or user switches apps
Related Questions in SRS
- How throw error when export (SRS) Report to pdf file when subreport fail
- Do SRS documents have a format?
- SRS server, DVR doesn’t work correctly with WebRTC
- Unity-SRS player does not work after publishing
- What would be the correct way to use Exec or Transcode ffmpeg in SRS version of Windows 5.0.128
- How to generate multiple resolutions HLS using FFmpeg for live streaming
- How can we build ER diagram and class diagram for project which uses firebase(NoSQL) as storage?
- Use Case Diagram relationship
- how to create a for loop in R to run a simple random sample and calculate the average of each set
- Stream Video to one user and receive audio from the user
- SQL- Weekly report seven days (Sunday to Saturday )
- Is is possible to have multiple users in an activity diagram
- use case diagrams - for two application (Software requirements specification document)
- use-case diagram for SVN commit operation
- When we writing a use case scenario what should I do if there is an extention point?
Related Questions in SIMPLE-REALTIME-SERVER
- The m3u8 files created by SRS won't play in only iOS safari, but other m3u8 files work in iOS, Android and Web
- Why does SRS not recognize the audio format correctly in an RTMP stream?
- How to build video conference web app based on SRS ( Simple Realtime Server - https://github.com/ossrs/srs ) - WebRTC
- SRS server, DVR doesn’t work correctly with WebRTC
- Unity-SRS player does not work after publishing
- How to enable multi threading on SRS
- trying to modify SRS: where is the directory ./objs?
- What would be the correct way to use Exec or Transcode ffmpeg in SRS version of Windows 5.0.128
- webrtc getUserMedia : how to get a stream from getUserMedia and publish it to SRS?
- SRS configure error in Mac pro m1 (arm64 cpu)- ld: symbol(s) not found for architecture i386
- In SRS Is it possible to Transcode with an FFMPEG -encoder that is not libx264?
- Real time livestreaming - RPI FFmpeg and H5 Player
- How to generate multiple resolutions HLS using FFmpeg for live streaming
- DVR RTMP Stream into HLS (m3u8) in SRS
- how to config rtmp://example.com when using SRS livestream
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
For the feature WebRTC DVR, SRS converts WebRTC to RTMP, then DVR RTMP to FLV or MP4 file.
WebRTC video stream changes the SPS/PPS now and then, which means there would be more than one SPS/PPS frame, actually there is one before each keyframe.
It works well for DVR WebRTC to FLV file, because FLV supports SPS/PPS change. But for MP4, it fails because it doesn't support SPS/PPS change.
There is a solution:
Please note that you should use FFmpeg to transcode the FLV file, not only transmux the format, here is an example:
Here we transcode the video stream and copy the audio stream, which has already been transcoded from opus by SRS.