Page 1 of 1

rtsp streaming to vlc from ffmpeg

Posted: 27 Feb 2017 09:53
by johnantony
hi, iam trying to encode rtsp streaming from ffmpeg and decode it in vlc player

this is the command i tried to encode the rtsp stream from pc to vlc

Code: Select all

ffmpeg -re -i input -f rtsp -rtsp_transport tcp rtsp://172.28.107.100:8090/live.sdp
tried to receive it in vlc using this command

Code: Select all

vlc rtsp://172.28.107.100:8090/test.sdp
but, it showing these errors
[00007f42b0000e98] live555 demux error: Failed to connect with rtsp://172.19.102.198:9990/test1.sdp
[00007f42b0000e98] core access error: connection failed: Connection refused
[00007f42b0000e98] access_realrtsp access error: cannot connect to 172.19.102.198:9990
[00007f42ac0009b8] core input error: open of `rtsp://172.19.102.198:9990/test1.sdp' failed

in vlc settings we alredy changed input codecs --> network --> Live555 stream support --> RTP over RTSP

Re: rtsp streaming to vlc from ffmpeg

Posted: 27 Feb 2017 19:28
by Rémi Denis-Courmont
The port numbers are mismatched...

Re: rtsp streaming to vlc from ffmpeg

Posted: 28 Feb 2017 07:21
by johnantony
hii,.. thanks for yuor response.. i corrected it..still the same issue.

Code: Select all

ffmpeg -re -i input -f rtsp -rtsp_transport tcp rtsp://172.19.102.198:9990/test1.sdp vlc rtsp://172.19.102.198:9990/test1.sdp
[00007f42b0000e98] live555 demux error: Failed to connect with rtsp://172.19.102.198:9990/test1.sdp
[00007f42b0000e98] core access error: connection failed: Connection refused
[00007f42b0000e98] access_realrtsp access error: cannot connect to 172.19.102.198:9990
[00007f42ac0009b8] core input error: open of `rtsp://172.19.102.198:9990/test1.sdp' failed

Re: rtsp streaming to vlc from ffmpeg

Posted: 28 Feb 2017 18:40
by Rémi Denis-Courmont
The error means there is no server at that port...

Re: rtsp streaming to vlc from ffmpeg

Posted: 01 Mar 2017 05:28
by johnantony
this is the log what am getting when using -vvv
is there any need to open the port for rtsp streaming??? i tried 554 port, but getting the same error
[00007efe980009b8] core input debug: `rtsp://192.168.42.70:9990/test1.sdp' gives access `rtsp' demux `' path `192.168.42.70:9990/test1.sdp'
[00007efe980009b8] core input debug: specified demux `any'
[00007efe980009b8] core input debug: creating demux: access='rtsp' demux='any' location='192.168.42.70:9990/test1.sdp' file='(null)'
[00007efe8c000e78] core demux debug: looking for access_demux module matching "rtsp": 21 candidates
[00007efe8c000e78] live555 demux debug: version 2016.02.09
Opening connection to 192.168.42.70, port 9990...
...Connection to server failed: Connection refused
Opening connection to 192.168.42.70, port 9990...
...Connection to server failed: Connection refused
[00007efe8c000e78] live555 demux debug: connection error -115
[00007efe8c000e78] live555 demux error: Failed to connect with rtsp://192.168.42.70:9990/test1.sdp
[00007efe8c000e78] core demux debug: no access_demux modules matched
[00007efe980009b8] core input debug: creating access 'rtsp' location='192.168.42.70:9990/test1.sdp', path='(null)'
[00007efe8c000e78] core access debug: looking for access module matching "rtsp": 25 candidates
[00007efe8c000e78] core access debug: net: connecting to 192.168.42.70 port 9990
[00007efe8c000e78] core access error: connection failed: Connection refused
[00007efe8c000e78] access_realrtsp access error: cannot connect to 192.168.42.70:9990

Re: rtsp streaming to vlc from ffmpeg

Posted: 13 Aug 2019 00:23
by flyingsolo
The error means there is no server at that port...
Remi,

I have read the manual for both VLC and ffmpeg. I am new to both programs, but it would seem that VLC would be able to "capture" the stream on that port without a server, and that VLC is a server of sorts.

VLC is looking for a stream and it should be on that port, why then would VLC need something else?

Could ffmpeg be used as a server, since ffserver is no longer supported?

What server do you recommend?

Thank you so much!

Flying solo

Re: rtsp streaming to vlc from ffmpeg

Posted: 13 Aug 2019 17:09
by Rémi Denis-Courmont
Your are not making any sense and I cannot answer your question.