For example, to stream a file in real-time to an RTMP server using ffmpeg:

ffmpeg -re -i myfile -f flv rtmp://myserver/live/mystream
To play the same stream using ffplay:

ffplay "rtmp://myserver/live/mystream live=1"
For example, to stream a file in real-time to an RTMP server using ffmpeg:

ffmpeg -re -i myfile -f flv rtmp://myserver/live/mystream
For example, to stream a file in real-time to an RTMP server using ffmpeg:

ffmpeg -re -i myfile -f flv rtmp://myserver/live/mystream
To play the same stream using ffplay:

ffplay "rtmp://myserver/live/mystream live=1"
To play the same stream using ffplay:

ffplay "rtmp://myserver/live/mystream live=1"
For example, to stream a file in real-time to an RTMP server using ffmpeg:

ffmpeg -re -i myfile -f flv rtmp://myserver/live/mystream
For example, to stream a file in real-time to an RTMP server using ffmpeg:

ffmpeg -re -i myfile -f flv rtmp://myserver/live/mystream
To play the same stream using ffplay:

ffplay "rtmp://myserver/live/mystream live=1"
To play the same stream using ffplay:

ffplay "rtmp://myserver/live/mystream live=1"
If set to 1 enables experimental HTTP server. This can be used to send data when used as an output option, or read data from a client with HTTP POST when used as an input option. If set to 2 enables experimental multi-client HTTP server. This is not yet implemented in ffmpeg.c and thus must not be used as a command line option.

# Server side (sending):
ffmpeg -i somefile.ogg -c copy -listen 1 -f ogg http://server:port

# Client side (receiving):
ffmpeg -i http://server:port -c copy somefile.ogg

# Client can also be done with wget:
wget http://server:port -O somefile.ogg

# Server side (receiving):
ffmpeg -listen 1 -i http://server:port -c copy somefile.ogg

# Client side (sending):
ffmpeg -i somefile.ogg -chunked_post 0 -c copy -f ogg http://server:port

# Client can also be done with wget:
wget --post-file=somefile.ogg http://server:port
After starting the broker, an FFmpeg client may stream data to the broker using the command:

ffmpeg -re -i input -f mpegts amqp://[[user]:[password]@]hostname[:port][/vhost]

Recommend

FFMPEG ffmpeg Documentation 24 Protocols 24.29 libssh

FFMPEG ffmpeg Documentation 24 Protocols 24.22 rtmp

FFMPEG ffmpeg Documentation 24 Protocols 24.19 pipe

FFMPEG ffmpeg Documentation 24 Protocols 24.18 md5

FFMPEG ffmpeg Documentation 24 Protocols 24.17 mmsh

FFMPEG ffmpeg Documentation 24 Protocols 24.15 Icecast

FFMPEG ffmpeg Documentation 24 Protocols 24.14 http 24.14.1 HTTP Cookies

FFMPEG ffmpeg Documentation 24 Protocols 24.14 http

FFMPEG ffmpeg Documentation 24 Protocols 24.13 hls

FFMPEG ffmpeg Documentation 24 Protocols 24.10 ftp

FFMPEG ffmpeg Documentation 24 Protocols 24.9 file

FFMPEG ffmpeg Documentation 24 Protocols 24.8 data

FFMPEG ffmpeg Documentation 24 Protocols 24.7 crypto

FFMPEG ffmpeg Documentation 24 Protocols 24.6 concatf

FFMPEG ffmpeg Documentation 24 Protocols 24.5 concat

FFMPEG ffmpeg Documentation 24 Protocols 24.4 cache

FFMPEG ffmpeg Documentation 24 Protocols 24.3 bluray

FFMPEG ffmpeg Documentation 24 Protocols 24.2 async

FFMPEG ffmpeg Documentation 24 Protocols 24.1 amqp

FFMPEG ffmpeg Documentation 22 Metadata

FFMPEG ffmpeg Documentation 21 Muxers 21.35 webm_dash_manifest 21.35.2 Example

FFMPEG ffmpeg Documentation 21 Muxers 21.34 webm_chunk 21.34.2 Example

FFMPEG ffmpeg Documentation 21 Muxers 21.33 tee 21.33.2 Examples

FFMPEG ffmpeg Documentation 21 Muxers 21.30 segment, stream_segment, ssegment 21.30.2 Examples

FFMPEG ffmpeg Documentation 21 Muxers 21.30 segment, stream_segment, ssegment 21.30.1 Options

FFMPEG ffmpeg Documentation 21 Muxers 21.27 nut

FFMPEG ffmpeg Documentation 21 Muxers 21.26 null

FFMPEG ffmpeg Documentation 21 Muxers 21.24 mpegts 21.24.1 Options

FFMPEG ffmpeg Documentation 21 Muxers 21.23 mp3

FFMPEG ffmpeg Documentation 21 Muxers 21.22 mov, mp4, ismv 21.22.2 Example

FFMPEG ffmpeg Documentation 21 Muxers 21.21 md5 21.21.1 Examples

FFMPEG ffmpeg Documentation 21 Muxers 21.20 matroska 21.20.1 Metadata

FFMPEG ffmpeg Documentation 21 Muxers 21.19 image2 21.19.2 Examples

FFMPEG ffmpeg Documentation 21 Muxers 21.18 ico

FFMPEG ffmpeg Documentation 21 Muxers 21.17 hls 21.17.1 Options

FFMPEG ffmpeg Documentation 21 Muxers 21.17 hls

FFMPEG ffmpeg Documentation 21 Muxers 21.16 hash 21.16.1 Examples

FFMPEG ffmpeg Documentation 21 Muxers 21.15 gif

FFMPEG ffmpeg Documentation 21 Muxers 21.14 framemd5 21.14.1 Examples

FFMPEG ffmpeg Documentation 21 Muxers 21.13 framehash 21.13.1 Examples

FFMPEG ffmpeg Documentation 21 Muxers 21.12 framecrc 21.12.1 Examples

FFMPEG ffmpeg Documentation 21 Muxers 21.12 framecrc

FFMPEG ffmpeg Documentation 21 Muxers 21.10 fifo 21.10.1 Examples

FFMPEG ffmpeg Documentation 21 Muxers 21.9 dash

FFMPEG ffmpeg Documentation 21 Muxers 21.8 crc 21.8.1 Examples

FFMPEG ffmpeg Documentation 20 Demuxers 20.20 tedcaptions

FFMPEG ffmpeg Documentation 20 Demuxers 20.19 sbg