--rtsp-tcp has no effect

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
kamil_o
New Cone
New Cone
Posts: 1
Joined: 07 May 2010 00:20

--rtsp-tcp has no effect

Postby kamil_o » 07 May 2010 00:38

Hello,

I've embedded VLC plugin on a website to play RTSP H.264 live video from webcam.

Everything works fine except --rtsp-tcp command line option. It should force VLC to use TCP as transport.

Here is what I expect to happen:
VLC plugin connects to camera and requests interleaved mode (TCP transport).

Here is what really happens:
1. VLC connects using UDP, which fails because it can't go through NAT.
2. VLC then tries TCP which works.

The problem is that no matter if I use --rtsp-tcp or not, VLC always tries UDP first then TCP. It takes a considerable amount of time before video appears.

Here is part of code which I use to embed VLC:

Code: Select all

<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" version="VideoLAN.VLCPlugin.2" width="100%" height="85%" id="vlc"> </embed> <script language="Javascript"> var vlc=document.getElementById("vlc"); var id=vlc.playlist.add("rtsp://<path_to_rtsp_stream>", "somename", "--rtsp-tcp"); vlc.playlist.playItem(id);
Any help?

Thanks

svkpd
New Cone
New Cone
Posts: 7
Joined: 19 Jul 2010 11:13

Re: --rtsp-tcp has no effect

Postby svkpd » 20 Jul 2010 09:02

same problem, any help how to fix it?

sphelan
Blank Cone
Blank Cone
Posts: 14
Joined: 09 Jul 2010 16:44

Re: --rtsp-tcp has no effect

Postby sphelan » 21 Jul 2010 15:33

I'm looking for how to do this as well. If either of you have figured this out please post back. Thanks!

sphelan
Blank Cone
Blank Cone
Posts: 14
Joined: 09 Jul 2010 16:44

Re: --rtsp-tcp has no effect

Postby sphelan » 05 Oct 2010 18:45

changed it to :rtsp-tcp and that worked

valledelagrimas
New Cone
New Cone
Posts: 2
Joined: 14 Apr 2016 16:54

Re: --rtsp-tcp has no effect

Postby valledelagrimas » 14 Apr 2016 17:00

My friends, I tested with the following command line with complete success. Take care about the order where you put the --rtsp-tcp because if you put this option to the end of the command line, the protocol will be IGMP not TCP. Here you have the solution,

vlc.exe -I telnet --telnet-host=localhost --rtsp-tcp --telnet-port=4212 --telnet-password="admin"


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 78 guests