[gst-devel] AV SYNC Problem of gstreamer when using customized dsp decoder

Volter Yen volter619 at 163.com
Tue Oct 23 06:05:48 CEST 2007


Hi pritesh,   theorectically,you are right if timestamp from decoder plugins are proper,there will be no av sync problem, but the problem is that the dsp decoder is blackbox(put encoded datum in, and get decoded datum out)for me how can I guarantee that it do the correct thing(set the correct timestamp), so maybe there will extra thing to do in the gstreamer application,and what is it?and how? thanks !    
在2007-10-23,pritesh <digitaldsp at excite.com> 写道:
hi,
if timestamp from decoder plugins are proper ,
then av sync is done in video/audio sink plugins
if u have custom videosink plugin , is it subclassed from videosink base class, which derives from basesink.
--- On Mon 10/22, Volter Yen <volter619 at 163.com > wrote:
From:Volter Yen [mailto:volter619 at 163.com]
To:gstreamer-devel at lists.sourceforge.net
Date:Tue, 23 Oct 2007 10:55:56 +0800 (CST)
Subject:[gst-devel] AV SYNC Problem of gstreamer when using customized dsp decoder
Hi all,
Recently, I want to implement a simple mpeg2-ts palyer using gstreamer framework,and the decodec element are customized with dsp, and my demuxer is flutsdemux, Gaurav have told me that the demux will push the two on seperate pads in buffers after applying the same timestamp ,and the the sinks (audio and video ) will play the buffers depending on the stream time and timestamps...
and I have read the source code of mpeg2dec which used libmpeg2, it will adjust the outbuffer's timestamps with the related pts if necessary??but when I use a dsp decoder,It seem that I can get only the decoded data from it's outbuffer,how to adjust the videooutbuffer's timpstamps in order to avoid meeting av sync problem?
I could not find the av sync sample demo ,can anyone guide me and/or give me some sample codes on the related subject?thanks a lot!
Best Regards
Volter
=====================================================
Happy everyday $ Best Regards!
msn:volter619 at 163.com
Focus on embed linux software!
°?°???×???????????????????·?????
?ì????????????·??ù??°???????
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Join Excite! -http://www.excite.com
The most personalized portal on the Web!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20071023/e464382a/attachment.htm>


More information about the gstreamer-devel mailing list