[mythtvnz] Cutting H.264 DVB-T files with ffmpeg without transcoding

David Moore dmoo1790 at ihug.co.nz
Wed Jul 21 02:06:46 BST 2010


Craig Blaikie wrote:
> 
> Found a problem clip in my system where the audio and video timestamps? are
> out of sync at the beginning, if played in VLC the video pauses on the start
> frame for a second, while the audio keeps playing.  Once the video starts,
> the audio is in sync, and it all looks normall.  This always seemed to make
> the final video that came out from ffmpeg to have video and audio that was
> out of sync, and a -vsync 1 inserted into the ffmpeg command line fixed it
> for me.  Not sure if it would work for you as you are cutting, not encoding,
> but worth a try.
> The -vsync 1 command makes ffmpeg insert/drop frames until everything
> matches.
> 
> Cheers,
>   Craig
> 
Thanks Craig. I have tried the various vsync and async options before. I 
  use "-async 1" most of the time and that works fine _if_ ffmpeg 
doesn't choke on the recording. The sync options don't help if ffmpeg 
hangs or fails in some other catastrophic way.



More information about the mythtvnz mailing list