MP4 ffmpeg mux broken with movflags=empty_moov
Hi,
I'm transcoding video like this:
./vlc --file-caching 3000 -v ~/input.mp4 vlc://quit --sout '#transcode{vcodec=h264,vb=1000,acodec=mp4a,aenc=fdkaac,ab=128,scale=0.5,channels=2}:std{access=file,mux=ffmpeg{mux=mp4},dst=output.mp4}' --sout-x264-preset faster --sout-x264-tune film --sout-mux-caching 8000 --sout-transcode-deinterlace 1 --sout-deinterlace-mode=yadif --sout-x264-vbv-maxrate 5000 --sout-x264-vbv-bufsize 5000 --sout-avformat-options movflags=empty_moov
This results in a file where the video pts is completely broken. mplayer shows the first frame and then gets stuck on V:279620.3, VLC immediately outputs
TagLib: MP4: No audio tracks
over and over again in an infinite loop.
If I remove the argument movflags=empty_moov, the file encodes and muxes as it should.