[gst-devel] Audio playback not sync with video playback

Rodney Dowdall rdowdall at cranksoftware.com
Wed Jun 16 19:02:25 CEST 2010


Hello Eric

I think you need to set sync=true on the video and audio syncs, so try:

gst-launch filesrc location=/home/out_CR.avi ! avidemux name=demux demux.audio_00 ! queue ! mad ! volume volume=0.5 ! alsasink sink=true  demux.video_00 ! queue ! video mpeg,scalewidth=512,scaleheight=288 ! mympeg4dec ! ximagesink sync=true

I think that should work.

Rodney

On 10-06-16 05:13 AM, ericcardmanNo3 wrote:
> playing avi (mpeg4/mp3) files result in a bit faster video playback than
> audio playback.
> does anyone know such problem? how to solve it?
>
> i do:
>
> gst-launch filesrc location=/home/out_CR.avi ! avidemux name=demux
> demux.audio
> _00 ! mad ! volume volume=0.5 ! alsasink  demux.video_00 ! queue ! video
> /mpeg,scalewidth=512,scaleheight=288 ! mympeg4dec ! ximagesink
>
> if i do:
>
> gst-launch filesrc location=/home/out_CR.avi ! avidemux name=demux
> demux.audio
> _00 ! queue ! mad ! volume volume=0.5 ! alsasink  demux.video_00 ! queue !
> video
> /mpeg,scalewidth=512,scaleheight=288 ! mympeg4dec ! ximagesink
>
> audio is more behind video than in first pipeline.
>
> the mympeg4dec decodes frames in hardware.
>
> thx.
>
>    


-- 

*
Rodney Dowdall
**Crank Software Inc.
**Office*: 613-595-1999
*Online*: www.cranksoftware.com <http://www.cranksoftware.com/>
*Check out*: Crank Software's Blog <http://cranksoftware.com/blog/>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100616/801edff6/attachment.htm>


More information about the gstreamer-devel mailing list