Bind port problem

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

Bind port problem

Ingemar Johansson
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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Bind port problem

Ingemar Johansson
Hi

I guess it is appropriate that I reply to my own question. The pipelines I
outlined obviously some to work.. but somehow the registration of the
on-receiving-rtcp callback fails in some cases.
For instance it works when I run the setup on a Raspberry Pi with an LTE
dongle, but when I use the same SIM card in an LTE router, then it does not
work.. Really strange. I guess this means that there is something that I
don't do right when I register the callback.

/Ingemar



--
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: Bind port problem

Toshick

On Fri, Mar 8, 2019, 14:13 Ingemar Johansson <[hidden email]> wrote:
Hi

I guess it is appropriate that I reply to my own question. The pipelines I
outlined obviously some to work.. but somehow the registration of the
on-receiving-rtcp callback fails in some cases.
For instance it works when I run the setup on a Raspberry Pi with an LTE
dongle, but when I use the same SIM card in an LTE router, then it does not
work.. Really strange. I guess this means that there is something that I
don't do right when I register the callback.

/Ingemar



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

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel