VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Member
    Join Date
    Dec 2013
    Location
    Stockholm
    Search PM
    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?
    Quote Quote  
  2. Explorer Case's Avatar
    Join Date
    Feb 2004
    Location
    Middle Earth
    Search Comp PM
    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"
    Quote Quote  
  3. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    I'm moving you to our mac section. Ffmpegx!=ffmpeg.

    I was just going to suggest that you should try remux with mp4box.....
    Quote Quote  
  4. Member
    Join Date
    Dec 2013
    Location
    Stockholm
    Search PM
    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)
    Quote Quote  
  5. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    But you posted in the ffmpegx section.
    Quote Quote  
  6. Member
    Join Date
    Dec 2013
    Location
    Stockholm
    Search PM
    Oh, ok
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!