Mux audio and video to send out udp sink

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

Mux audio and video to send out udp sink

josh
I'm trying to figure out the best way to take an RTSP stream and re-broadcast via a single udpsink using different payloads. My audio and video sources have different clock-rates so I believe I need to use "rtpfunnel" not "rtpmux" to combine before connecting to udpsink however it doesn't seem to work. Here is what I'm running on the server :

gst-launch-1.0 rtspsrc location=rtsp://localhost/h265 latency=0 name=demux ! rtpmp4gdepay ! rtpmp4gpay ! queue ! application/x-rtp,payload=97 ! rtpfunnel name=funnel ! udpsink host=192.168.1.141 port=8000 demux. ! rtph265depay ! rtph265pay config-interval=1 ! queue ! funnel.

1. Am I using rtpfunnel correctly?
2. Do I use rtpptdemux to demux on the other end?

Reply | Threaded
Open this post in threaded view
|

Re: Mux audio and video to send out udp sink

josh
I have fixed my issue by using two udpsinks :

gst-launch-1.0 rtspsrc location=rtsp://localhost/h265 latency=0 name=demux ! rtpmp4gdepay ! rtpmp4gpay ! queue ! application/x-rtp,payload=97 ! udpsink host=192.168.1.141 port=8000 demux. ! rtph265depay ! rtph265pay config-interval=1 ! queue ! application/x-rtp,payload=96 ! udpsink host=192.168.1.141 port=8000

Then on the other end I used rtpptdemux to separate out the rtp packets by payload. This works well.

I did notice that I could also use rtpbin to mux and demux the different streams which would also give RTCP packets.