[FFmpeg-user] Syntax for ffmpeg to listen on a port for a RTMP stream

paulj at fastmail.es paulj at fastmail.es
Fri Apr 19 12:52:56 CEST 2013


Hello:

	I want ffmpeg to listen on a given TCP port for an incoming video stream, but I can't 
get the right syntax. I have tried:

	ffmpeg -listen -i rtmp://localhost:6060 -vcodec copy -acodec copy bla.mp4

	ffmpeg -i rtmp://localhost:6060 -listen -vcodec copy -acodec copy bla.mp4

	ffmpeg -i rtmp://localhost:6060 listen -vcodec copy -acodec copy bla.mp4

	And in all cases I get "TCP connection to localhost:6060 failed. Connection refused", 
as if ffmpeg was trying to open a connection, instead of listening.
	With RTSP, there's a "-rtsp_flags" option where you can add parameters, but the 
documentation doesn't say anything about RTMP.
	I'm using the binary build of 1.2.7 for OS X (the one linked to in the webpage). The 
build DOES support RTMP, as shown with the "-protocols" option.


                                  Paulo.

-------------------------------------------
"Oh, don't worry kids. Most of you will
never fall in love. You'll just marry
for fear of dying alone."

                             The Simpsons.
-------------------------------------------



More information about the ffmpeg-user mailing list