Bind port problem
Ingemar Johansson
ingemar.s.johansson at ericsson.com
Wed Mar 6 08:32:30 UTC 2019
Hi
I am struggling to get a working pipeline that get RTP/RTCP to carry across
. I have a Logitech C920 + LTE modem connected to an RPI that streams rate
controlled video. The thing is that I need to set also the bind-port to
match the port to make the RTCP packets pass through, there seems to be some
firewall rule in the MBB subscription that necessitates this.
The problem is however that when done so, the callback for
on-receiving-rtcp (line 523 in gstscreamtx.cpp) does not work.
https://github.com/EricssonResearch/scream/blob/master/code/gscream/gst-gscreamtx/gst-plugin/src/gstgscreamtx.cpp
So the question is, how do I do to make this work, or is there another way
to get this working. I understand that it should be possible to make
RTP/RTCP both go over port 5000 but I have so far not managed to get it
working
/Ingemar
----
On the sender side I have
gst-launch-1.0 rtpbin name=rtpbin ! uvch264src device=/dev/video0 name=video
auto-start=true leaky-bucket-size=1000 ltr-buffer-size=0
ltr-encoder-control=0 iframe-period=1000 min-iframe-qp=20 video.vidsrc !
queue ! video/x-h264,width=1920,height=1080,framerate=30/1,profile=high !
rtph264pay ! gscreamtx media-src=2 ! rtpbin.send_rtp_sink_0
rtpbin.send_rtp_src_0 ! udpsink host=$RECEIVER_IP port=5000 bind-port=5000
rtpbin.send_rtcp_src_0 ! udpsink host=$RECEIVER_IP bind-port=5001 port=5001
udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0
----
On the media receiver side I have the following
gst-launch-1.0 rtpbin name=rtpbin udpsrc port=5000 ! gscreamrx !
application/x-rtp,media=video,clock-rate=90000,encoding-name=H264 !
rtpbin.recv_rtp_sink_0 rtpbin. ! rtph264depay ! avdec_h264 ! videoconvert !
xvimagesink sync=false async=false udpsrc port=5001 !
rtpbin.recv_rtcp_sink_0 rtpbin.send_rtcp_src_0 ! udpsink port=5001
bind-port=5001 host=$SENDER_IP sync=false async=false
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list