[gst-devel] video encoding out of sync

Sameer Naik sameer at damagehead.com
Thu Oct 25 07:44:24 CEST 2007


i am trying to encode a video using gstreamer, heres the pipeline is
used to get the task done:

gst-launch filesrc location=480x360.avi ! decodebin name=decbin !
queue ! ffmpegcolorspace ! xvidenc ! queue ! avimux name=mux decbin. !
queue ! audioconvert ! ffenc_mp2 ! queue ! mux. mux. ! queue ! filesink
location=encoded.avi

the file gets encoded, but the problem is the a/v sync is lost.

now, if i run the following pipeline

gst-launch filesrc location=480x360.avi ! decodebin name=decbin !
queue ! ffmpegcolorspace ! theoraenc ! queue ! oggmux name=mux decbin. !
queue ! audioconvert ! vorbisenc ! queue ! mux. mux. ! queue ! filesink
location=encoded.ogg

i have a perfectly avsync'ed video.
which makes me wonder why the first pipeline doesn't yield the expected
results. is there something missing in the pipeline?
im starting to suspect that avimux is the culprit here.

any thoughts on this?

~sameer










More information about the gstreamer-devel mailing list