Creating multiple udp sources?

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

Creating multiple udp sources?

kepitto
I'm trying to receive multiple udp streams mix them together with videomixer
encode + mux them into a file. I know there is a multiudpsink, but how does
one implement multiple udpsrc?

My attempt was through a pointer-Array like:
GstElement* udpsrc[COUNT];

I create the elements in loops afterwards and link them in a loop to the
videomixer. This doesn't seem like a good solution.

What's the proper way to implement this?




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Creating multiple udp sources?

gotsring
Why not just add several udpsrc elements to the same pipeline, then mix?
Also, I think compositor is preferred over videomixer.

Something like...
gst-launch-1.0.exe compositor name=c sink_1::xpos=640 sink_2::ypos=480
sink_3::xpos=640 sink_3::ypos=480 ! videoconvert ! x264enc ! h264parse !
matroskamux ! filesink location=out.mkv \
 udpsrc name=src0 ! decodebin ! c. \
 udpsrc name=src1 ! decodebin ! c. \
 udpsrc name=src2 ! decodebin ! c. \
 udpsrc name=src3 ! decodebin ! c.
 



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Creating multiple udp sources?

kepitto
That's what I'm basically doing with my approach in C. I thought maybe
there's an element I missed to handle the case better regarding variable
inputsize.

Also i tried the compositor, but it freezes up after ~ 30 seconds of
recording, which doesn't happen with videomixer.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel