Closed pepeRossRobotics closed 2 years ago
Hi,
You may look to the RTSP configuration of VLC, that is probably configure to ask for RTP over TCP.
Best Regards, Michel.
I checked that VLC is configured to start with UDP, and still the transport using netstat
tells me the system is usinc TCP.
Is there any flag that I could use to force the v4l2rtsp to be sent UDP?
Hi,
This is the opposite, v4l2rtspserver is a server and answer to the client that asked for an RTP over TCP stream, as you can see in your log in the RTSP SETUP message. You can try with openRTSP.
Best Regards, Michel.
Hello, I have tried without sucess to set up the VLC player to ask for the UDP transport. I just tried with openRTSP and seems to be the same:
handleCmd_SETUP:SETUP rtsp://192.168.10.254:8554/unicast/track1 RTSP/1.0
CSeq: 4
User-Agent: LibVLC/3.0.9.2 (LIVE555 Streaming Media v2020.01.19)
Transport: RTP/AVP;unicast;client_port=33678-33679
handleCmd_SETUP:SETUP rtsp://192.168.10.254:8554/unicast/track1 RTSP/1.0
CSeq: 4
User-Agent: openRTSP (LIVE555 Streaming Media v2020.01.19)
Transport: RTP/AVP;unicast;client_port=33468-33469
the first one is using VLC and the second one openRTSP, both are using TCP. Could this be something to do with the camera that I am using?
Hi,
RTP/AVP;unicast;client_port=33468-33469 is UDP (port are RTP and RTCP port). RTP over TCP have a transport like RTP/AVP/TCP (like in your initial post).
Best Regards, Michel.
Many thanks, that makes sense, sorry for all the time spend in such a silly thing. My bad.
You are welcome.
Describe the bug The default data transport if TCP
To Reproduce Steps to reproduce the behavior:
v4l2rtspserver -W 640 -H 480 -F 30 -Q 2 -P 8554 /dev/video0
vlc rtsp://192.168.1.158:8554/unicast
netstat
Expected behavior Is expected that the result of NetStat should be something like thisudp 0 0 PepeX1C7.lan:58444 CM4.lan:8554 ESTABLISHED
but it is this:
tcp 0 0 PepeX1C7.lan:58444 CM4.lan:8554 ESTABLISHED
Screenshots
Desktop (please complete the following information):