I am trying to record a UDP/TS stream and save it to disk in MP4 format using the following syntax:
vlc udp://@:5001 --sout=file/mp4:record.mp4
The transport stream has H.264 and AAC streams. While recording VLC often prints the following warning:
When playing the recorded files with vlc playback stutters as if frames where dropped every second. This is about the interval in which the warnings appeared while recording. I found a similar issue in trac (ticket 2715) and it is marked as fixed. I am using vlc 2.1.0 x64 on Windows.mux_mp4 warning: i_length <= 0
However, when I record the stream to MKV the files play smooth in vlc. And when I remux them using mp4box the remuxed files also play smooth in vlc.
When I remux mp4 and mkv files that are playing smooth in vlc using vlc --sout, the remuxed files don't play smooth any more.
I analyzed the files with MediaInfo and I determined that are differences in the frame rates. E. g. I have a file with 25 fps constant frame rate. After remuxing it with vlc it has variable frame rate between 24.415 fps and 25.025 fps. In the trac ticket the author reports relation to the frame rate too.
What can I do? Try an older version of vlc? Maybe 32 bit build? Is there any parameter for the muxer to write a fixed frame rate that would possibly help? The stream must be recorded in MP4 and if I am not able to solve this I have to switch to another solution (outside of vlc). But at the time being, I find vlc the sweetest solution for stream recording...
Best regards
Steve Eschke