Replies: 3 comments
-
Just a quick reply to confirm I am still seeing the issue in 1.4.1 and 1.4.2. My work around is to copy the MP4 with ffmpeg after MediaMTX is finished with it using: ffmpeg -i inputfile.mp4 -c copy outputfile.mp4 The new files seem to be usable. |
Beta Was this translation helpful? Give feedback.
-
Hello, first of all, if you increase Second thing, recording segments are saved in the "fragmented MP4" format, that is robust against crashes but doesn't provide an explicit duration and has limited compatibility with some players. We cannot use the standard MP4 format since a single crash is enough to make the file completely unusable. If you want to get your recordings in the Standard MP4 format, which provides the duration and is compatible with every player, you can enable the playback server as described in the README, and then specify the "mp4" output format:
Example:
|
Beta Was this translation helpful? Give feedback.
-
Hi @aler9, I am experiencing the same issue as @Taps7734 and adding For example, in Firefox, I can scrub these videos, but the duration is maxed out at 1 minute. I used the same workaround @Taps7734 mentioned, converting the completed segments using ffmpeg when the segment completes, and those mp4s work perfectly fine. Using the converted mp4s, I replaced the originals in the I would be really grateful if you could share some insight on how to get this working using |
Beta Was this translation helpful? Give feedback.
-
I am saving some streams using the following settings :
recordPath: D:/Stream/recordings/%path/%Y/%m-%d/%Y.%m.%d-%H.%M.%S
recordFormat: fmp4
recordPartDuration: 100ms
recordSegmentDuration: 30m
recordDeleteAfter: 24h
This is using MediaMTX 1.4.0 (also happened with 1.3.0 and 1.3.1) running on a Windows 2016 Server.
If I open the MP4 in Windows Media Player, then the video shows as 0:00 in length, and I am unable to scrub to a specific location in the video.
If I open in in the Windows 11 Photos App, then the length shows up as 26113:24. I am still unable to scrub.
If I open it in VLC, it takes a 40-60 seconds to open, but eventually shows the correct length, and I am able to scrub.
I also have these file available on an IIS website to view using video.js. They do seem to load, but it takes a minute or so to load no matter how small the files actually are.
This happens no matter how long the videos are. And It does it both when I use WHIP or RTMP to publish the video.
Is there a setting I am missing?
Beta Was this translation helpful? Give feedback.
All reactions