rtsp streaming to vlc from ffmpeg

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
johnantony
New Cone
New Cone
Posts: 3
Joined: 27 Feb 2017 09:21

rtsp streaming to vlc from ffmpeg

Postby johnantony » 27 Feb 2017 09:53

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15312
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: rtsp streaming to vlc from ffmpeg

Postby Rémi Denis-Courmont » 27 Feb 2017 19:28

The port numbers are mismatched...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

johnantony
New Cone
New Cone
Posts: 3
Joined: 27 Feb 2017 09:21

Re: rtsp streaming to vlc from ffmpeg

Postby johnantony » 28 Feb 2017 07:21

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15312
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: rtsp streaming to vlc from ffmpeg

Postby Rémi Denis-Courmont » 28 Feb 2017 18:40

The error means there is no server at that port...
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

johnantony
New Cone
New Cone
Posts: 3
Joined: 27 Feb 2017 09:21

Re: rtsp streaming to vlc from ffmpeg

Postby johnantony » 01 Mar 2017 05:28

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

flyingsolo
New Cone
New Cone
Posts: 1
Joined: 13 Aug 2019 00:16

Re: rtsp streaming to vlc from ffmpeg

Postby flyingsolo » 13 Aug 2019 00:23

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15312
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: rtsp streaming to vlc from ffmpeg

Postby Rémi Denis-Courmont » 13 Aug 2019 17:09

Your are not making any sense and I cannot answer your question.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 31 guests