On Thu, Oct 14, 2010 at 12:05:09AM +0000, Jacob Meuser wrote:
fwiw, this is what I use, because using ffmpeg to capture directly from
video(4) has never worked for me:
$ video -f /dev/video1 -e yuy2 -s 640x480 -r 20 -o - | ffmpeg -y \
-f rawvideo -pix_fmt yuyv422 -s 640x480 -r 20 -i - \
-itsoffset 0.5 -f sndio -ar 16000 -ac 1 -i sun:1 out.avi
the audio is just slightly ahead (out of sync) without the -itsoffset.
the sndio backend in ffmpeg has fairly accurate timestamping; the
stamps should represent when the sound actually happened. video(1) otoh
is just outputting a stream of raw frames, so ffmpeg assumes the
frames' timestamp is when they are read from stdin. apparently on this
system with this camera it takes about a half second for images to be
captured and sent to stdout.
--
jakemsr@sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org