<table cellpadding=3 cellspacing=0 border=0 width=100% bgcolor=white><tr valign=top><td width=100%><font size=2 color=black><BR>ok ,<br> <br>if am using playbin in the application code , i can only get the clock used by playbin after <br>setting its state to PLAYING.  <br> <br>so i tried to :<br>g_object_set(G_OBJECT(playbin),"video-sink",videosink,NULL);<br>g_object_set(G_OBJECT(playbin),"audio-sink",osssink,NULL);<br>gst_element_set_state(playbin , GST_STATE_PLAYING);<br>GstClock *clock = gst_element_get_clock(playbin);<BR>gst_element_set_clock(videosink,clock);<br>gst_element_set_clock(audiosink,clock);<BR><br>but still video is ahead of audio .<br>in case of manually linking the elements(without using playbin) , av sync is ok<br>any ideas<br><BR><BR><BR>--- On Wed 08/22, Stefan Kost &lt; ensonic@hora-obscura.de &gt; wrote:<BR><br><BLOCKQUOTE style="PADDING-LEFT: 7px; MARGIN-LEFT: 7px; BORDER-LEFT: orange 2px solid"><B>From: </B>Stefan Kost [mailto: 
ensonic@hora-obscura.de]<BR><B>To: </B>gstreamer-devel@lists.sourceforge.net<BR><B>Date: </B>Wed, 22 Aug 2007 16:17:38 +0200<BR><B>Subject: </B>Re: [gst-devel] problem in using playbin<BR><BR>hi,<BR><BR>can you please ensure that your mail get send in a readable format. <BR>Regarding the topic - I you have a/v sync issues then check which <BR>clock is used and ensure that your sinks render based on the same time <BR>information.<BR><BR>Stefan<BR><BR>Quoting pritesh <DIGITALDSP@EXCITE.COM>:<BR><BR>&gt; hi ,yeah i have a custom video sink where i call the display frame <BR>&gt; api of hardware decoder in show_frame function i have <BR>&gt; initilaised the basesink's render , preroll method to show_frame <BR>&gt; function i am also having a get_times function in the videosink for <BR>&gt; audio i am using osssink. ok if the videosink is incorrect then <BR>&gt; why the manual pipeline works fine with av sync(if i link the <BR>&gt; elements by code)one more thing ......... since 
the video <BR>&gt; decoder already puts decoded data in hardware frame buffer , so i am <BR>&gt; just passing fake buffer ( 16 byte fake data) with timestamp and <BR>&gt; duration (from qtdemux) to downstream element from video decoder . <BR>&gt; can u help me in resolving this issue --- On Tue 08/21, <BR>&gt; Andy Wingo &amp;lt; wingo@pobox.com &amp;gt; wrote:From: Andy Wingo [mailto: <BR>&gt; wingo@pobox.com]To: digitaldsp@excite.comCc: <BR>&gt; gstreamer-devel@lists.sourceforge.netDate: Tue, 21 Aug 2007 22:55:01 <BR>&gt; +0200Subject: Re: [gst-devel] problem in using <BR>&gt; playbinHello,"pritesh" writes:&amp;gt;<BR>&gt; but av sync is missing in paused state itself some video frames are <BR>&gt; displayed In the paused state, no audio is played, so sync is not a <BR>&gt; problem&amp;gt; and when i set state to playing the audio lags video <BR>&gt; This can only be the case if either (1) your timestamps are <BR>&gt; incorrect,or (2) you have custom sinks that are not 
respecting the <BR>&gt; clocks.&amp;gt; but when i create the pipeline using decodebin only then <BR>&gt; av sync is&amp;gt; proper is this a preroll problem or videosink <BR>&gt; problemSeems to indicate problems in your sinks.Regards,Andy.-- <BR>&gt; http://wingolog.org/<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Join Excite! - http://www.excite.com<BR>&gt; The most personalized portal on the Web!<BR>&gt;<BR><BR><BR><BR>-------------------------------------------------------------------------<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>_______________________________________________<BR>gstreamer-devel mailing 
list<BR>gstreamer-devel@lists.sourceforge.net<BR>https://lists.sourceforge.net/lists/listinfo/gstreamer-devel<BR></BLOCKQUOTE></font></td></tr></table><p><hr><font size=2 face=geneva><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>