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/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Administrator
|
if your using windows you can do it this way. int main() on bottom. Hope this helps! this is not tested but this is what i do in my windows application. should be able to convert it to linux with replacing a few things here and there.
#include
------------------------------
Gstreamer 1.14.4 ------------------------------ Windows Sent from the GStreamer-devel mailing list archive at Nabble.com. _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
------------------------------
Gstreamer 1.16.2 ------------------------------ Windows |
Free forum by Nabble | Edit this page |