[Ffmpeg-devel] audio/video sync

Cyrus A lists
Sat Aug 26 22:13:17 CEST 2006


I'm trying to encode video from an ivtv-based TV capture card using the 
following command:

ffmpeg -i /dev/video0 -s 480x384 -b 2000 outfile.mpg

but the audio is slightly ahead of the video. I know that the device is 
fine because

cat /dev/video0 > hardware_outfile.mpg

produces the mpeg-2 hardware encoded mpeg in its original bitrate and 
size with the audio/video sync'd up perfectly.  What options do I have 
for syncing the video?

By the way, using ffmpeg to reencode hardware_outfile.mpg after the fact 
works fine, too.

Any help is greatly appreciated.

Cyrus




More information about the ffmpeg-devel mailing list