create simultaneous & dis-joint pipelines and terminate pipelines independently using timeout

Rohan0993 rohan.chawhan at matrixcomsec.com
Mon Feb 25 11:25:07 UTC 2019


Hi all,

I am using C++ to create pipelines which are listening to a port and dumping
the data in a separate file.

For eg;
*Pipeline 1:*
gst-launch-1.0 udpsrc port=5000 ! "application/x-rtp,media=(string)audio,
clock-rate=(int)44100, encoding-name=(string)L16, 
encoding-params=(string)1, channels=(int)1, channel-positions=(int)1,
payload=(int)96" ! rtpL16depay ! filesink location=/home/rohan/AAA.raw

*Pipeline 2:*
gst-launch-1.0 udpsrc port=5008 ! "application/x-rtp,media=(string)audio,
clock-rate=(int)44100, encoding-name=(string)L16, 
encoding-params=(string)1, channels=(int)1, channel-positions=(int)1,
payload=(int)96" ! rtpL16depay ! filesink location=/home/rohan/BBB.raw

now in c++; I am creating these pipeline in 2 threads 
The Details of C++ code is given in this stack overflow link. 
https://stackoverflow.com/questions/54863923/get-gstreamer-bus-messages-using-non-static-message-handler
<https://stackoverflow.com/questions/54863923/get-gstreamer-bus-messages-using-non-static-message-handler>  

I am stuck with the callback function which prints the bus messages  and
which I have used to terminate the pipelines.

kindly Check the Stack overflow link to read about the issue




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list