vlc client on windows can't connect to local vlc server on linux

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
jkister
Blank Cone
Blank Cone
Posts: 13
Joined: 24 Jul 2018 05:33

vlc client on windows can't connect to local vlc server on linux

Postby jkister » 07 Dec 2018 05:48

i am running VLC 3.0.3 on debian to stream my capture card via rtsp:
cvlc -vv v4l2:///dev/video0 --sout '#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=100,scodec=none}:rtp{sdp=rtsp://:8554/}'
the console shows: https://pastebin.com/raw/vKvdYprm

When I use a windows client (VLC 3.0.4) to view the network stream (rtsp://10.0.0.161:8554/) i get the error "VLC is unable to open the MRL" https://pastebin.com/raw/GMbkg6uN

I also watched packets at the same time https://pastebin.com/raw/iGEe5pwW. Note that there is a "RTSP/1.0 500 Server Error" followed by a "RTSP/1.0 459 Client error" before the whole thing falls apart (not sure it's relevant).

looking for hints on how to get the vlc client on windows happy with the vlc rtsp on linux.

nb: this is a separate issue from my other post about windows<->windows streaming a few hours ago.

jkister
Blank Cone
Blank Cone
Posts: 13
Joined: 24 Jul 2018 05:33

Re: vlc client on windows can't connect to local vlc server on linux

Postby jkister » 08 Dec 2018 23:32

WinAMP 5.8 on Win10/64 similarly fails to play the RTSP stream from the linux VLC server as well, with a 404 Client Error.

am I specifying the network stream URL correctly ? I tried rtsp://10.0.0.161:8554/ and rtsp://10.0.0.161:8554/foo/ and rtsp://10.0.0.161:8554/foo.sdp in both the server and client.

jkister
Blank Cone
Blank Cone
Posts: 13
Joined: 24 Jul 2018 05:33

Re: vlc client on windows can't connect to local vlc server on linux

Postby jkister » 10 Dec 2018 02:11

according to Google, my command line was missing 'mux=ts' in the sdp string. the new command line i'm using is:
cvlc -vvv v4l2:///dev/video0 --sout '#rtp{sdp=rtsp://10.0.0.161:8554/test.sdp,mux=ts}'

this does change some behavior but it's still broken.

the new VLC player log is: https://pastebin.com/raw/FzNJQ9eD

The console shows everything it did before, but when I Open Network Stream on the remote VLC, it also prints:

Code: Select all

[00007fce84001300] main stream out debug: net: connecting to [10.0.0.8]:51536 [00007fce84001300] main stream out debug: net: connecting to [10.0.0.8]:51537 from [10.0.0.161]:49807 [00007fce84001300] main stream out debug: net: connecting to [10.0.0.8]:51538 [00007fce84001300] main stream out debug: net: connecting to [10.0.0.8]:51539 from [10.0.0.161]:50763
there is a ten second wait between the two connecting attempts.

and then the remote VLC player just stops - no error and no playing - and gives me the option to press Play again.

the new tcpdump (with verbose) is here https://pastebin.com/raw/jnzUF3jv

basically it goes (twice):

Code: Select all

client: OPTIONS server: OK, Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE,GET_PARAMETER client: DESCRIBE rtsp://10.0.0.161:8554/test.sdp RTSP/1.0 server: OK client: SETUP rtsp://10.0.0.161:8554/test.sdp/trackID=0 RTSP/1.0 server: OK, Transport: RTP/AVP/UDP;unicast;client_port=51536-51537;server_port=49806-49807;ssrc=7E42D0D8;mode=play client: PLAY rtsp://10.9.0.161:8554/test.sdp RTSP/1.0 server: OK <client sends tcp packet to server, immediately followed by udp packet, then waits a few seconds> <client sends tcp packet to server, immediately followed by udp packet, then waits a few seconds> <client sends tcp packet to server, immediately followed by udp packet, then waits a few seconds> client: TEARDOWN rtsp://10.9.0.161:8554/test.sdp RTSP/1.0
the server never responds to the client's messages after the last OK.

jkister
Blank Cone
Blank Cone
Posts: 13
Joined: 24 Jul 2018 05:33

Re: vlc client on windows can't connect to local vlc server on linux

Postby jkister » 11 Dec 2018 19:35

update: if the source is a local file mp4, then all works how i would expect it. I cannot stream from the capture source, but streaming from a local file [mostly] works fine, audio+video. of note, playing from the same capture device works fine.


this is the same for my other post about windows<->windows vlc at https://forum.videolan.org/viewtopic.php?f=2&t=147304

jkister
Blank Cone
Blank Cone
Posts: 13
Joined: 24 Jul 2018 05:33

Re: vlc client on windows can't connect to local vlc server on linux

Postby jkister » 17 Dec 2018 18:27

no help?

the VLC player can play the video+audio from the capture device. i must be doing something wrong, though, to set up the stream.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 34 guests

cron