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

Tom Evans tevans.uk at googlemail.com
Fri Apr 19 15:19:34 CEST 2013


On Fri, Apr 19, 2013 at 12:58 PM,  <paulj at fastmail.es> wrote:
>
>         Nope. ffserver listens on a port and SERVES streams to clients connecting to it. I
> need ffmpeg to listen on a port and RECEIVE a stream sent by a client.
>         With RTSP you can do it, i.e.:
>
>         ffmpeg -rtsp_flags listen -f rtsp -i rtsp://localhost:5050/ -vcodec copy -acodec copy
> video.mp4
>
>         What I'm asking is the equivalent syntax in RTMP.
>
>
>                                   Paulo.

Can you use netcat to do this, pushing the data to ffmpeg over stdin
using pipe protocol:

nc -l localhost 5050 | ffmpeg -f rtsp -i pipe:0 ...

Cheers

Tom


More information about the ffmpeg-user mailing list