<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jul 31, 2019 at 8:09 AM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le mardi 30 juillet 2019 à 09:45 -0400, pisymbol . a écrit :<br>
> <br>
> <br>
> On Mon, Jul 29, 2019 at 8:00 PM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca" target="_blank">nicolas@ndufresne.ca</a>> wrote:<br>
> > <br>
> > Le lun. 29 juill. 2019 19 h 56, pisymbol . <<a href="mailto:pisymbol@gmail.com" target="_blank">pisymbol@gmail.com</a>> a écrit :<br>
> > > <br>
> > > On Mon, Jul 29, 2019 at 5:51 PM Mathieu Duponchelle <<a href="mailto:mathieu@centricular.com" target="_blank">mathieu@centricular.com</a>> wrote:<br>
> > > > I've never seen that, but a test case would probably be helpful :)<br>
> > > > <br>
> > > <br>
> > > Not sure what exactly to share:<br>
> > > <br>
> > > Here is the gist of the code:<br>
> > > <br>
> > > class GstPlayerWdiget(Gtk.Box):<br>
> > > ....<br>
> > >        self.play_pipeline = Gst.Pipeline()<br>
> > >        factory = self.play_pipeline.get_factory()<br>
> > >        gtksink = Gst.ElementFactory.make('gtksink', None)<br>
> > >        gtksink.set_property("sync", False)<br>
> > <br>
> > By disabling the sync, you ask GStreamer to play all frames, even when real-time isn't possible due to cpu limitation. So slow motion on this entirely software pipeline is what you have asked GStreamer.<br>
> > <br>
> > If you have multiple cores, consider configuring videoconvert to use more then one thread, or add queues at well chosen places (e.g. between decoder and converter).<br>
> > <br>
> <br>
> Nicholas, pardon my ignorance, but how does configuring videoconvert use more than one thread?<br>
<br>
There is a property called n-threads, 0 mean as many as there is CPU,<br>
and then any other value will try and use that specific amount of<br>
threads. In python that would be:<br>
<br>
  converter.props.n_threads = N<br>
or<br>
  converter.set_property("n-threads", N)<br>
</blockquote><div><br></div><div>Is this on newer releases? I ask because now I see it in the online doc but not using `gst-inspect-1.0 videoconvert` as an element property?</div><div><br></div><div>-aps<br></div></div></div>