-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebRtc recording interrupted unexpectedly while recording Mp4 #3073
Comments
In addition, there are situations where the recording is interrupted due to an inability to determine the source of the problem.
Among them, there were numerous errors like I can confirm that there was no rotation occurring here (because I am using a PC browser).
|
Here, I hope that if there is an error during video recording
|
WebRTC recording is a challenge, this thing often changes sps/pps. If HLS is working properly, you can consider using on_hls for recording. For more details, please refer to #1577.
|
I haven't tried HLS yet, but I feel that the more complex it is, the more likely it is to have issues. I think it would be more stable to save WebRTC as webm, taking reference from open-source codes like Google Chrome browser.
|
Changing the resolution during webrtc recording does indeed cause the DVR recording to fail. I have looked into the recording documentation for HLS and configured hls_cleanup to be off, which prevents the deletion of ts files. However, it seems that the m3u8 file cannot save all the ts information completely and may delete old ones based on the configuration rules. I noticed that srs-cloud seems to be able to do this. How can I configure it to save the complete m3u8 file? I would like to use this to solve the recording issue.
|
WebRtc streaming connection is normal, mp4.tmp or mp4 file is successfully created. If the mp4 file is generated successfully, its duration will be shorter than the duration of the WebRtc streaming connection.
SRS Version:
4.0.251
SRS Log:
Replay (重现)
When the rotation function is enabled on the mobile phone, the video recording is immediately interrupted after rotation.
Expect (Expected Behavior)
If the video cannot be recorded in one file, please create a new file for recording.
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: