VOD RSTP error 404

Discussion about configuration and usage of VLM (a stream scheduler) within VLC.
ohm
New Cone
New Cone
Posts: 6
Joined: 20 Jun 2018 14:25

VOD RSTP error 404

Postby ohm » 20 Jun 2018 14:36

When trying to VOD stream a local file, the server seems to load the file correctly, but the client always return a 404 error code:

Code: Select all

$ vlc --ttl 3 -vvv --color -I telnet --telnet-password videolan --rtsp-host 0.0.0.0 --rtsp-port 5554 [Media: Test] main input debug: `file:///home/yk/20180528.176947814.Vu.mp4' gives access `file' demux `any' path `/home/yk/20180528.176947814.Vu.mp4' [Media: Test] main input source debug: creating demux: access='file' demux='any' location='/home/yk/20180528.176947814.Vu.mp4' file='/home/yk/20180528.176947814.Vu.mp4' [Media: Test] main input debug: `file:///home/yk/20180528.176947814.Vu.mp4' successfully opened [Media: Test] main input debug: Stream buffering done (500 ms in 10 ms) [Media: Test] main input debug: EOF reached stream_out_rtp vod server debug: media 'Test' has 2 declared ES stream_out_rtp vod server debug: we found a startcode for NAL with TYPE:7 stream_out_rtp vod server debug: we found a startcode for NAL with TYPE:8 stream_out_rtp vod server debug: - added ES 96 H264 (h264) stream_out_rtp vod server debug: - added ES 96 mpeg4-generic (mp4a) stream_out_rtp vod server debug: adding media 'Test' stream_out_rtp vod server debug: RTSP stream at 0.0.0.0/Test main vod server debug: net: listening to * port 5554 stream_out_rtp vod server debug: RTSP: adding 0.0.0.0/Test/trackID=0 stream_out_rtp vod server debug: RTSP: adding 0.0.0.0/Test/trackID=1

Code: Select all

$ nc localhost 4212 VLC media player 3.0.3 Vetinari Password: videolan Welcome, Master > show show media : ( 0 broadcast - 0 vod ) schedule > new test vod enabled new > setup test input "file:///home/yk/20180528.176947814.Vu.mp4" setup > setup test option file-caching=300 setup > show show media : ( 0 broadcast - 1 vod ) test type : vod enabled : yes mux : (null) inputs 1 : file:///home/yk/20180528.176947814.Vu.mp4 output : options file-caching=300 instances schedule

Code: Select all

$ vlc -vvv rtsp://127.0.0.1:5554/Test [00007f9f300010f0] live555 demux debug: version 2018.02.18 Created new TCP socket 11 for connection Connecting to 127.0.0.1, port 5554 on socket 11... ...remote connection opened Sending request: OPTIONS rtsp://127.0.0.1:5554/Test RTSP/1.0 CSeq: 2 User-Agent: LibVLC/3.0.3 (LIVE555 Streaming Media v2018.02.18) Received 124 new bytes of response data. Received a complete OPTIONS response: RTSP/1.0 200 OK Server: VLC/3.0.3 Content-Length: 0 Cseq: 2 Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE,GET_PARAMETER Sending request: DESCRIBE rtsp://127.0.0.1:5554/Test RTSP/1.0 CSeq: 3 User-Agent: LibVLC/3.0.3 (LIVE555 Streaming Media v2018.02.18) Accept: application/sdp Received 75 new bytes of response data. Have received 75 total bytes of a DESCRIBE RTSP response; awaiting 322 bytes more. Received 322 new bytes of response data. Received a complete DESCRIBE response: RTSP/1.0 404 Client error Content-Length: 322 Content-Type: text/html <?xml version="1.0" encoding="ascii" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml10/DTD/xhtml10strict.dtd"> <html lang="en"> <head> <title>Client error</title> </head> <body> <h1>404 Client error (/Test)</h1> <hr /> <a href="http://www.videolan.org">VideoLAN</a> </body> </html> [00007f9f300010f0] live555 demux debug: connection error 404 [00007f9f300010f0] live555 demux error: Failed to connect with rtsp://127.0.0.1:5554/Test
What gives?

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: VOD RSTP error 404

