The following example shows how to setup a listening TCP connection with ffmpeg, which is then accessed with ffplay:

ffmpeg -i input -f format tcp://hostname:port?listen
ffplay tcp://hostname:port
The required syntax for a TCP url is:

tcp://hostname:port[?options]
The following example shows how to setup a listening TCP connection with ffmpeg, which is then accessed with ffplay:

ffmpeg -i input -f format tcp://hostname:port?listen
ffplay tcp://hostname:port
The required syntax for a TCP url is:

tcp://hostname:port[?options]
The following example shows how to setup a listening TCP connection with ffmpeg, which is then accessed with ffplay:

ffmpeg -i input -f format tcp://hostname:port?listen
ffplay tcp://hostname:port
The required syntax for a TCP url is:

tcp://hostname:port[?options]
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
For example to read from stdin with ffmpeg:

cat test.wav | ffmpeg -i pipe:0
# ...this is the same as...
cat test.wav | ffmpeg -i pipe:
For writing to stdout with ffmpeg:

ffmpeg -i test.wav -f avi pipe:1 | cat > test.avi
# ...this is the same as...
ffmpeg -i test.wav -f avi pipe: | cat > test.avi
For example, to convert a GIF file given inline with ffmpeg:

ffmpeg -i "data:image/gif;base64,R0lGODdhCAAIAMIEAAAAAAAA//8AAP//AP///////////////ywAAAAACAAIAAADF0gEDLojDgdGiJdJqUX02iB4E8Q9jUMkADs=" smiley.png
For example to read from a file input.mpeg with ffmpeg use the command:

ffmpeg -i file:input.mpeg output.mpeg
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

Recommend

FFMPEG ffprobe Documentation 18 Protocols 18.39 tcp

FFMPEG ffprobe Documentation 18 Protocols 18.38 tee

FFMPEG ffprobe Documentation 18 Protocols 18.37 subfile

FFMPEG ffprobe Documentation 18 Protocols 18.35 srt

FFMPEG ffprobe Documentation 18 Protocols 18.34 sctp

FFMPEG ffprobe Documentation 18 Protocols 18.33 sap 18.33.2 Demuxer

FFMPEG ffprobe Documentation 18 Protocols 18.33 sap 18.33.1 Muxer

FFMPEG ffprobe Documentation 18 Protocols 18.32 rtsp 18.32.1 Examples

FFMPEG ffprobe Documentation 18 Protocols 18.32 rtsp

FFMPEG ffprobe Documentation 18 Protocols 18.30 librtmp rtmp, rtmpe, rtmps, rtmpt, rtmpte

FFMPEG ffprobe Documentation 18 Protocols 18.29 libssh

FFMPEG ffprobe Documentation 18 Protocols 18.22 rtmp

FFMPEG ffprobe Documentation 18 Protocols 18.20 prompeg

FFMPEG ffprobe Documentation 18 Protocols 18.19 pipe

FFMPEG ffprobe Documentation 18 Protocols 18.18 md5

FFMPEG ffprobe Documentation 18 Protocols 18.17 mmsh

FFMPEG ffprobe Documentation 18 Protocols 18.15 Icecast

FFMPEG ffprobe Documentation 18 Protocols 18.14 http 18.14.1 HTTP Cookies

FFMPEG ffprobe Documentation 18 Protocols 18.14 http

FFMPEG ffprobe Documentation 18 Protocols 18.13 hls

FFMPEG ffprobe Documentation 18 Protocols 18.10 ftp

FFMPEG ffprobe Documentation 18 Protocols 18.9 file

FFMPEG ffprobe Documentation 18 Protocols 18.8 data

FFMPEG ffprobe Documentation 18 Protocols 18.7 crypto

FFMPEG ffprobe Documentation 18 Protocols 18.6 concatf

FFMPEG ffprobe Documentation 18 Protocols 18.5 concat

FFMPEG ffprobe Documentation 18 Protocols 18.4 cache

FFMPEG ffprobe Documentation 18 Protocols 18.3 bluray

FFMPEG ffprobe Documentation 18 Protocols 18.2 async

FFMPEG ffprobe Documentation 18 Protocols 18.1 amqp

FFMPEG ffprobe Documentation 16 Metadata

FFMPEG ffprobe Documentation 15 Demuxers 15.20 tedcaptions

FFMPEG ffprobe Documentation 15 Demuxers 15.19 sbg

FFMPEG ffprobe Documentation 15 Demuxers 15.18 rawvideo

FFMPEG ffprobe Documentation 15 Demuxers 15.15 mov/mp4/3gp 15.15.2 Audible AAX

FFMPEG ffprobe Documentation 15 Demuxers 15.11 image2 15.11.1 Examples

FFMPEG ffprobe Documentation 15 Demuxers 15.11 image2

FFMPEG ffprobe Documentation 15 Demuxers 15.9 gif

FFMPEG ffprobe Documentation 15 Demuxers 15.8 flv, live_flv, kux

FFMPEG ffprobe Documentation 15 Demuxers 15.5 concat 15.5.3 Examples

FFMPEG ffprobe Documentation 13 Bitstream Filters 13.26 prores_metadata

FFMPEG ffprobe Documentation 13 Bitstream Filters 13.25 pcm_rechunk

FFMPEG ffprobe Documentation 13 Bitstream Filters 13.23 noise 13.23.1 Examples

FFMPEG ffprobe Documentation 13 Bitstream Filters 13.22 mpeg4_unpack_bframes

FFMPEG ffprobe Documentation 13 Bitstream Filters 13.17 mjpeg2jpeg

FFMPEG ffprobe Documentation 13 Bitstream Filters 13.16 imxdump

FFMPEG ffprobe Documentation 13 Bitstream Filters 13.15 hevc_mp4toannexb

FFMPEG ffprobe Documentation 13 Bitstream Filters 13.12 h264_mp4toannexb

FFMPEG ffprobe Documentation 13 Bitstream Filters 13.10 hapqa_extract

FFMPEG ffprobe Documentation 13 Bitstream Filters 13.9 filter_units

FFMPEG ffprobe Documentation 13 Bitstream Filters 13.5 dump_extra

FFMPEG ffprobe Documentation 13 Bitstream Filters

FFMPEG ffprobe Documentation 8 Codec Options

FFMPEG ffprobe Documentation 7 Expression Evaluation

FFMPEG ffprobe Documentation 6 Syntax 6.3 Time duration

FFMPEG ffprobe Documentation 6 Syntax 6.2 Date

FFMPEG ffprobe Documentation 6 Syntax 6.1 Quoting and escaping 6.1.1 Examples

FFMPEG ffprobe Documentation 4 Writers 4.2 compact, csv

FFMPEG ffprobe Documentation 4 Writers 4.1 default

FFMPEG ffprobe Documentation 3 Options 3.4 Main options

FFMPEG ffprobe Documentation 3 Options 3.3 AVOptions

FFMPEG ffprobe Documentation 3 Options 3.2 Generic options