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