This demuxer is used to demux FLV files and RTMP network streams. In case of live network streams, if you force format, you may use live_flv option instead of flv to survive timestamp discontinuities. KUX is a flv variant used on the Youku platform.

ffmpeg -f flv -i myfile.flv ...
ffmpeg -f live_flv -i rtmp://<any.server>/anything/key ....
This demuxer is used to demux FLV files and RTMP network streams. In case of live network streams, if you force format, you may use live_flv option instead of flv to survive timestamp discontinuities. KUX is a flv variant used on the Youku platform.

ffmpeg -f flv -i myfile.flv ...
ffmpeg -f live_flv -i rtmp://<any.server>/anything/key ....
This demuxer is used to demux FLV files and RTMP network streams. In case of live network streams, if you force format, you may use live_flv option instead of flv to survive timestamp discontinuities. KUX is a flv variant used on the Youku platform.

ffmpeg -f flv -i myfile.flv ...
ffmpeg -f live_flv -i rtmp://<any.server>/anything/key ....
This demuxer is used to demux FLV files and RTMP network streams. In case of live network streams, if you force format, you may use live_flv option instead of flv to survive timestamp discontinuities. KUX is a flv variant used on the Youku platform.

ffmpeg -f flv -i myfile.flv ...
ffmpeg -f live_flv -i rtmp://<any.server>/anything/key ....
This demuxer is used to demux FLV files and RTMP network streams. In case of live network streams, if you force format, you may use live_flv option instead of flv to survive timestamp discontinuities. KUX is a flv variant used on the Youku platform.

ffmpeg -f flv -i myfile.flv ...
ffmpeg -f live_flv -i rtmp://<any.server>/anything/key ....
Grab a 640x480 region at position 10,20:

ffmpeg -f gdigrab -framerate 6 -offset_x 10 -offset_y 20 -video_size vga -i desktop out.mpg
When using the filter with wav, note the default encoding for wav is 16-bit, so the resulting 20-bit stream will be truncated back to 16-bit. Use something like -acodec pcm_s24le after the filter to get 24-bit PCM output.

ffmpeg -i HDCD16.wav -af hdcd OUT16.wav
ffmpeg -i HDCD16.wav -af hdcd -c:a pcm_s24le OUT24.wav
For example, to grab the entire desktop using ffmpeg:

ffmpeg -f gdigrab -framerate 6 -i desktop out.mpg
Follows an example which shows how to capture a JACK readable client with ffmpeg.

# Create a JACK writable client with name "ffmpeg".
$ ffmpeg -f jack -i ffmpeg -y out.wav

# Start the sample jack_metro readable client.
$ jack_metro -b 120 -d 0.2 -f 4000

# List the current JACK clients.
$ jack_lsp -c
system:capture_1
system:capture_2
system:playback_1
system:playback_2
ffmpeg:input_1
metro:120_bpm

# Connect metro to the ffmpeg writable client.
$ jack_connect metro:120_bpm ffmpeg:input_1
Capture from two devices simultaneously, writing to two different files, within the same ffmpeg command:

$ ffmpeg -f openal -i 'DR-BT101 via PulseAudio' out1.ogg -f openal -i 'ALSA Default' out2.ogg
Grab at position 10,20:

ffmpeg -f x11grab -framerate 25 -video_size cif -i :0.0+10,20 out.mpg

Recommend

FFMPEG ffmpeg Documentation 20 Demuxers 20.5 concat 20.5.3 Examples

FFMPEG ffmpeg Documentation 18 Bitstream Filters 18.26 prores_metadata

FFMPEG ffmpeg Documentation 18 Bitstream Filters 18.25 pcm_rechunk

FFMPEG ffmpeg Documentation 18 Bitstream Filters 18.23 noise 18.23.1 Examples

FFMPEG ffmpeg Documentation 18 Bitstream Filters 18.22 mpeg4_unpack_bframes

FFMPEG ffmpeg Documentation 18 Bitstream Filters 18.17 mjpeg2jpeg

FFMPEG ffmpeg Documentation 18 Bitstream Filters 18.16 imxdump

FFMPEG ffmpeg Documentation 18 Bitstream Filters 18.15 hevc_mp4toannexb

FFMPEG ffmpeg Documentation 18 Bitstream Filters 18.12 h264_mp4toannexb

FFMPEG ffmpeg Documentation 18 Bitstream Filters 18.10 hapqa_extract

FFMPEG ffmpeg Documentation 18 Bitstream Filters 18.9 filter_units

FFMPEG ffmpeg Documentation 18 Bitstream Filters 18.5 dump_extra

FFMPEG ffmpeg Documentation 18 Bitstream Filters

FFMPEG ffmpeg Documentation 16 Video Encoders 16.16 libxvid 16.16.1 Options

FFMPEG ffmpeg Documentation 16 Video Encoders 16.15 libxavs2 16.15.1 Options

FFMPEG ffmpeg Documentation 16 Video Encoders 16.14 libx265 16.14.1 Options

FFMPEG ffmpeg Documentation 16 Video Encoders 16.13 libx264, libx264rgb 16.13.2 Options

FFMPEG ffmpeg Documentation 16 Video Encoders 16.11 libvpx 16.11.1 Options

