[FFmpeg-user] convertion from h264 to mp4 for MSE

Gyan Doshi gyandoshi at gmail.com
Sat Dec 23 06:40:35 EET 2017

On 12/22/2017 1:59 PM, Grzegorz Wolny wrote:
> ffmpeg -f h264 -i 720p.h264 -c:v copy -an -movflags 
> frag_keyframe+empty_moov+default_base_moof -f  mp4  720p.mp4
> but the output stream is not correctly played by chrome. It looks like 
> I would like to notice that the same h264 stream has been successfully 
> converted to mp4 by mp4box command:

There's a longstanding FFmpeg bug in assigning PTS to raw H264 streams 
with B-frames. PTS is assigned the same as DTS i.e. in coded order, but 
it should increase along display order. Stick with MP4box.


More information about the ffmpeg-user mailing list