Hi; Some thoughts on this;
My guess is you would need to add some clock 'awareness' to the actual texture frame uploading in clutter-gst-texture - see clutter_gst_video_sink_bus_cb () , which is called via queueing in clutter_gst_video_sink_render () as to make sure it ends up in the main clutter thread. My gst knowledge is limited enough however to not know how to do this. I think clutter_gst_video_sink_bus_cb() is not getting called frequently enough - so as soon as its called, a paint is queued and then painted before another gst_video_sink_bus_cb() (for other video is called) and another full paint done when I think what you want is all the gst_video_sink_bus_cb bunched together and then a single repaint for all of them. Even increasing the priority of the internal gst bus could be enough here ? Hope that helps a bit; -- Matthew On Wed, 2007-08-29 at 10:49 +0200, Florent THIERY wrote: > Hi all, > > I noticed fps was very high when displaying two parallel video streams > in a clutter app. I thought it would be enough to sync the pipelines, > i.e. use the same clock; i asked on the gstml: > > >> is it possible for the pipelines to share the same sink "clock" ? > >If they are all three in the same process, then get the clock from one > >of them, and set it on the other pipelines using gst_pipeline_use_clock. > >If they are in different processes, you will have to use the network > >clock code. Google for gstreamer network clock and you will find things. > > That's what i did, (C code) > > GstClock *gstclock; > gstclock = gst_pipeline_get_clock(pipeline); > gst_pipeline_use_clock (pipeline2, gstclock); > gst_pipeline_use_clock(pipeline3, gstclock); > > But the fps rate does not change: > *** FPS: 26 *** single video > *** FPS: 26 *** > *** FPS: 26 *** > *** FPS: 27 *** > *** FPS: 65 *** three videos > *** FPS: 69 *** > *** FPS: 71 *** > *** FPS: 71 *** > *** FPS: 72 *** > *** FPS: 70 *** > > Any suggestions ? I thougt it would be synchronized at sink level. > > But this doesn't "solve" the linking of gst clocks and clutter > timelines. What is the "clock" used by timelines, it would be great to > be able to link timelines and gst clocks... > > Thanks > > Florent -- To unsubscribe send a mail to [EMAIL PROTECTED]