FFMPEG ffmpeg Documentation 16 Video Encoders 16.10 libtheora 16.10.2 Examples

FFMPEG ffmpeg Documentation 16 Video Encoders 16.6 libaom-av1 16.6.1 Options

FFMPEG ffmpeg Documentation 16 Video Encoders 16.5 librav1e 16.5.1 Options

FFMPEG ffmpeg Documentation 16 Video Encoders 16.4 jpeg2000 16.4.1 Options

FFMPEG ffmpeg Documentation 15 Audio Encoders 15.5 libfdk_aac 15.5.2 Examples

FFMPEG ffmpeg Documentation 9 Codec Options

FFMPEG ffmpeg Documentation 8 Expression Evaluation

FFMPEG ffmpeg Documentation 7 Syntax 7.3 Time duration

FFMPEG ffmpeg Documentation 7 Syntax 7.2 Date

FFMPEG ffmpeg Documentation 7 Syntax 7.1 Quoting and escaping 7.1.1 Examples

FFMPEG FFmpeg Bitstream Filters Documentation 2 Bitstream Filters 2.26 prores_metadata

FFMPEG FFmpeg Bitstream Filters Documentation 2 Bitstream Filters 2.25 pcm_rechunk

FFMPEG FFmpeg Bitstream Filters Documentation 2 Bitstream Filters 2.23 noise 2.23.1 Examples

FFMPEG FFmpeg Bitstream Filters Documentation 2 Bitstream Filters 2.22 mpeg4_unpack_bframes

FFMPEG FFmpeg Bitstream Filters Documentation 2 Bitstream Filters 2.17 mjpeg2jpeg

FFMPEG FFmpeg Bitstream Filters Documentation 2 Bitstream Filters 2.16 imxdump

FFMPEG FFmpeg Bitstream Filters Documentation 2 Bitstream Filters 2.15 hevc_mp4toannexb

FFMPEG FFmpeg Bitstream Filters Documentation 2 Bitstream Filters 2.12 h264_mp4toannexb

FFMPEG FFmpeg Bitstream Filters Documentation 2 Bitstream Filters 2.10 hapqa_extract

FFMPEG FFmpeg Bitstream Filters Documentation 2 Bitstream Filters 2.9 filter_units

FFMPEG FFmpeg Bitstream Filters Documentation 2 Bitstream Filters 2.5 dump_extra

FFMPEG FFmpeg Bitstream Filters Documentation 2 Bitstream Filters

FFMPEG FFmpeg Filters Documentation 17 Multimedia Sources 17.2 movie

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.32 zmq, azmq 16.32.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.32 zmq, azmq

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.31 split, asplit 16.31.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.30 spectrumsynth 16.30.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.28 showwavespic 16.28.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.27 showwaves 16.27.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.25 showspectrumpic 16.25.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.24 showspectrum 16.24.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.21 showcqt 16.21.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.20 settb, asettb 16.20.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.18 setpts, asetpts 16.18.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.17 sendcmd, asendcmd 16.17.2 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.17 sendcmd, asendcmd 16.17.1 Commands syntax

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.16 select, aselect 16.16.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.15 segment, asegment 16.15.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.12 metadata, ametadata 16.12.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.10 interleave, ainterleave 16.10.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.9 ebur128 16.9.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.8 concat 16.8.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.7 bench, abench 16.7.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.6 avectorscope 16.6.1 Examples

FFMPEG FFmpeg Filters Documentation 16 Multimedia Filters 16.5 aphasemeter 16.5.2 Examples

FFMPEG FFmpeg Filters Documentation 14 Video Sources 14.9 allrgb, allyuv, color, colorspectrum, haldclutsrc, nullsrc, pal75bars, pal100bars, rgbtestsrc, smptebars, smptehdbars, testsrc, testsrc2, yuvtestsrc 14.9.1 Examples

FFMPEG FFmpeg Filters Documentation 14 Video Sources 14.8 life 14.8.1 Examples

FFMPEG FFmpeg Filters Documentation 14 Video Sources 14.7 frei0r_src

FFMPEG FFmpeg Filters Documentation 14 Video Sources 14.3 coreimagesrc 14.3.1 Examples

FFMPEG FFmpeg Filters Documentation 14 Video Sources 14.3 coreimagesrc

FFMPEG FFmpeg Filters Documentation 14 Video Sources 14.2 cellauto 14.2.1 Examples

FFMPEG FFmpeg Filters Documentation 14 Video Sources 14.1 buffer

FFMPEG FFmpeg Filters Documentation 13 VAAPI Video Filters 13.1 overlay_vaapi 13.1.1 Examples

FFMPEG FFmpeg Filters Documentation 12 OpenCL Video Filters 12.15 tonemap_opencl 12.15.1 Example

FFMPEG FFmpeg Filters Documentation 12 OpenCL Video Filters 12.12 program_opencl

FFMPEG FFmpeg Filters Documentation 12 OpenCL Video Filters 12.11 prewitt_opencl 12.11.1 Example

FFMPEG FFmpeg Filters Documentation 12 OpenCL Video Filters 12.9 overlay_opencl 12.9.1 Examples