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.
Code: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)
Similar Threads
-
MP4 file out of sync in VLC, not in MPC-HC
By M3mbr4n3 in forum Software PlayingReplies: 17Last Post: 9th Feb 2013, 15:07 -
Cannot seem to convert MKV to MP4 or AVI to MP4 without audio sync issues
By Matth3w in forum Video ConversionReplies: 0Last Post: 16th Sep 2012, 13:36 -
MP4 file I create is silent in Quicktime, OK in VLC; unless remuxed. why?
By blueseth in forum ProgrammingReplies: 2Last Post: 19th Jun 2012, 02:03 -
converting asf file audio sync issues
By andy99 in forum Video ConversionReplies: 4Last Post: 21st Jan 2011, 03:09 -
Fixing audio sync issues when using GOTSent to convert MKV to MP4
By darrklight1138 in forum Newbie / General discussionsReplies: 1Last Post: 20th Apr 2009, 06:56