Postby InTheWings » 20 Jun 2018 21:38

likely no mapping from /Test to resource.
use the correct uri
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

ohm
New Cone
New Cone
Posts: 6
Joined: 20 Jun 2018 14:25

Re: VOD RSTP error 404

Postby ohm » 21 Jun 2018 01:10

What exactly do you mean? What would be the "correct" URI?
"rtsp://127.0.0.1:5554/home/yk/20180528.176947814.Vu.mp4" returns 404 also.

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: VOD RSTP error 404

Postby InTheWings » 21 Jun 2018 09:17

So you're able to copy instructions from elsewhere but not even read to the end ?

https://forum.videolan.org/viewtopic.php?t=16522
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

ohm
New Cone
New Cone
Posts: 6
Joined: 20 Jun 2018 14:25

Re: VOD RSTP error 404

Postby ohm » 21 Jun 2018 09:40

I copied the instructions/command lines from the wiki: https://wiki.videolan.org/Documentation ... _On_Demand
During my search, I also came upon the thread you just showed, but they are talking about HTTP; I'm trying to use RTSP, and the last messages say that only RTSP is supported. How does that help?
Could you please be more precise and tell me precisely what I'm doing wrong? I know you're trying to help, but sarcasm is not helping anyone.

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: VOD RSTP error 404

Postby InTheWings » 21 Jun 2018 18:13

Then you should re-read the wiki, and fix by yourself.

hint: there's a typo, but you should REALLY TRY to understand what you're doing instead of blindly following instructions
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

ohm
New Cone
New Cone
Posts: 6
Joined: 20 Jun 2018 14:25

Re: VOD RSTP error 404

Postby ohm » 21 Jun 2018 19:54

If you're talking about the "test" in the telnet commands instead of "Test", it's a typo in the forum post, not on my tests. I have tried with "test", "Test" and a lot of different other ones. I've been on this for days. So if you saw another typo, please get over yourself and point it out already. If not, we have wasted a day with your attitude.

ohm
New Cone
New Cone
Posts: 6
Joined: 20 Jun 2018 14:25

Re: VOD RSTP error 404

Postby ohm » 26 Jun 2018 00:34

Would anyone else be able to weigh in on this issue?

Norbert
New Cone
New Cone
Posts: 2
Joined: 06 Sep 2018 14:38

Re: VOD RSTP error 404

Postby Norbert » 09 Sep 2018 02:19

$ vlc --ttl 3 -vvv --color -I telnet --telnet-password videolan --rtsp-host 0.0.0.0 --rtsp-port 5554
--rtsp-host=<string> RTSP server address
This defines the address the RTSP server will listen on, along with
the base path of the RTSP VOD media. Syntax is address/path. By
default, the server will listen on any local IP address
. Specify an
IP address (e.g. ::1 or 127.0.0.1) or a host name (e.g. localhost) to
restrict them to a specific network interface.
https://wiki.videolan.org/VLC_command-line_help/

try:

Code: Select all

vlc --ttl 3 -vvv --color -I telnet --telnet-password videolan --rtsp-port 5554

ohm
New Cone
New Cone
Posts: 6
Joined: 20 Jun 2018 14:25

Re: VOD RSTP error 404

Postby ohm » 09 Sep 2018 12:25

Thanks Norbert, it works by removing the rtsp-host parameter.
From the documentation, I was expecting the server to listen to a local address by default, so I set 0.0.0.0 to be sure that it was listening on every interface.
Incidentally, whether I set 0.0.0.0 or not yields the same behaviour, i.e. vlc listening on 0.0.0.0:5554.
So I don't really understand why the server would answer 404 in one case but not the other. Sounds more like a bug to me.

ened
New Cone
New Cone
Posts: 2
Joined: 01 Apr 2016 14:49

Re: VOD RSTP error 404

Postby ened » 01 Apr 2020 23:04

Thank you @Norbert & @ohm - that did the trick for me as well.


Return to “VLM”

Who is online

Users browsing this forum: No registered users and 5 guests