Multiple Pipeline in one process

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Multiple Pipeline in one process

ashok tiwari
Hi ,

I am developed application in which I am sending audio packet from one platform to another Platform . Basically , I have created two pipeline i.e transmitter & receiver. Transmitter pipeline is running at transmitter side and receiver pipeline is
running at receiver side . Now , it working fine but it half duplex .
Now , I have to create single process in which we can run two pipeline , meaning I have combine both Transmitter and Receiver pipeline in single process .
Both the platform will run same  process and able to send audio packet from one platform to another and vice-versa at the
same time , it will be full duplex .
Both the platform will have transmitter and receiver pipeline . I tried with creating two threads one for transmitter and another
receiver .
I am able send audio packet but getting error as :

"Not enforcing symmetric_rates due to race".

This happens when we are multiple streaming .

How to avoid it ??

Is there any another way to create multiple pipeline in same process ,  
Reply | Threaded
Open this post in threaded view
|

Re: Multiple Pipeline in one process

Marianna S. Buschle
I don't know what that error means.
But you probably need to add more debug information and some minimal test pipelines which reproduce the error.

But generally it shouldn't be any issue to have multiple pipelines in the same program.

fx: pipe = gst_parse_launch("audiotestsrc ! ... ! udpsink udpsrc ! ... ! fakesink", &error) is already 2 pipelines in one.
Here they share the same Bus and you won't be able to start/stop them individually.

If you want them independent of each other you can do:

pipe1 = gst_parse_launch("audiotestsrc ! ... ! udpsink", &error)
pipe2 = gst_parse_launch("udpsrc ! ... ! fakesink", &error)