When I save an HLS-stream to disk as mp4 with the following ffmpeg-command everything is fine in VLC and Mplayer, but when played back in QuickTime the audio is not in sync with the video.
ffmpeg -i "http://svtplay5r-f.akamaihd.net/i/se/open/20131207/1324831-049A/SPORTNYTT_19-049A-77597eef55d579cd_,900,348,564,1680,2800,.mp4.csmil/index_4_av.m3u8?null=" -acodec copy -vcodec copy -absf aac_adtstoasc "myfile.mp4"
(the HLS stream might only be available in Sweden so maybe the command won't work for you if you're not in Sweden. You can download the resulting myfile.mp4 (295 MB) here: https://dl.dropboxusercontent.com/u/8277136/myfile.mp4)
After a bit of googling my best guess is that some sort of metadata information about audio sync isn't respected by QuickTime but something that VLC and MPlayer looks at. But I'm really not sure what causes this problem.
Any suggestions on how to address this issue?
+ Reply to Thread
Results 1 to 6 of 6
Your MP4 file was only slightly out of sync on my system. But re-muxing it (with MP4Box) made it all better on my end.
mp4box -add "myfile.mp4" "myfile-v2.mp4"
Is it possible to change the arguments in some way to make ffmpeg do it correct right away? I'm building an automatated flow which will be used over and over again so it's good to minimize the steps. Or can mp4box aggregate an HLS stream into an mp4 file?
Btw, I'm not using ffmpegX. I am using ffmpeg compiled for mac os x (http://ffmpegmac.net)
But you posted in the ffmpegx section.