tcp based rtsp streaming

382 views
Skip to first unread message

Abhi Bhagat

unread,
Jun 15, 2021, 9:02:51 AM6/15/21
to meetecho-janus

hello! i have a janus setup on my local ubuntu 18 vm and i am trying to stream from an rtsp camera that supports only tcp (surveillance, that's why). i found that janus's rtsp client connects using udp. i did not find any setting in the config file that allows me to pick between udp or tcp.

the problem i see with udp is that janus' rtsp client isn't punching a hole in the nat unlike vlc that sends dummy udp packets to do just that. so i believe the rtsp server's incoming stream can't reach the ports opened by janus despite sending play to it. i tested using the bigbuckbunny public url and watching traffic in wireshark.

so a couple of options for me are to either support rtsp/rtp over tcp or enable udp on the camera side and then punch holes by sending dummy udp packets like vlc.

just want to confirm that there are no workarounds so that i can start exploring the source.

best,
-abhi

Lorenzo Miniero

unread,
Jun 15, 2021, 9:58:30 AM6/15/21
to meetecho-janus
We do punch holes, using latching. We will not add support for RTP/TCP in the Streaming plugin.

L.

Abhi Bhagat

unread,
Jun 16, 2021, 3:10:36 AM6/16/21
to meetecho-janus
sorry, yes, janus uses latching to punch holes in the nat. i overlooked the traffic in wireshark.

pro tip: when trying to rtsp/udp stream using janus in a vm setting, DONT use the nat mode. use bridged mode instead.

can stream bigbuckbunny now.

best,
-abhi
Reply all
Reply to author
Forward
0 new messages