<DIV>Hi pritesh,</DIV>
<DIV>&nbsp;&nbsp; theorectically,you are right if timestamp from decoder plugins are proper,there&nbsp;will be no av sync problem, but the problem is that&nbsp;the dsp decoder is blackbox(put encoded datum in, and get&nbsp;decoded datum out)for me how can I  guarantee that&nbsp;it do the correct&nbsp;thing(set the correct timestamp), so&nbsp;maybe there will extra thing to&nbsp;do in the gstreamer application,and what is it?and how? thanks !&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV><BR>在2007-10-23,pritesh &lt;digitaldsp@excite.com&gt; 写道:<BR>
<BLOCKQUOTE id=isReplyContent style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">hi,<BR>if timestamp from decoder plugins are proper , <BR>then av sync is done in video/audio sink plugins<BR><BR>if u have custom videosink plugin , is it subclassed from videosink base class, which derives from basesink.<BR><BR><BR><BR><BR><BR>--- On Mon 10/22, Volter Yen &lt; <A href="mailto:volter619@163.com">volter619@163.com</A> &gt; wrote:<BR>
<BLOCKQUOTE style="PADDING-LEFT: 7px; MARGIN-LEFT: 7px; BORDER-LEFT: orange 2px solid"><B>From: </B>Volter Yen [mailto: <A href="mailto:volter619@163.com">volter619@163.com</A>]<BR><B>To: </B><A href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR><B>Date: </B>Tue, 23 Oct 2007 10:55:56 +0800 (CST)<BR><B>Subject: </B>[gst-devel] AV SYNC Problem of gstreamer when using customized dsp decoder<BR><BR>
<DIV>Hi all,</DIV><BR>
<DIV></DIV><BR>
<DIV>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...</DIV><BR>
<DIV>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?</DIV><BR>
<DIV>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!</DIV><BR>
<DIV></DIV><BR>
<DIV>Best Regards</DIV><BR>
<DIV>Volter</DIV><BR>
<DIV></DIV><BR>
<DIV></DIV><BR>
<DIV></DIV><BR>
<DIV><BR>
<DIV>=====================================================</DIV><BR>
<DIV></DIV><BR>
<DIV>Happy everyday $ Best Regards!</DIV><BR>
<DIV></DIV><BR>
<DIV>msn:<A href="mailto:volter619@163.com">volter619@163.com</A></DIV><BR>
<DIV></DIV><BR>
<DIV>Focus on embed linux software!</DIV></DIV><BR><!-- footer --><BR>
<HR>
<BR><BR><BR><BR><BR><BR>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=50 height=50><IMG height=50 alt=LOGO src="http://mimg.163.com/hd/163/163footer/163footer_50.jpg" width=50></TD>
<TD style="PADDING-RIGHT: 5px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px"><A style="FONT-SIZE: 12px; COLOR: black; LINE-HEIGHT: 20px; TEXT-DECORATION: none" href="http://popme.163.com/link/003515_0929_938.html">°?°???×???????????????????·?????</A><BR><A style="FONT-SIZE: 12px; COLOR: black; LINE-HEIGHT: 20px; TEXT-DECORATION: none" href="http://popme.163.com/link/003515_0929_938.html">?ì????????????·??ù??°??????? </A></TD></TR></TBODY></TABLE><BR>
<P>-------------------------------------------------------------------------<BR>This SF.net email is sponsored by: Splunk Inc.<BR>Still grepping through log files to find problems? Stop.<BR>Now Search log events and configuration files using AJAX and a browser.<BR>Download your FREE copy of Splunk now &gt;&gt; http://get.splunk.com/_______________________________________________<BR>gstreamer-devel mailing list<BR><A href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</A><BR>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<BR></P></BLOCKQUOTE>
<P></P>
<HR>
<FONT face=geneva size=2><B>Join Excite! - <A href="http://www.excite.com/" target=_blank>http://www.excite.com</A></B><BR>The most personalized portal on the Web!</FONT> </BLOCKQUOTE><br><!-- footer --><br>
<hr>
<table width="100%%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="50" height="50"><img src="http://mimg.163.com/hd/163/163footer/163footer_50.jpg" alt="LOGO" width="50" height="50"></td>
    <td style="padding:5px;"><a style="font-size:12px;color:black; line-height:20px;text-decoration:none;" href="http://popme.163.com/link/003515_0929_938.html">把爱心注入牛奶,共同凝聚这份力量</a><br /><a style="font-size:12px;line-height:20px; color:black; text-decoration:none;" href="http://popme.163.com/link/003515_0929_938.html">快来参加蒙牛免费赠奶爱心行动 </a></td>
  </tr>
</table>