Run multiple pipelines in parallel into same process question

Nicolas Dufresne nicolas at ndufresne.ca
Mon Nov 4 16:56:51 UTC 2019


Le lundi 04 novembre 2019 à 10:37 -0600, jles a écrit :
> Hi Nicolas,
> thanks for your answer.
> 
> I've got running both cameras what I'm doing is to create two pipelines
> copies and the next call back assignment to push data into the correspondent
> appsrc:
> 
> ......
> 
> g_signal_connect (appsrc1, "need-data", G_CALLBACK
> (cb_need_data),pipeline1);
> g_signal_connect (appsrc2, "need-data", G_CALLBACK
> (cb_need_data),pipeline2);
> 
> ......
> 
> After configuring and setting both pipelines on playing state I run a
> Gmainloop.
> 
> I've got the recorded files but the problem is that always the first camera
> (pipeline1) works well (smooth playback) and the second camera the video
> looks choppy (stops and goes)... 
> 
> Are the pipelines theoretically running in parallel? Could it be a a
> pipeline priority issue? 
> Any idea what could it be causing this?

They run on their own thread. It's more likely to small processing-
deadline value (on sinks) or bad timestamps.

> 
> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191104/bda3edcc/attachment-0001.sig>


More information about the gstreamer-devel mailing list