[FFmpeg-user] Can the rtmp stream published by Flash Media Encoder be read by ffmpeg?

paulj at fastmail.es paulj at fastmail.es
Wed Apr 24 18:53:29 CEST 2013


> On Wed, Apr 24, 2013 at 5:25 PM,  <paulj at fastmail.es> wrote:
> >
> >         Funny you should ask that :-), since I asked the exact same
> question a few days ago.
> > From my research, you can NOT just use ffmpeg to listen on a port and
> get the RTMP
> > stream; Flash Media Live Encoder expects something... else (don't know
> exactly what, would
> > love to be enlightened). Thus, you need a  proper RTMP server to listen
> to its stream.
> 
> You asked the same question a few days ago, but didn't respond to my
> comment that netcat can be used to listen on a port and feed the data
> to ffmpeg over a pipe. I see no reason why that should not work.
> 


	Oh, yes. Sorry, forgot to respond (short story: it didn't work, and then I was on a rush 
to find an alternative and none of them involved ffmpeg, so were kind-of off-topic for this list).

	Long story: Flash Media Live Encoder needs in its URL, not just the IP address of the 
server, but also the path and name of an application server (I think) which receives its 
stream. In other words, if you just put:

	rtmp://192.168.1.1/

	As the destination URL, it won't even connect; it will tell you that the URL is invalid. 
You need to put something like:

	rtmp://192.168.1.1/live/stream

	For it to connect. From what I've seen in Red5's install, there should be a Java 
server-based app listening on that URL, in charge of receiving FMLE's stream (and probably 
receiving whatever commands FMLE sends along). Since I don't know Java and didn't see a 
way to simulate that setup using netcat, I abandoned that path.

	Forgot to mention: I asked about it on Stack Overflow and didn't get any answers 
either:

http://stackoverflow.com/questions/16113734/red5-receive-a-stream-and-have-it-available-fo
r-just-one-client

	Right now it isn't an urgent matter for me anymore, but as I said, I'd love to hear what 
I was doing wrong, just for future reference.


                                  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