Skip to content
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

Firefox webrtc h264 stream recording problem. Mediamtx keeps creating new recording segments and closing them instantly. #3986

Open
tapiolinnimaki opened this issue Nov 28, 2024 · 0 comments

Comments

@tapiolinnimaki
Copy link

Which version are you using?

bluenviron/mediamtx:1.9.3-ffmpeg docker image

Which operating system are you using?

Windows amd64 Docker (WSL backend)

Describe how to replicate the issue

  1. Enable recording in the mediamtx.yml (record: yes), leave other settings to default values
  2. Start the mediamtx server docker container
  3. In Firefox browser navigate to the webrtc publish web page http://localhost:8889/mystream/publish
  4. Set video codec to "H264" and press the publish button

The live stream works well, but mediamtx keeps creating new recording segments for the stream and closes them instantly. So in the end there ends up being many 1 second long recording segments (mp4 files) for one stream, even though the recordSegmentDuration setting is set to the default "1h". This seems to be affected by the recordPartDuration setting which was the default "1s". When I changed the recordPartDuration to "10s" then mediamtx creates a new recording segment every 10 seconds so each recording segment (mp4 file) duration ends up being 10s.

This seems to happen only when using Firefox. On Chrome the recording segment creating and closing (output mp4 file durations) seems to be affected as expected by the recordSegmentDuration setting instead of the recordPartDuration setting.

Server logs

firefox-webrtc-h264-record-bug.log

Network dump

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant