[gst-devel] problem in using playbin

pritesh digitaldsp at excite.com
Wed Aug 22 18:38:21 CEST 2007


 ok , if am using playbin in the application code , i can only get the clock used by playbin after setting its state to PLAYING.   so i tried to :g_object_set(G_OBJECT(playbin),"video-sink",videosink,NULL);g_object_set(G_OBJECT(playbin),"audio-sink",osssink,NULL);gst_element_set_state(playbin , GST_STATE_PLAYING);GstClock *clock = gst_element_get_clock(playbin);gst_element_set_clock(videosink,clock);gst_element_set_clock(audiosink,clock);but still video is ahead of audio .in case of manually linking the elements(without using playbin) , av sync is okany ideas--- On Wed 08/22, Stefan Kost < ensonic at hora-obscura.de > wrote:From: Stefan Kost [mailto: ensonic at hora-obscura.de]To: gstreamer-devel at lists.sourceforge.netDate: Wed, 22 Aug 2007 16:17:38 +0200Subject: Re: [gst-devel] problem in using playbinhi,can you please ensure that your mail get send in a readable format. Regarding the topic - I you have a/v sync issues then check which clock is used and ensure that your sinks 
render based on the same time information.StefanQuoting pritesh :> hi ,yeah i have a custom video sink where i call the display frame > api of hardware decoder in show_frame function i have > initilaised the basesink's render , preroll method to show_frame > function i am also having a get_times function in the videosink for > audio i am using osssink. ok if the videosink is incorrect then > why the manual pipeline works fine with av sync(if i link the > elements by code)one more thing ......... since the video > decoder already puts decoded data in hardware frame buffer , so i am > just passing fake buffer ( 16 byte fake data) with timestamp and > duration (from qtdemux) to downstream element from video decoder . > can u help me in resolving this issue --- On Tue 08/21, > Andy Wingo < wingo at pobox.com > wrote:From: Andy Wingo [mailto: > wingo at pobox.com]To: digitaldsp at excite.comCc: > 
gstreamer-devel at lists.sourceforge.netDate: Tue, 21 Aug 2007 22:55:01 > +0200Subject: Re: [gst-devel] problem in using > playbinHello,"pritesh" writes:>> but av sync is missing in paused state itself some video frames are > displayed In the paused state, no audio is played, so sync is not a > problem> and when i set state to playing the audio lags video > This can only be the case if either (1) your timestamps are > incorrect,or (2) you have custom sinks that are not respecting the > clocks.> but when i create the pipeline using decodebin only then > av sync is> proper is this a preroll problem or videosink > problemSeems to indicate problems in your sinks.Regards,Andy.-- > http://wingolog.org/>> _______________________________________________> Join Excite! - http://www.excite.com> The most personalized portal on the Web!>-------------------------------------------------------------------------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 listgstreamer-devel at lists.sourceforge.nethttps://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/20070822/c3ba3b0b/attachment.htm>


More information about the gstreamer-devel mailing list