[gst-devel] Slight audio/video sync problem - any suggestions?

Jason L. Buberel jason at buberel.org
Tue Mar 4 02:22:01 CET 2008


I recently acquired a Logitech Quickcam Pro for Notebooks, and have been 
trying to use gstreamer to capture synchronized audio/video from the 
device. The camera is a USB Video/Audio device, and I am using the v4l2 
driver.

My general configuration is:

Ubuntu 7.10
 > dpkg --list 'gstreamer*' | grep "^ii"
ii  gstreamer0.10-alsa                    0.10.14-1ubuntu3 GStreamer 
plugin for ALSA
ii  gstreamer0.10-esd                     0.10.6-0ubuntu4  GStreamer 
plugin for ESD
ii  gstreamer0.10-ffmpeg                  0.10.2-2ubuntu1  FFmpeg plugin 
for GStreamer
ii  gstreamer0.10-gnomevfs                0.10.14-1ubuntu3 GStreamer 
plugin for GnomeVFS
ii  gstreamer0.10-gnonlin                 0.10.9-1         non-linear 
editing module for GStreamer
ii  gstreamer0.10-plugins-bad             0.10.5-4ubuntu1  GStreamer 
plugins from the "bad" set
ii  gstreamer0.10-plugins-bad-multiverse  0.10.5-1         GStreamer 
plugins from the "bad" set (Multiv
ii  gstreamer0.10-plugins-base            0.10.14-1ubuntu3 GStreamer 
plugins from the "base" set
ii  gstreamer0.10-plugins-base-apps       0.10.14-1ubuntu3 GStreamer 
helper programs from the "base" se
ii  gstreamer0.10-plugins-good            0.10.6-0ubuntu4  GStreamer 
plugins from the "good" set
ii  gstreamer0.10-plugins-ugly            0.10.6-0ubuntu2  GStreamer 
plugins from the "ugly" set
ii  gstreamer0.10-plugins-ugly-multiverse 0.10.6-0ubuntu1  GStreamer 
plugins from the "ugly" set (Multi
ii  gstreamer0.10-tools                   0.10.14-1ubuntu3 Tools for use 
with GStreamer
ii  gstreamer0.10-x                       0.10.14-1ubuntu3 GStreamer 
plugins for X11 and Pango

The command I am using is:

gst-launch-0.10 v4l2src ! queue ! videorate ! 
video/x-raw-yuv,width=800,height=600,framerate=15/1 \
  ! ffmpegcolorspace ! theoraenc ! queue ! oggmux name=mux alsasrc 
device="hw:1,0" \
  ! audiorate ! audio/x-raw-int,rate=16000,channels=1,depth=16 ! queue ! 
audioconvert ! vorbisenc \
  !  mux. mux. ! queue ! filesink sync=true location=test.ogg

The result of that can be seen:
http://www.buberel.org/test.ogg

As you can see, there is a slight but significant sync problem between 
the video and audio. Are there any additional options that I can or 
should be using in order to better synchronize the audio and video?

Thanks,
Jason






More information about the gstreamer-devel mailing list