<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 < ensonic@hora-obscura.de > 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>> hi ,yeah i have a custom video sink where i call the display frame <BR>> api of hardware decoder in show_frame function i have <BR>> initilaised the basesink's render , preroll method to show_frame <BR>> function i am also having a get_times function in the videosink for <BR>> audio i am using osssink. ok if the videosink is incorrect then <BR>> why the manual pipeline works fine with av sync(if i link the <BR>> elements by code)one more thing ......... since
the video <BR>> decoder already puts decoded data in hardware frame buffer , so i am <BR>> just passing fake buffer ( 16 byte fake data) with timestamp and <BR>> duration (from qtdemux) to downstream element from video decoder . <BR>> can u help me in resolving this issue --- On Tue 08/21, <BR>> Andy Wingo &lt; wingo@pobox.com &gt; wrote:From: Andy Wingo [mailto: <BR>> wingo@pobox.com]To: digitaldsp@excite.comCc: <BR>> gstreamer-devel@lists.sourceforge.netDate: Tue, 21 Aug 2007 22:55:01 <BR>> +0200Subject: Re: [gst-devel] problem in using <BR>> playbinHello,"pritesh" writes:&gt;<BR>> but av sync is missing in paused state itself some video frames are <BR>> displayed In the paused state, no audio is played, so sync is not a <BR>> problem&gt; and when i set state to playing the audio lags video <BR>> This can only be the case if either (1) your timestamps are <BR>> incorrect,or (2) you have custom sinks that are not
respecting the <BR>> clocks.&gt; but when i create the pipeline using decodebin only then <BR>> av sync is&gt; proper is this a preroll problem or videosink <BR>> problemSeems to indicate problems in your sinks.Regards,Andy.-- <BR>> http://wingolog.org/<BR>><BR>> _______________________________________________<BR>> Join Excite! - http://www.excite.com<BR>> The most personalized portal on the Web!<BR>><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 >> 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>