FFPLAY-ALL(1) (NAME) ffplay-all - FFplay (SYNOPSIS) ffplay [] [__] (DESCRIPTION) FFplay FFmpeg SDL . FFmpeg . (OPTIONS) (SI) 'K' 'M' 'G' . 'i' SI . 'B' SI . 'KB' 'MiB' 'G' 'B' . (true) . "no" (false) . "-nofoo" "foo" false . . '/' ( ) . : ffplay -/vf filter.script input.mp4 filter.script . (Stream specifiers) (bitrate) . ( ) . (:) . "-codec:a:1 ac3" "a:1" . ac3 . . "-b:a 128k" . . "-codec copy" "-codec: copy" . : stream_index . "-threads:1 4" 4 . stream_index ( ) stream_index . libavformat (program ID) . . stream_type[:additional_stream_specifier] stream_type : 'v' 'V' 'a' 's' 'd' 't' . 'v' 'V' (thumbnails) . additional_stream_specifier additional_stream_specifier . . g:group_specifier[:additional_stream_specifier] group_specifier . additional_stream_specifier additional_stream_specifier . group_specifier : group_index . #group_id or i:group_id . p:program_id[:additional_stream_specifier] program_id . additional_stream_specifier additional_stream_specifier . #stream_id or i:stream_id ( PID MPEG-TS). m:key[:value] key . value . ':' key value (escape ). disp:dispositions[:additional_stream_specifier] () . dispositions ( -dispositions ) '+' . u . ffplay . (Generic options) ff* . -L, -license . -h, -?, -help, --help [arg] . . () . arg : long . full . decoder=decoder_name decoder_name. -decoders . encoder=encoder_name encoder_name. -encoders . demuxer=demuxer_name demuxer_name. -formats . muxer=muxer_name muxer_name. -formats . filter=filter_name filter_name. -filters . bsf=bitstream_filter_name bitstream_filter_name. -bsfs . protocol=protocol_name protocol_name. -protocols . -version . -buildconf (build) . -formats ( ). -demuxers . -muxers . -devices . -codecs libavcodec. 'codec' . -decoders . -encoders . -bsfs . -protocols . -filters libavfilter. -pix_fmts . -sample_fmts . -layouts . -dispositions . -colors . -sources device[,opt1=val1[,opt2=val2]...] . . . ffmpeg -sources pulse,server=192.168.0.4 -sinks device[,opt1=val1[,opt2=val2]...] (sinks) . . . ffmpeg -sinks pulse,server=192.168.0.4 -loglevel [flags+]loglevel | -v [flags+]loglevel . flags : repeat "Last message repeated n times" . level "[level]" . . time . datetime . '+'/'-' / flags loglevel . flags loglevel '+' flags loglevel . loglevel : quiet, -8 . panic, 0 assertion. . fatal, 8 . . error, 16 . warning, 24 . . info, 32 . . . verbose, 40 "info" . debug, 48 . trace, 56 "level" loglevel "verbose": ffmpeg -loglevel repeat+level+verbose -i input output "level" loglevel : ffmpeg [...] -loglevel +repeat stderr . . AV_LOG_FORCE_NOCOLOR AV_LOG_FORCE_COLOR . -report "program-YYYYMMDD-HHMMSS.log" . . "-loglevel debug" . FFREPORT . key=value ':' ':' ( "Quoting and escaping" ffmpeg-utils ). : file %p %t "%%" "%" . level ( "-loglevel" ). ffreport.log 32 ( "info"): FFREPORT=file=ffreport.log:level=32 ffmpeg -i input output . -hide_banner . FFmpeg . . -cpuflags flags (global) (CPU) . . . ffmpeg -cpuflags -sse+mmx ... ffmpeg -cpuflags mmx ... ffmpeg -cpuflags 0 ... : x86 mmx mmxext sse sse2 sse2slow sse3 sse3slow ssse3 atom sse4.1 sse4.2 avx avx2 xop fma3 fma4 3dnow 3dnowext bmi1 bmi2 cmov ARM armv5te armv6 armv6t2 vfp vfpv3 neon setend AArch64 armv8 vfp neon PowerPC altivec Specific Processors pentium2 pentium3 pentium4 k6 k62 athlon athlonxp k8 -cpucount count (global) . . . ffmpeg -cpucount 2 -max_alloc bytes (heap) malloc ffmpeg. . . INT_MAX . AVOptions libavformat libavdevice libavcodec . AVOptions -help . : generic . / AVFormatContext AVCodecContext . private . // . ID3v2.3 ID3v2.4 MP3 id3v2_version MP3 : ffmpeg -i input.flac -id3v2_version 3 out.mp3 AVOptions : ffmpeg -i multichannel.mxf -map 0:v:0 -map 0:a:0 -map 0:a:0 -c:a:0 ac3 -b:a:0 640k -ac:a:1 2 -c:a:1 aac -b:2 128k out.mp4 . ac3 640k . (downmix) aac . 128k . : -nooption AVOptions -option 0/-option 1 . : AVOptions v/a/s . (Main options) -x ( ). -y ( ). -fs (fullscreen). -an . -vn . -sn . -ss . ffplay . -t _ / ( ). -bytes . -seek_interval ( ) /. . -nodisp . -noborder (borderless window). -alwaysontop . -volume . 0 100 . -f . -window_title ( ). -left _ x ( ). -top _ y ( ). -loop <> . 0 . -showmode . : 0, video 1, waves 2, rdft RDFT "video" . w . -vf filtergraph . -af filtergraph . -i url . (Advanced options) -stats /. "-nostats" . -fast . -genpts pts ( ). -sync name ("type=audio") ("type=video") ("type=ext"). . -ast __ . -vst __ . -sst __ . -autoexit . -exitonkeydown . -exitonmousedown (). -codec:media_specifier codec_name media_specifier ( "a" "v" "s" ). -acodec codec_name . -vcodec codec_name . -scodec codec_name . -autorotate . . -noautorotate . -framedrop (Drop frames) . -infbuf . -filter_threads nb_threads (threads) . -enable_vulkan Vulkan SDL. libplacebo . -vulkan_params (Vulkan) key=value <<:>> . -hwaccel . . -video_bg ( ). Color ffmpeg-utils(1) . "tiles"?R . "none"?R (alpha blending) . (While playing) : q, ESC . f . p, (SPC) (Pause) . m / (Mute). 9, 0 /, * . a . v . t . c (Programs). w . s ( ). / (left/right) / ( -seek_interval). / (down/up) / . / (page down/page up) / ( / ). (right mouse click) . (left mouse double-click) . (SYNTAX) FFmpeg . (Quoting and escaping) FFmpeg (Quoting and Escaping) . : o ' \ ( / ). . o \ . o '' (literal) . ' . o (whitespaces) . (shell) . "av_get_token" libavutil/avstring.h . tools/ffescape FFmpeg . o "Crime d'Amour" "'": Crime d\'Amour o "'" : 'Crime d'\''Amour' o : ' this string starts and ends with whitespaces ' o : ' The string '\'string\'' is a string ' o \ : 'c:\foo' can be written as c:\\foo (Date) : [(YYYY-MM-DD|YYYYMMDD)[T|t| ]]((HH:MM:SS[.m...]]])|(HHMMSS[.m...]]]))[Z] now "now" . Z UTC . -- -- . (Time duration) : [-][:]:[....] HH MM SS . m SS . [-]+[....][s|ms|us] S m . s ms us . - . : 55 55 0.2 0.2 200ms 200 0.2s 200000us 200000 0.2s 12:03:45 12 03 45 23.189 23.189 (Video size) widthxheight . : ntsc 720x480 pal 720x576 qntsc 352x240 qpal 352x288 sntsc 640x480 spal 768x576 film 352x240 ntsc-film 352x240 sqcif 128x96 qcif 176x144 cif 352x288 4cif 704x576 16cif 1408x1152 qqvga 160x120 qvga 320x240 vga 640x480 svga 800x600 xga 1024x768 uxga 1600x1200 qxga 2048x1536 sxga 1280x1024 qsxga 2560x2048 hsxga 5120x4096 wvga 852x480 wxga 1366x768 wsxga 1600x1024 wuxga 1920x1200 woxga 2560x1600 wqsxga 3200x2048 wquxga 3840x2400 whsxga 6400x4096 whuxga 7680x4800 cga 320x200 ega 640x350 hd480 852x480 hd720 1280x720 hd1080 1920x1080 2k 2048x1080 2kflat 1998x1080 2kscope 2048x858 4k 4096x2160 4kflat 3996x2160 4kscope 4096x1716 nhd 640x360 hqvga 240x160 wqvga 400x240 fwqvga 432x240 hvga 480x320 qhd 960x540 2kdci 2048x1080 4kdci 4096x2160 uhd2160 3840x2160 uhd4320 7680x4320 (Video rate) . frame_rate_num/frame_rate_den . : ntsc 30000/1001 pal 25/1 qntsc 30000/1001 qpal 25/1 sntsc 30000/1001 spal 25/1 film 24/1 ntsc-film 24000/1001 (Ratio) numerator:denominator . (1/0) . "0:0" . (Color) ( ) "[0x|#]RRGGBB[AA]" @ . "0x" 0.0 1.0 (opacity) (0x00 0.0 0xff 1.0 ). 0xff . random . : AliceBlue 0xF0F8FF AntiqueWhite 0xFAEBD7 Aqua 0x00FFFF Aquamarine 0x7FFFD4 Azure 0xF0FFFF Beige 0xF5F5DC Bisque 0xFFE4C4 Black 0x000000 BlanchedAlmond 0xFFEBCD Blue 0x0000FF BlueViolet 0x8A2BE2 Brown 0xA52A2A BurlyWood 0xDEB887 CadetBlue 0x5F9EA0 Chartreuse 0x7FFF00 Chocolate 0xD2691E Coral 0xFF7F50 CornflowerBlue 0x6495ED Cornsilk 0xFFF8DC Crimson 0xDC143C Cyan 0x00FFFF DarkBlue 0x00008B DarkCyan 0x008B8B DarkGoldenRod 0xB8860B DarkGray 0xA9A9A9 DarkGreen 0x006400 DarkKhaki 0xBDB76B DarkMagenta 0x8B008B DarkOliveGreen 0x556B2F Darkorange 0xFF8C00 DarkOrchid 0x9932CC DarkRed 0x8B0000 DarkSalmon 0xE9967A DarkSeaGreen 0x8FBC8F DarkSlateBlue 0x483D8B DarkSlateGray 0x2F4F4F DarkTurquoise 0x00CED1 DarkViolet 0x9400D3 DeepPink 0xFF1493 DeepSkyBlue 0x00BFFF DimGray 0x696969 DodgerBlue 0x1E90FF FireBrick 0xB22222 FloralWhite 0xFFFAF0 ForestGreen 0x228B22 Fuchsia 0xFF00FF Gainsboro 0xDCDCDC GhostWhite 0xF8F8FF Gold 0xFFD700 GoldenRod 0xDAA520 Gray 0x808080 Green 0x008000 GreenYellow 0xADFF2F HoneyDew 0xF0FFF0 HotPink 0xFF69B4 IndianRed 0xCD5C5C Indigo 0x4B0082 Ivory 0xFFFFF0 Khaki 0xF0E68C Lavender 0xE6E6FA LavenderBlush 0xFFF0F5 LawnGreen 0x7CFC00 LemonChiffon 0xFFFACD LightBlue 0xADD8E6 LightCoral 0xF08080 LightCyan 0xE0FFFF LightGoldenRodYellow 0xFAFAD2 LightGreen 0x90EE90 LightGrey 0xD3D3D3 LightPink 0xFFB6C1 LightSalmon 0xFFA07A LightSeaGreen 0x20B2AA LightSkyBlue 0x87CEFA LightSlateGray 0x778899 LightSteelBlue 0xB0C4DE LightYellow 0xFFFFE0 Lime 0x00FF00 LimeGreen 0x32CD32 Linen 0xFAF0E6 Magenta 0xFF00FF Maroon 0x800000 MediumAquaMarine 0x66CDAA MediumBlue 0x0000CD MediumOrchid 0xBA55D3 MediumPurple 0x9370D8 MediumSeaGreen 0x3CB371 MediumSlateBlue 0x7B68EE MediumSpringGreen 0x00FA9A MediumTurquoise 0x48D1CC MediumVioletRed 0xC71585 MidnightBlue 0x191970 MintCream 0xF5FFFA MistyRose 0xFFE4E1 Moccasin 0xFFE4B5 NavajoWhite 0xFFDEAD Navy 0x000080 OldLace 0xFDF5E6 Olive 0x808000 OliveDrab 0x6B8E23 Orange 0xFFA500 OrangeRed 0xFF4500 Orchid 0xDA70D6 PaleGoldenRod 0xEEE8AA PaleGreen 0x98FB98 PaleTurquoise 0xAFEEEE PaleVioletRed 0xD87093 PapayaWhip 0xFFEFD5 PeachPuff 0xFFDAB9 Peru 0xCD853F Pink 0xFFC0CB Plum 0xDDA0DD PowderBlue 0xB0E0E6 Purple 0x800080 Red 0xFF0000 RosyBrown 0xBC8F8F RoyalBlue 0x4169E1 SaddleBrown 0x8B4513 Salmon 0xFA8072 SandyBrown 0xF4A460 SeaGreen 0x2E8B57 SeaShell 0xFFF5EE Sienna 0xA0522D Silver 0xC0C0C0 SkyBlue 0x87CEEB SlateBlue 0x6A5ACD SlateGray 0x708090 Snow 0xFFFAFA SpringGreen 0x00FF7F SteelBlue 0x4682B4 Tan 0xD2B48C Teal 0x008080 Thistle 0xD8BFD8 Tomato 0xFF6347 Turquoise 0x40E0D0 Violet 0xEE82EE Wheat 0xF5DEB3 White 0xFFFFFF WhiteSmoke 0xF5F5F5 Yellow 0xFFFF00 YellowGreen 0x9ACD32 (Channel Layout) . FFmpeg . : FL (front left) FR (front right) FC (front center) LFE / (low frequency) BL (back left) BR (back right) FLC FRC BC SL (side left) SR (side right) TC TFL TFC TFR TBL TBC TBR DL DR WL WR SDL SDR LFE2 : mono FC stereo FL+FR 2.1 FL+FR+LFE 3.0 FL+FR+FC 3.0(back) FL+FR+BC 4.0 FL+FR+FC+BC quad FL+FR+BL+BR quad(side) FL+FR+SL+SR 3.1 FL+FR+FC+LFE 5.0 FL+FR+FC+BL+BR 5.0(side) FL+FR+FC+SL+SR 4.1 FL+FR+FC+LFE+BC 5.1 FL+FR+FC+LFE+BL+BR 5.1(side) FL+FR+FC+LFE+SL+SR 6.0 FL+FR+FC+BC+SL+SR 6.0(front) FL+FR+FLC+FRC+SL+SR 3.1.2 FL+FR+FC+LFE+TFL+TFR hexagonal FL+FR+FC+BL+BR+BC 6.1 FL+FR+FC+LFE+BC+SL+SR 6.1 FL+FR+FC+LFE+BL+BR+BC 6.1(front) FL+FR+LFE+FLC+FRC+SL+SR 7.0 FL+FR+FC+BL+BR+SL+SR 7.0(front) FL+FR+FC+FLC+FRC+SL+SR 7.1 FL+FR+FC+LFE+BL+BR+SL+SR 7.1(wide) FL+FR+FC+LFE+BL+BR+FLC+FRC 7.1(wide-side) FL+FR+FC+LFE+FLC+FRC+SL+SR 5.1.2 FL+FR+FC+LFE+BL+BR+TFL+TFR octagonal FL+FR+FC+BL+BR+BC+SL+SR cube FL+FR+BL+BR+TFL+TFR+TBL+TBR 5.1.4 FL+FR+FC+LFE+BL+BR+TFL+TFR+TBL+TBR 7.1.2 FL+FR+FC+LFE+BL+BR+SL+SR+TFL+TFR 7.1.4 FL+FR+FC+LFE+BL+BR+SL+SR+TFL+TFR+TBL+TBR 7.2.3 FL+FR+FC+LFE+BL+BR+SL+SR+TFL+TFR+TBC+LFE2 9.1.4 FL+FR+FC+LFE+BL+BR+FLC+FRC+SL+SR+TFL+TFR+TBL+TBR 9.1.6 FL+FR+FC+LFE+BL+BR+FLC+FRC+SL+SR+TFL+TFR+TBL+TBR+TSL+TSR hexadecagonal FL+FR+FC+BL+BR+BC+SL+SR+WL+WR+TBL+TBR+TBC+TFC+TFL+TFR binaural BIL+BIR downmix DL+DR 22.2 FL+FR+FC+LFE+BL+BR+FLC+FRC+BC+SL+SR+TC+TFL+TFC+TFR+TBL+TBC+TBR+LFE2+TSL+TSR+BFC+BFL+BFR '+' . : o ( FL FR FC LFE ) '@' ( FL@Left FR@Right FC@Center LFE@Low_Frequency ) : o ( FL FR FC LFE ) o ( mono stereo 4.0 quad 5.0 ) o 'c' ( "av_channel_layout_default" ). . o 'C' . . o "0x" ( "AV_CH_*" libavutil/channel_layout.h ). 53 libavutil "c" ( "c" "C" ). "av_channel_layout_from_string" libavutil/channel_layout.h . (EXPRESSION EVALUATION) FFmpeg libavutil/eval.h . . expr1 expr2 "expr1;expr2" . expr1 expr2 expr2 . : "+" "-" "*" "/" "^". : "+" "-". . "ld" "st" 0 9 . : abs(x) x. acos(x) x. asin(x) x. atan(x) x. atan2(y, x) y/x. between(x, min, max) 1 x min max 0. bitand(x, y) bitor(x, y) AND OR x y. x y . . ( 2^53 ) . ceil(expr) expr . "ceil(1.5)" "2.0" . clip(x, min, max) x min max. cos(x) x. cosh(x) () x. eq(x, y) 1 x y 0. exp(x) x ( "e" ). floor(expr) expr . "floor(\-1.5)" "\-2.0" . gauss(x) x "exp(\-x*x/2) / sqrt(2*PI)". gcd(x, y) (..) x y. x y 0 . gt(x, y) 1 x y 0. gte(x, y) 1 x y 0. hypot(x, y) C "sqrt(x*x + y*y)" x y (x, y) . if(x, y) x y 0. if(x, y, z) x y z . ifnot(x, y) x y 0. ifnot(x, y, z) x y z . isinf(x) 1.0 x +/-INFINITY 0.0. isnan(x) 1.0 x NAN 0.0. ld(idx) idx st(idx, expr) . . lerp(x, y, z) x y z. log(x) x. lt(x, y) 1 x y 0. lte(x, y) 1 x y 0. max(x, y) x y. min(x, y) x y. mod(x, y) x y. not(expr) 1.0 expr 0.0. pow(x, y) x y "(x)^(y)". print(t) print(t, l) t (loglevel) l. l . . random(idx) 0.0 1.0. idx seed/state st(idx) . seed seed idx . seed 42 0 : st(0,42); print(random(0)); print(random(0)); print(random(0)) randomi(idx, min, max) min max. idx seed/state st(idx) . seed seed idx . root(expr, max) expr ld(0) 0..max 0 . expr . ld(0) ld(0) . 0 . round(expr) expr . "round(1.5)" "2.0" . sgn(x) x. sin(x) x. sinh(x) x. sqrt(expr) () expr. "(expr)^.5". squish(x) "1/(1 + exp(4*x))". st(idx, expr) expr . idx 0 9 . . ld(var) . : . tan(x) x. tanh(x) x. taylor(expr, x) taylor(expr, x, idx) x ld(idx)- 0 . . ld(idx) expr ld(idx) . idx 0 . : y 0 "taylor(expr, x-y)" . time(0) ( ) . trunc(expr) expr . "trunc(\-1.5)" "\-1.0" . while(cond, expr) expr cond expr NAN cond . : PI 3.14 E exp(1) ( ) 2.718 PHI (1+sqrt(5))/2 1.618 "" (true) : "*" AND "+" OR : if (A AND B) then C : if(A*B, C) C . (SI) . 'i' () 1024 1000. 'B' . 'KB' 'MiB' 'G' 'B' . 10 2. y 10^-24 / 2^-80 z 10^-21 / 2^-70 a 10^-18 / 2^-60 f 10^-15 / 2^-50 p 10^-12 / 2^-40 n 10^-9 / 2^-30 u 10^-6 / 2^-20 m 10^-3 / 2^-10 c 10^-2 d 10^-1 h 10^2 k 10^3 / 2^10 K 10^3 / 2^10 M 10^6 / 2^20 G 10^9 / 2^30 T 10^12 / 2^40 P 10^15 / 2^50 E 10^18 / 2^60 Z 10^21 / 2^70 Y 10^24 / 2^80 (CODEC OPTIONS) libavcodec . (private options) . . . -option value FFmpeg "AVCodecContext" API libavutil/opt.h . : b integer () . 200K . ab integer () ( ). 128K . bt integer () ( ) ( ). 1-pass . / . . flags flags (/) . : mv4 (mpeg4). qpel 1/4 (qpel). loop (loop filter). qscale qscale . pass1 2pass . pass2 2pass . gray / ( ). psnr error[?] . truncated . drop_changed . AVERROR_INPUT_CHANGED . ildct DCT (interlaced). low_delay . global_header extradata . bitexact ( (I)DCT). . . aic H263 / AC mpeg4. ilme . cgop GOP (closed GOP). output_corrupt . time_base rational number . ( ) . "1 / frame_rate" 1 . g integer () (GOP). 12 . ar integer (/) ( ). ac integer (/) . cutoff integer () ( ). frame_size integer () . frame_size . CODEC_CAP_VARIABLE_FRAME_SIZE 0 . . frame_number integer . delay integer qcomp float () (VBR). . rc_eq : 0.0-1.0. qblur float () (VBR). qmin integer () (VBR). -1 69 2 . qmax integer () (VBR). -1 1024 31 . qdiff integer () (VBR). bf integer () B B. -1 16 . 0 B . -1 . 0 . b_qfactor float () QP P B. codec_tag integer bug flags () . : autodetect xvid_ilace Xvid ( fourcc==XVIX ) ump4 ( fourcc==UMP4 ) no_padding ( ) amv qpel_chroma std_qpel qpel ( fourcc/) qpel_chroma2 direct_blocksize direct-qpel-blocksize ( fourcc/) edge edge padding ( fourcc/) hpel_chroma dc_clip ms . trunc / strict integer (/) . : very strict normal unofficial experimental (/ /). : . b_qoffset float () QP P B. err_detect flags () . : crccheck CRC bitstream buffer explode ignore_err . . . careful compliant aggressive has_b_frames integer block_align integer rc_override_count integer maxrate integer () ( ). bufsize . minrate integer () ( ). CBR . bufsize integer () ( ). i_qfactor float () QP P I. i_qoffset float () QP P I. dct integer () DCT. : auto () fastint int mmx altivec faan DCT AAN lumi_mask float () . tcplx_mask float () (temporal complexity masking). scplx_mask float () (spatial complexity masking). p_mask float () (inter masking). dark_mask float () . idct integer (/) IDCT. : auto int simple simplemmx simpleauto IDCT simple arm altivec sh4 simplearm simplearmv5te simplearmv6 simpleneon xvid faani IDCT AAN slice_count integer ec flags () (Error Concealment). : guess_mvs (MV) () deblock deblock favor_inter bits_per_coded_sample integer aspect rational number () (SAR). sar rational number () . aspect. debug flags (/) . : pict rc bitstream mb_type (MB) qp (QP) mv dct_coeff skip startcode pts er mmco ( H.264) bugs buffers thread_ops nomc ( ) cmp integer () (full pel me). : sad () sse satd dct DCT psnr ( ) bit rd - (RD) zero 0 vsad vsse nsse w53 5/3 snow w97 9/7 snow dctmax chroma subcmp integer () (sub pel me). : sad () sse satd dct DCT psnr ( ) bit rd - (RD) zero 0 vsad vsse nsse w53 5/3 snow w97 9/7 snow dctmax chroma mbcmp integer () . : sad () sse satd dct DCT psnr ( ) bit rd - (RD) zero 0 vsad vsse nsse w53 5/3 snow w97 9/7 snow dctmax chroma ildctcmp integer () DCT. : sad () sse satd dct DCT psnr ( ) bit rd - (RD) zero 0 vsad vsse nsse w53 5/3 snow w97 9/7 snow dctmax chroma dia_size integer () (diamond) . : (1024, INT_MAX) (1024-INT_MAX) (768, 1024] (HEX) (512, 768] (UMH) (256, 512] (-1, 2) (INT_MIN, -1) last_pred integer () . precmp integer () . : sad () sse satd dct DCT psnr ( ) bit rd - (RD) zero 0 vsad vsse nsse w53 5/3 snow w97 9/7 snow dctmax chroma pre_dia_size integer () . subq integer () . me_range integer () (1023 DivX). global_quality integer () slice_flags integer mbd integer () ( ). : simple mbcmp () bits rd - (RD) rc_init_occupancy integer () (rc buffer) . flags2 flags (/) : fast . noout . ignorecrop (crop) sps. local_header extradata. chunks . showall . export_mvs ("AV_FRAME_DATA_MOTION_VECTORS" ) . doc/examples/export_mvs.c . skip_manual . ass_ro_flush_noop ReadOrder ASS flush. icc_profiles / ICC / (colorimetry). fixed_frame_size . export_side_data flags (/) : mvs ("AV_FRAME_DATA_MOTION_VECTORS" ) . doc/examples/export_mvs.c . prft ("AV_PKT_DATA_PRFT" ) . venc_params ("AV_FRAME_DATA_VIDEO_ENC_PARAMS" ) . H.264 VP9. film_grain ("AV_FRAME_DATA_FILM_GRAIN_PARAMS" ). AV1 . enhancements LCEVC ( "AV_FRAME_DATA_LCEVC" ). threads integer (/) (threads) . : auto, 0 auto . dc integer () intra_dc_precision. nssew integer () nsse. skip_top integer () . skip_bottom integer () . profile integer () . unknown . . level integer () (level) . . unknown . : unknown lowres integer () 1= 1/2 2=1/4 3=1/8. mblmin integer () (VBR). -1 69 2 . mblmax integer () (VBR). -1 1024 31 . skip_loop_filter integer () skip_idct integer () skip_frame integer () / IDCT / . : none / default noref bidir (B) nokey all bidir_refine integer () B. keyint_min integer () IDR/. refs integer () . trellis integer () - Trellis. mv0_threshold integer () (mv0). compression_level integer () . bits_per_raw_sample integer . channel_layout integer (/) . rc_max_vbv_use float () rc_min_vbv_use float () / VBV. color_primaries integer (decoding/encoding,video) Possible values: bt709 BT.709 bt470m BT.470 M bt470bg BT.470 BG smpte170m SMPTE 170 M smpte240m SMPTE 240 M film Film bt2020 BT.2020 smpte428 smpte428_1 SMPTE ST 428-1 smpte431 SMPTE 431-2 smpte432 SMPTE 432-1 jedec-p22 JEDEC P22 color_trc integer (decoding/encoding,video) Possible values: bt709 BT.709 gamma22 BT.470 M gamma28 BT.470 BG smpte170m SMPTE 170 M smpte240m SMPTE 240 M linear Linear log log100 Log log_sqrt log316 Log square root iec61966_2_4 iec61966-2-4 IEC 61966-2-4 bt1361 bt1361e BT.1361 iec61966_2_1 iec61966-2-1 IEC 61966-2-1 bt2020_10 bt2020_10bit BT.2020 - 10 bit bt2020_12 bt2020_12bit BT.2020 - 12 bit smpte2084 SMPTE ST 2084 smpte428 smpte428_1 SMPTE ST 428-1 arib-std-b67 ARIB STD-B67 colorspace integer (decoding/encoding,video) Possible values: rgb RGB bt709 BT.709 fcc FCC bt470bg BT.470 BG smpte170m SMPTE 170 M smpte240m SMPTE 240 M ycocg YCOCG bt2020nc bt2020_ncl BT.2020 NCL bt2020c bt2020_cl BT.2020 CL smpte2085 SMPTE 2085 chroma-derived-nc Chroma-derived NCL chroma-derived-c Chroma-derived CL ictcp ICtCp color_range integer (/) color_range . : tv mpeg limited MPEG (219*2^(n-8)) pc jpeg full JPEG (2^n-1) chroma_sample_location integer (/) . : left center topleft top bottomleft bottom alpha_mode integer (/) . : premultiplied straight log_level_offset integer (log level). slices integer () . thread_type flags (/) . frame . : slice . . frame . slice+frame . audio_service_type integer () . : ma (Main Audio Service) ef (Effects) vi (Visually Impaired) hi (Hearing Impaired) di (Dialogue) co (Commentary) em (Emergency) vo (Voice Over) ka (Karaoke) request_sample_fmt sample_fmt () . "none" . pkt_timebase rational number sub_charenc encoding () . field_order field_order () / . : progressive (Progressive) tt bb tb bt skip_alpha bool () 1 (). gray flags . 0 . codec_whitelist list () . . dump_separator string () . : ffprobe -dump_separator " " -i ~/videos/matrixbench_mpeg2.mpg max_pixels integer (/) . . apply_cropping bool () (cropping) . . 1 () . : "AV_CODEC_FLAG_UNALIGNED" (CPU) . "AV_CODEC_FLAG_UNALIGNED" . / . (DECODERS) FFmpeg ( ) . FFmpeg (native) . "--enable-lib" . "--list-decoders" . "--disable-decoders" "--enable-decoder=DECODER" / "--disable-decoder=DECODER" . "-decoders" *ff . (VIDEO DECODERS) . av1 AOMedia Video 1 (AV1). (Options) operating_point AV1 ( 0 31). 0 . hevc HEVC ( ITU-T H.265 ISO/IEC 23008-2). MV-HEVC . ( view_ids) . get_format() - . . "ffmpeg" . (Options) view_ids (MV-HEVC) . '-1' VPS . view_ids_available (MV-HEVC) VPS . . get_format() . ( ) ( VPS NALU ). view_pos_available (MV-HEVC) ( ) VPS "AVStereo3DView" . view_ids_available "view_pos_available[i]" "view_ids_available[i]" . view_ids_available . rawvideo (Raw video). rawvideo . (Options) top top_field_first . -1 () 0 (Bottom-field-first) 1 (Top-field-first) libdav1d dav1d AV1. libdav1d libavcodec AOMedia Video 1 (AV1) . libdav1d . "--enable-libdav1d" . (Options) libdav1d . max_frame_delay . 0 ( ). filmgrain (Film Grain) . . . "export_side_data" . oppoint AV1 ( 0 31). . alllayers AV1. false . libdavs2 AVS2-P2/IEEE1857.4. libavcodec AVS2 davs2 . libuavs3d AVS3-P2/IEEE1857.10. libuavs3d libavcodec AVS3 . libuavs3d . "--enable-libuavs3d" . (Options) libuavs3d . frame_threads . 0 ( ). libxevd eXtra-fast Essential Video Decoder (XEVD) MPEG-5 EVC. libxevd . --enable-libxevd . xevd . (Options) libxevd . xevd . libxevd "xevd_app --help" libxevd . threads (threads) (Thread). QSV Decoders Intel QuickSync Video ( VC1 MPEG-2 H.264 HEVC JPEG/MJPEG VP8 VP9 AV1 VVC). (Common Options) qsv . async_depth . gpu_copy GPU . default on off HEVC (HEVC Options) hevc_qsv. load_plugin . none hevc_sw hevc_hw load_plugins (:) (UID) . v210 4:2:2 (10-bit). (Options) custom_stride v210 . 0 ( ). -1 v210 Stride BOXX . (AUDIO DECODERS) . ac3 AC-3. ATSC A/52:2010 ETSI TS 102 366 RealAudio 3 ( dnet) . AC-3 (AC-3 Decoder Options) -drc_scale value . AC-3 . . 1 . : drc_scale == 0 DRC . . 0 < drc_scale <= 1 DRC . DRC . . drc_scale > 1 DRC . drc_scale . . . flac FLAC. FLAC Xiph . FLAC (FLAC Decoder options) -use_buggy_lpc FLAC lavc LPC ( ) . LPC lavc . ffwavesynth . . . libgsm libgsm. libgsm libavcodec GSM . libgsm . "--enable-libgsm" . GSM . libilbc libilbc. libilbc libavcodec (iLBC) . libilbc . "--enable-libilbc" . (Options) libilbc . enhance 1 . 0 (). libmpeghdec libmpeghdec. libmpeghdec FFmpeg MPEG-H 3D . libmpeghdec . "--enable-libmpeghdec --enable-nonfree" . libopencore-amrnb libopencore-amrnb. libopencore-amrnb libavcodec (AMR-NB) . libopencore-amrnb . "--enable-libopencore-amrnb" . FFmpeg AMR-NB AMR-NB . libopencore-amrwb libopencore-amrwb. libopencore-amrwb libavcodec (AMR-WB) . libopencore-amrwb . "--enable-libopencore-amrwb" . FFmpeg AMR-WB AMR-WB . libopus libopus. libopus libavcodec Opus . libopus . "--enable-libopus" . FFmpeg Opus Opus . (SUBTITLES DECODERS) libaribb24 ARIB STD-B24. A C ARIB STD-B24 . libaribb24 (libaribb24 Decoder Options) -aribb24-base-path path libaribb24 . ( ) . . -aribb24-skip-ruby-text boolean (Ruby text) . . libaribcaption ARIB STD-B24 libaribcaption. A C ARIB STD-B24 ABNT NBR 15606-1 ISDB-T . libaribcaption () . "--enable-libaribcaption" . libaribb24 libaribcaption libaribcaption . libaribcaption (libaribcaption Decoder Options) -sub_type subtitle_type . bitmap (). ass ASS. text . libaribb24 ass . ( mpv) ARIB ASS . -caption_encoding encoding_scheme . auto (). jis JIS ARIB STD B24. ISDB . utf8 UTF-8 ARIB STD B24. ISDB-T . latin ABNT NBR 15606-1. SBTVD / ISDB-Tb . -font font_name[,font_name2,...] bitmap ass . ass . . -ass_single_rect boolean ARIB STD-B24 ( ). ( mpv) ASS AVSubtitle ASS ASS . false . AVSubtitle ASS true ASS_SINGLE_RECT=1 . -force_outline_text boolean (Outline) . false . -outline_width number (0.0 - 3.0) () . 1.5 . -ignore_background boolean . false . -ignore_ruby boolean () . false . -replace_drcs boolean DRCS . true . -replace_msz_ascii boolean - MSZ ( ) . true . -replace_msz_japanese boolean MSZ ( ) . true . -replace_msz_glyph boolean MSZ ( ) . FreeType DirectWrite Adobe-Japan1 IBM Plex Sans JP Morisawa BIZ UDGothic Morisawa BIZ UDMincho Yu Gothic Yu Mincho Meiryo. true . -canvas_size image_size (Canvas) . "-subtitle_type" bitmap . libaribcaption : 1. PROFILE_A : 1440 x 1080 SAR (PAR) 4:3 2. PROFILE_C : 320 x 180 SAR (PAR) 1:1 . "-canvas_size" . "-canvas_size" . "-canvas_size" . "-canvas_size" SAR . libaribcaption (libaribcaption decoder usage examples) MPEG-TS ARIB "ffplay": ffplay -sub_type bitmap MPEG.TS MPEG-TS 1920x1080 "ffplay": ffplay -sub_type bitmap -canvas_size 1920x1080 MPEG.TS ARIB : ffmpeg -sub_type bitmap -i src.m2t -filter_complex "[0:v][0:s]overlay" -vcodec h264 dest.mp4 dvbsub (Options) compute_clut -2 CLUT clut . -1 CLUT clut . 0 CLUT . 1 CLUT . dvb_substream dvb -1 () . dvdsub DVD VobSub Matroska . (Options) palette . VobSub Matroska VobSub . DVD IFO VOB . ( 0x) : "0d00ee, ee450d, 101010, eaeaea, 0ce60b, ec14ed, ebff0b, 0d617a, 7b7b7b, d1d1d1, 7b2a0e, 0d950c, 0f007b, cf0dec, cfa80c, 7c127b". ifo_palette IFO (). forced_subs_only (Forced) . . 1 . 0 . libzvbi-teletext Libzvbi libavcodec DVB DVB . libzvbi . "--enable-libzvbi" . (Options) txt_page . . "*" "subtitle" . * . txt_default_region 0 87 ( 32 15 ETS 300 706 ). -1 libzvbi . 1.0 . txt_chop_top . 1 . txt_format . bitmap ASS . text . ass ASS . . txt_left (X) 0 . txt_top (Y) 0 . txt_chop_spaces . . 1 . txt_duration . -1 . txt_transparent . 0 . txt_opacity (0-255) . txt_transparent ( ) . 0 txt_transparent 255 . (BITSTREAM FILTERS) FFmpeg . "--list-bsfs" . "--disable-bsfs" "--enable-bsf=BSF" "--disable-bsf=BSF" . "-bsfs" ff* . ff* -bsf '=' . ffmpeg -i INPUT -c:v copy -bsf:v filter1[=opt1=str1:opt2=str2][,filter2] OUTPUT ( ) . aac_adtstoasc MPEG-2/4 AAC ADTS MPEG-4 (Audio Specific Configuration). MPEG-4 AudioSpecificConfig MPEG-2/4 ADTS ADTS . AAC ADTS AAC MPEG-TS MP4A-LATM FLV MOV/MP4 3GP M4A . MP4A-LATM MOV/MP4 . av1_metadata AV1. td OBU (temporal delimiter) . insert TD TU . remove TD TU . color_primaries transfer_characteristics matrix_coefficients ( 6.4.2 AV1 ). color_range ( 6.4.2 AV1 BT.709 sRGB (RGB) ). tv (Limited range). pc (Full range). chroma_sample_position ( 6.4.2 AV1 ). 4:2:0 . vertical ( MPEG-2 H.264). colocated -. tick_rate (time_scale / num_units_in_display_tick) (sequence header). num_ticks_per_picture . tick_rate . delete_padding OBU (Padding OBUs). chomp (packet). dca_core DCA/DTS DTS-HD. dovi_rpu Dolby Vision HEVC/AV1 . strip Dolby Vision ( + RPU) . compression . none . limited . . . extended . . libavcodec limited . dovi_split HEVC (Dolby Vision Profile 7). HEVC (enhancement-layer) NAL (UNSPEC63) RPU NAL (UNSPEC62) . mode Dolby Vision . bl : UNSPEC63 ( EL) UNSPEC62 ( RPU). HEVC Dolby Vision . . bl_rpu NAL RPU. el : NAL UNSPEC63 NAL . HEVC . UNSPEC62 (RPU) . el_rpu NAL RPU. el NAL RPU UNSPEC62 NAL EL . dump_extra extradata extradata . freq . : k keyframe extradata (key packets). e all extradata . k . ffmpeg H.264 "libx264" ( ) extradata : ffmpeg -i INPUT -map 0 -flags:v +global_header -c:v libx264 -bsf:v dump_extra out.ts dv_error_marker DV . color . sta . 0xFFFE . ok (concealment). err . res . notok . notres . Aa, Ba, Ca, Ab, Bb, Cb, A, B, C, a, b, erri, erru . - 5.5 : eac3_core E-AC-3 . eia608_to_smpte436m "EIA_608" "SMPTE_436M_ANC" (closed captions) CTA-708 CDP VANC. line_number VANC . () . wrapping_type SMPTE 436M vanc_frame . : vanc_frame VANC ( ). vanc_field_1 vanc_field_2 vanc_progressive_frame sample_coding SMPTE 436M 8bit_luma . : 8bit_luma (luma) . 8bit_color_diff . 8bit_luma_and_color_diff . 10bit_luma . 10bit_color_diff . 10bit_luma_and_color_diff . 8bit_luma_parity_error . 8bit_color_diff_parity_error . 8bit_luma_and_color_diff_parity_error . initial_cdp_sequence_cntr "cdp_hdr_sequence_cntr" "cdp_ftr_sequence_cntr" CDP. 0 . cdp_frame_rate "cdp_frame_rate" CDP. CDP . 30000/1001 . extract_extradata extradata (in-band extradata). ( MPEG-2 (VPS/)SPS/PPS H.264/HEVC) <<>> ( ) <<>> ( ) . FFmpeg <> . extradata . remove . filter_units . pass_types . '|' '-' . remove_types pass_types . pass_types remove_types NAL (nal_unit_type) H.264 HEVC H.266 ( 7-1 H.264 HEVC 5 H.266 ) (marker) JPEG ( 0xFF) ( 0x000001) MPEG-2. VP8 VP9 . (Extradata) . NAL VCL H.264: ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=pass_types=1-5' OUTPUT AUD SEI (filler) H.265: ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=35|38-40' OUTPUT MPEG-2 (Closed Captions): ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=178' OUTPUT SEI H264 : ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=6' OUTPUT SEI HEVC HDR : ffmpeg -i INPUT -c:v copy -bsf:v 'filter_units=remove_types=39|40' OUTPUT hapqa_extract Rgb Alpha HAPQA HAPQ HAPAlphaOnly. texture . color alpha HAPQA HAPQ: ffmpeg -i hapqa_inputfile.mov -c copy -bsf:v hapqa_extract=texture=color -tag:v HapY -metadata:s:v:0 encoder="HAPQ" hapq_file.mov HAPQA HAPAlphaOnly: ffmpeg -i hapqa_inputfile.mov -c copy -bsf:v hapqa_extract=texture=alpha -tag:v HapA -metadata:s:v:0 encoder="HAPAlpha Only" hapalphaonly_file.mov h264_metadata H.264. aud NAL AUD . pass insert remove pass . sample_aspect_ratio VUI. E-1 H.264 . overscan_appropriate_flag overscan ( E.2.1 H.264 ). video_format video_full_range_flag ( E.2.1 E-2 H.264 ). colour_primaries transfer_characteristics matrix_coefficients ( E.2.1 E-3 E-4 E-5 H.264 ). chroma_sample_loc_type ( E.2.1 E-1 H.264 ). tick_rate (time_scale / num_units_in_tick) VUI. ( ). fixed_frame_rate_flag - ( E.2.1 E-6 H.264 ). zero_new_constraint_set_flags constraint_set4_flag constraint_set5_flag SPS. H.264 . . crop_left crop_right crop_top crop_bottom SPS. . . ( 7.4.2.1.1 H.264 ). sei_user_data SEI (unregistered user data). UUID+string UUID . 086f3693-b7b3-4f2c-9653-21492feee5b8+hello <> UUID . delete_filler NAL SEI. display_orientation SEI (Display orientation). D.1.27 D.2.27 H.264 . pass insert remove extract pass . (insert) "rotate" "flip" . insert remove . (extract) (side data) . rotate SEI ( ). -360 +360 . NaN . flip (flip) SEI . horizontal vertical . level (level) SPS. A.3 A-1 A-5 H.264 . ( 4.2) level_idc ( 42) auto . h264_mp4toannexb H.264 (length prefixed) (start code prefixed) B ITU-T H.264. MPEG-2 ( "mpegts") . MP4 H.264 mpegts ffmpeg : ffmpeg -i INPUT.mp4 -codec copy -bsf:v h264_mp4toannexb OUTPUT.ts MPEG-TS ( "mpegts") H.264 ( "h264") . h264_redundant_pps H264 - BDMV PPS . PPS extradata . PPS QP . PPS . (seeking) PPS . (BSF) PPS PPS . hevc_metadata HEVC. aud NAL AUD . insert remove sample_aspect_ratio VUI . video_format video_full_range_flag ( E.3.1 E.2 H.265 ). colour_primaries transfer_characteristics matrix_coefficients ( E.3.1 E.3 E.4 E.5 H.265 ). chroma_sample_loc_type ( E.3.1 E.1 H.265 ). tick_rate VPS VUI (time_scale / num_units_in_tick). num_ticks_poc_diff_one . . num_ticks_poc_diff_one poc_proportional_to_timing_flag VPS VUI num_ticks_poc_diff_one_minus1 ( 7.4.3.1 E.3.1 H.265 ). tick_rate . crop_left crop_right crop_top crop_bottom (conformance window) SPS. . . ( 7.4.3.2.1 H.265). width height . level (level) VPS SPS. A.4 A.6 A.7 H.265 . ( 5.1) general_level_idc ( 153 5.1) auto . hevc_mp4toannexb HEVC/H.265 ( B ITU-T H.265 ). MPEG-2 ( "mpegts") . MP4 HEVC mpegts ffmpeg : ffmpeg -i INPUT.mp4 -codec copy -bsf:v hevc_mp4toannexb OUTPUT.ts MPEG-TS ( "mpegts") HEVC/H.265 ( "h265" "hevc") . imxdump MOV Final Cut Pro . mpeg2video Final Cut Pro 7 -tag:v . NTSC IMX MOV: ffmpeg -i input.mxf -c copy -bsf:v imxdump -tag:v mx3n output.mov mjpeg2jpeg MJPEG/AVI1 JPEG/JFIF. MJPEG JPEG . : ffmpeg -i ../some_mjpeg.avi -c:v copy frames_%d.jpg JPEG DHT . : (Avery Lee) rec.video.desktop : < MJPEG AVI (fourcc) MJPG JPEG -- ** -- . JPEG YCbCr 4:2:2 . . . . MJPEG JPEG DHT . OpenDML .>> MJPEG ( AVI1 DHT ) JPEG . ffmpeg -i mjpeg-movie.avi -c:v copy -bsf:v mjpeg2jpeg frame_%d.jpg exiftran -i -9 frame*.jpg ffmpeg -i frame_%d.jpg -c:v copy rotated.avi mjpegadump MJPEG A Quicktime. mov2textsub MOV . text2movsub . mpeg2_metadata MPEG-2. display_aspect_ratio . : 4/3 16/9 221/100 ( 6.3.3 6-3 H.262 ). frame_rate . - ( 6.3.3 6-4 H.262 ). video_format ( 6.3.6 6-6 H.262 ). colour_primaries transfer_characteristics matrix_coefficients ( 6.3.6 6-7 6-8 6-9 H.262 ). mpeg4_unpack_bframes B DivX. B DivX MPEG-4 Video for Windows . AV CPU ( 2,0,2,0 ) mp4 mpeg-ps/ts MPEG-4 MPEG-4 . AVI MPEG-4 B DivX ffmpeg : ffmpeg -i INPUT.avi -codec copy -bsf:v mpeg4_unpack_bframes OUTPUT.avi noise (drop). (fuzzing) / . : amount . . 0 . amount drop amount -1 . . drop . . . 0 . . dropamount . 0 . drop "dropamount=4" "drop=-4" . drop . "amount" "drop" : n . tb (timebase) . pts (presentation timestamp) . dts (decoding timestamp) . nopts AV_NOPTS_VALUE. startpts PTS AV_NOPTS_VALUE . startdts DTS AV_NOPTS_VALUE . duration d . pos -1 . size . key (keyframe) . state . (Examples) : ffmpeg -i INPUT -c copy -bsf noise=1 output.mkv : ffmpeg -i INPUT -c copy -bsf:v noise=drop='gt(pts*tb\,30)*not(key)' output.mkv : ffmpeg -i INPUT -c copy -bsf:a noise=amount=-1:drop='between(mod(pts*tb\,10)\,9\,10)' output.mkv null . pcm_rechunk PCM . asetnsamples . nb_out_samples, n . . 1024 . pad, p (pad) ( frame_rate ) . 1 . frame_rate, r . . nb_out_samples . frame_rate 1602-1601-1602-1601-1602 48kHz NTSC : ffmpeg -f lavfi -i sine=r=48000:d=1 -c pcm_s16le -bsf pcm_rechunk=r=30000/1001 -f framecrc - pgs_frame_merge PGS << >> (end of display set) . PGS ( "matroska") . prores_metadata prores. color_primaries (color primaries). : auto (). unknown bt709 bt470bg BT601 625 smpte170m BT601 525 bt2020 smpte431 DCI P3 smpte432 P3 D65 transfer_characteristics (color transfer). : auto (). unknown bt709 BT 601, BT 709, BT 2020 smpte2084 SMPTE ST 2084 arib-std-b67 ARIB STD-B67 matrix_coefficients (matrix coefficient). : auto (). unknown bt709 smpte170m BT 601 bt2020nc Rec709 : ffmpeg -i INPUT -c copy -bsf:v prores_metadata=color_primaries=bt709:color_trc=bt709:colorspace=bt709 output.mov Hybrid Log-Gamma : ffmpeg -i INPUT -c copy -bsf:v prores_metadata=color_primaries=bt2020:color_trc=arib-std-b67:colorspace=bt2020nc output.mov remove_extra extradata . : freq extradata . k extradata . keyframe extradata . e, all extradata . setts PTS DTS . : ts pts dts PTS DTS . duration (duration). time_base . prescale . 0 . API (eval API) : N . 0. TS "ts" "dts" "pts". POS . DTS . PTS . DURATION . STARTDTS DTS . STARTPTS PTS . PREV_INDTS DTS . PREV_INPTS PTS . PREV_INDURATION . PREV_OUTDTS DTS . PREV_OUTPTS PTS . PREV_OUTDURATION . NEXT_DTS DTS . NEXT_PTS PTS . NEXT_DURATION . TB . prescale . TB_OUT . SR . NOPTS AV_NOPTS_VALUE. PTS DTS ( B ): ffmpeg -i INPUT -c:a copy -bsf:a setts=pts=DTS out.mkv showinfo . . smpte436m_to_eia608 "SMPTE_436M_ANC" "EIA_608" CTA-708 CDP VANC . text2movsub MOV ( "mov_text" ) . mov2textsub . trace_headers (syntax elements) ( ). . AV1 H.264 H.265 (M)JPEG MPEG-2 VP9 . truehd_core TrueHD ATMOS. vp9_metadata VP9. color_space . RGB PC RGB 0 2 . unknown bt601 bt709 smpte170 smpte240 bt2020 rgb color_range . . tv pc vp9_superframe (alt-ref) VP9. / VP9 alt-ref . vp9_superframe_split VP9 . vp9_raw_reorder VP9 show-existing-frame . (FORMAT OPTIONS) libavformat . (private options) . -option value FFmpeg "AVFormatContext" API libavutil/opt.h . : avioflags flags (/) : direct . probesize integer () . . . 5000000 . max_probe_packets integer () . 2500 . packetsize integer () . fflags flags . . : discardcorrupt . fastseek . genpts PTS DTS. igndts DTS PTS . PTS DTS NOPTS . "nofillin" . ignidx (index). nobuffer . nofillin . noparse AVParsers "+nofillin" . sortdts DTS. AVI . : autobsf . . bitexact . . . flush_packets . shortest . max_interleave_delta EOF . seek2any integer () . 0 . analyzeduration integer () . . 5,000,000 = . cryptokey hexadecimal string () . indexmem integer () ( ). rtbufsize integer () (real-time). fdebug flags (/) . : ts . id3v2 ID3v2 ID3v2. max_delay integer (/) . fpsprobesize integer () fps. audio_preload integer () . chunk_duration integer () (). chunk_size integer () . err_detect, f_err_detect flags () . "f_err_detect" ffmpeg . : crccheck CRC . bitstream . buffer . explode . careful . compliant . aggressive . max_interleave_delta integer () (interleaving). 10000000 ( ) . libavformat . (sparse) ( ) . libavformat . libavformat . use_wallclock_as_timestamps integer () . 0 . avoid_negative_ts integer () : make_non_negative . . make_zero 0 . auto () . disabled . . . skip_initial_bytes integer () . 0 . correct_ts_overflow integer () . 1 . flush_packets integer () / . -1 () 1 0 I/O . output_ts_offset offset () . offset ffmpeg-utils(1) . . offset . 0 ( ). format_whitelist list () <<,>> . . dump_separator string () . : ffprobe -dump_separator " " -i ~/videos/matrixbench_mpeg2.mpg max_streams integer () . . skip_estimate_duration_from_pts bool () PTS . MPEG-PS MPEG-TS . duration_probesize integer () PTS ( : MPEG-PS MPEG-TS). concat . MPEG-TS CBR PTS : . . . . . strict, f_strict integer (/) . "f_strict" ffmpeg . : very . strict . normal unofficial . experimental (/ / ). : . (Format stream specifiers) . avformat_match_stream_specifier() libavformat/avformat.h ffmpeg(1) . (DEMUXERS) FFmpeg . FFmpeg . "--list-demuxers" . "--disable-demuxers" "--enable-demuxer=DEMUXER" "--disable-demuxer=DEMUXER" . "-demuxers" ff* . "-formats" . . aa Audible. Audible Format 2, 3, and 4 (.aa) . aac (ADTS) AAC. ADTS AAC ID3v1/2 APE . apng (APNG). APNG . PNG ( ) fcTL extradata . fcTL fcTL IEND . -ignore_loop bool . . -max_fps int . 0 . -default_fps int (0 ). 15 . asf (Advanced Systems Format). ASF MMS . -no_resync_search bool . concat (Virtual concatenation). . . . ( ). : ( ) . "duration" . (Syntax) extended-ASCII . '#' . : "file path" (escape) . . "ffconcat version 1.0" . FFmpeg ( BOM) . "duration dur" . . (seek) . "inpoint timestamp" . . . (intra frame) . ( ) ( "duration") . . "outpoint timestamp" . . (exclusive) . intra frame . . . ( "duration") . "file_packet_metadata key=value" . . . "file_packet_meta" . "file_packet_meta key value" . . . "option key value" . . "stream" . . . . "exact_stream_id id" (id) . . MPEG-PS (VOB) . "stream_meta key value" . . "stream_codec value" . "stream_extradata hex_string" (extradata) . "chapter id start end" (chapter). id . (Options) : safe . ( ) . . 1 . auto_convert . 1 . h264_mp4toannexb H.264 MP4 . . segment_time_metadata lavf.concat.start_time lavf.concat.duration . concat . 0 . (Examples) o : # my first filename file /mnt/share/file-1.wav # my second filename including whitespace file '/mnt/share/file 2.wav' # my third filename including whitespace plus single quote file '/mnt/share/file 3'\''.wav' o : ffconcat version 1.0 file file-1.wav duration 20.0 file subdir/file-2.wav dash HTTP (DASH). AVStream . AVStream . "id" "bandwidth" "" "id" "variant_bitrate" . (Options) : cenc_decryption_key ISO (CENC/AES-128 CTR; ISO/IEC 23001-7). cenc_decryption_keys => ISO (CENC/AES-128 CTR; ISO/IEC 23001-7). dvdvideo DVD-Video libdvdnav libdvdread. DVD PGC . ( ) . ( DVD) ISO . "-f dvdvideo" . . DVD . libdvdnav libdvdread . FFmpeg GPL "--enable-libdvdnav" "--enable-libdvdread" . << >> PGC/PG . DVD . . . . DVD . . . FFmpeg . (Background) DVD-Video . MPEG-PS VOB . <<>> (titles) <> . PGC <> ( ). PGC IFO . PGC . DVD (VM) . ( ) PGC . DVD . libdvdnav MPEG-PS ( VOB) . DVD ( ) . NAV . : (Options) : title int . pgc pg . . 0 () ( ) . chapter_start int PTT ( ) . . 1 . chapter_end int PTT . . 0 . angle int VOB . . 1 . region int . . DVD . . 0 "world" () . menu bool . (menu_lu menu_vts pgc pg). false . menu_lu int . DVD . 1 . menu_vts int VTS VMG ( ) . 1 VTS . pgc int PGC pg. title. . . 0 title . pg int PG pgc. title. . 1 PG PGC . preindex bool (PTT) NAV . . DVD . pgc pg . 0 false . trim bool ( ) . PGC DVD . . 1 true . (Examples) o DVD : ffmpeg -f dvdvideo -title 3 -i ... o DVD : ffmpeg -f dvdvideo -chapter_start 3 -chapter_end 6 -title 1 -i ... o DVD : ffmpeg -f dvdvideo -chapter_start 5 -chapter_end 5 -title 1 -i ... o VTS 1 PGC 1 PG 1: ffmpeg -f dvdvideo -menu 1 -menu_lu 1 -menu_vts 1 -pgc 1 -pg 1 -i ... ea Electronic Arts. Electronic Arts . (Options) merge_alpha bool VP6 ( ) . imf (Interoperable Master Format). IMF Composition . ffmpeg [-assetmaps ,,...] -i ... "-assetmaps" ASSETMAP.xml CPL . flv, live_flv, kux (Adobe Flash Video). FLV RTMP . flv live_flv . KUX flv Youku . ffmpeg -f flv -i myfile.flv ... ffmpeg -f live_flv -i rtmp:///anything/key .... -flv_metadata bool onMetaData. -flv_ignore_prevtag bool . -flv_full_metadata bool onMetadata. gif GIF . : min_delay . 0 6000 . 2 . max_gif_delay . 0 65535 . 65535 ( ) . default_delay . 0 6000 . 10 . ignore_loop GIF ( ) . ignore_loop . GIF . 1 . overlay GIF : ffmpeg -i input.mp4 -ignore_loop 0 -i input.gif -filter_complex overlay=shortest=1 out.mkv shortest overlay input.mp4 GIF . hls HLS. HTTP (Apple HTTP Live Streaming). AVStream . id . AVStream ( 'a' 'v' ffplay) . "variant_bitrate" . : live_start_index ( ). prefer_x_start #EXT-X-START live_start_index. allowed_extensions ',' hls . extension_picky . mpegts . . . max_reload . 1000 . m3u8_hold_counters m3u8 . 1000 . http_persistent HTTP. HTTP . . http_multiple HTTP HTTP. HTTP/1.1 . http_seekable HTTP HTTP. 0 = 1 = -1 = . seg_format_options key=value ":" . seg_max_retry . 0 . image2 . . pattern_type . . . : framerate . 25 . loop . 0 . pattern_type . pattern_type : none . . sequence . "%d" "%0Nd" . "%d0Nd" (0-padded) N . '%' "%%" . "%d" "%0Nd" start_number start_number+start_number_range-1 . "img-%03d.bmp" img-001.bmp img-002.bmp ... img-010.bmp "i%%m%%g-%d.jpg" i%m%g-1.jpg i%m%g-2.jpg ... i%m%g-10.jpg . "%d" "%0Nd" img.jpeg : ffmpeg -i img.jpeg img.png glob (glob wildcard). glob() . libavformat globbing . sequence . pixel_format . . start_number . 0 . start_number_range start_number. 5 . ts_from_file . : . 0 . . video_size . . export_path_metadata ( drawtext ). 0 . : lavf.image2dec.source_path . lavf.image2dec.source_basename (basename) . (Examples) o ffmpeg img-001.jpeg img-002.jpeg ... : ffmpeg -framerate 10 -i 'img-%03d.jpeg' out.mkv o : ffmpeg -framerate 10 -start_number 100 -i 'img-%03d.jpeg' out.mkv o glob "*.png" ".png" : ffmpeg -framerate 10 -pattern_type glob -i "*.png" out.mkv libgme Game Music Emu . . : track_index (track) . . . . tracks . sample_rate . 1000 999999 . 44100 . max_size (bytes) . . 50 MiB . libmodplug ModPlug : 44.1 kHz . "pal8" . : noise_reduction . 1 () 0 () . 0 . reverb_depth (Reverb). 0-100. 0 . reverb_delay 40-250 ms. 0 . bass_amount XBass megabass. 0 () 100 (). 0 . bass_range ( ). 10-100 Hz . 0 . surround_depth Dolby Pro-Logic. 0 () 100 (). 0 . surround_delay 5-40 ms. 0 . max_size . . 0 100 MiB . 0 ( ). 5 MiB . video_stream_expr eval API . "x" "y" "w" "h" "t" "speed" "tempo" "order" "pattern" "row". video_stream . 1 () 0 () . 0 . video_stream_w 'chars' . 20-512 . 30 . video_stream_h 'chars' . 20-512 . 30 . video_stream_ptxt . "speed" "tempo" "order" "pattern" "row" "ts" ( ). 1 () 0 () . 1 . libopenmpt libopenmpt . () subsong . : subsong . 'all' 'auto' . 0 . 'auto' . libopenmpt . layout . . STEREO . sample_rate libopenmpt. 1000 INT_MAX . 48000 . mcc MacCaption MCC 1.0 2.0 MCC . MCC VANC (EIA-608 CEA-708) pan-scan . MCC EIA-608 CEA-708 "EIA_608" VANC . -eia608_extract 0 VANC "SMPTE_436M_ANC" . o MCC Scenarist (SCC): ffmpeg -i CC.mcc -c:s copy CC.scc SCC EIA-608 CEA-708 . o MCC MXF: ffmpeg -i video_and_audio.mxf -eia608_extract 0 -i CC.mcc -c copy -map 0 -map 1 out.mxf VANC "SMPTE_436M_ANC" MXF . mov/mp4/3gp QuickTime ISO/IEC ( ISO/IEC 14496-12 MPEG-4 Part 12 ISO/IEC 15444-12 JPEG 2000 Part 12). : mov, mp4, m4a, 3gp, 3g2, mj2, psp, m4b, ism, ismv, isma, f4v : enable_drefs . . use_absolute_path . . . seek_streams_individually (seeking) . . true . ignore_editlist (edit list). . false . advanced_editlist . "ignore_editlist" false . "ignore_editlist" false . true . ignore_chapters (chapters) . / 'HiLight' GoPro . (seekable) . false . use_mfra_for (fragmented) (mfra) . : auto mfra PTS DTS () dts mfra DTS pts mfra PTS 0 mfra use_tfdt "baseMediaDecodeTime" "tfdt" . "tfdt" DTS . "earliest_presentation_time" "sidx" . "mfra" "use_mfra_for" pts dts . export_all udta . . false . export_xmp XMP_ uuid "xmp". "export_all" XMP_ "XMP_". false . activation_bytes Audible AAX +AAX. Audible AAX . audible_fixed_key Audible AAX/AAX+. . decryption_key ISO ( CENC/AES-128 CTR ISO/IEC 23001-7). decryption_keys => ISO ( CENC/AES-128 CTR ISO/IEC 23001-7). max_stts_delta stts trak dts . 1 . int32 dts . (time scale) . 0 UINT_MAX . "UINT_MAX - 48000*10" dts 48 kHz . "uint32" . interleaved_read (Interleave) . MOV/MP4 . / (I/O) . Audible AAX Audible AAX M4B . ffmpeg -activation_bytes 1CEB00DA -i test.aax -vn -c:a copy output.mp4 mpegts (Transport Stream) MPEG-2. : resync_size . 65536 . skip_unknown_pmt PMT PAT . 0 . fix_teletext_pts PTS DTS PCR . 1 0 PTS DTS . ts_packetsize . . scan_all_pmts PMT. -1 1 (-1 1 0 ). -1 . merge_pmt_versions PMT PID . 0 . max_packet_size ( ) . . 184 INT_MAX/2 . 204800 . mpjpeg MJPEG MIME . MJPEG multipart/x-mixed-replace . strict_mime_boundary MIME MIME MJPEG . 1 . rawvideo (Raw video). . . : framerate . 25 . pixel_format . "yuv420p" . stride (padding) . (multiplane) stride . video_size . . input.raw ffplay "rgb24" "320x240" : ffplay -f rawvideo -pixel_format rgb24 -video_size 320x240 -framerate 10 input.raw rawvideo ffplay "yuv420p" "1080x1920" Y UV: ffplay -f rawvideo -pixel_format yuv420p -video_size 1080x1920 -stride 1088,544,544 input.raw rcwt RCWT ( - Raw Captions With Time) ccextractor (CC) 608/708. . . o CC ASS : ffmpeg -i CC.rcwt.bin CC.ass data_field CC . o RCWT Scenarist (SCC): ffmpeg -i CC.rcwt.bin -c:s copy CC.scc SCC CC RCWT ( EIA-708) . sbg SBaGen. SBaGen (binaural beats) . SBG : -SE a: 300-2.5/3 440+4.5/0 b: 300-2.5/0 440+4.5/3 off: - NOW == a +0:07:00 == b +0:14:00 == a +0:21:00 == b +0:30:00 off SBG . ( ) . NOW . . tedcaptions JSON . TED . tools/bookmarklets.html FFmpeg . : start_time TED . 15000 (15 ) . . : : ffmpeg -i http://www.ted.com/talks/subtitles/id/1/lang/en talk1-en.srt vapoursynth (Wrapper) Vapoursynth. Vapoursynth . ff* "-f vapoursynth" "-i yourscript.vpy" . : max_script_size . . 1 MiB . w64 Sony Wave64. : max_size wav . wav RIFF Wave. : ignore_length bool "data" . "data" . . max_size . 0 . webp WebP . : -min_delay int . 0 60000 . 10 . -max_webp_delay int . 0 16777215 . 16777215 ( ) . -default_delay int . 0 60000 . 100 . -ignore_loop bool WebP () ( ) . ignore_loop true . false WebP . true . usebgcolor bool WebP ANIM WebP . usebgcolor true . false . (METADATA) FFmpeg INI UTF-8 / metadata . : 1. . 2. ;FFMETADATA ( 1). 3. key=value . 4. (global) . 5. / . 6. ( STREAM CHAPTER) ([ ]) . 7. (timebase) / . TIMEBASE=num/den num den . / . START=num END=num num . 8. ; # . 9. (= ; # \ ) \ . 10. ( foo = bar) ( foo bar ). ffmetadata : ;FFMETADATA1 title=bike\\shed ;this is a comment artist=FFmpeg troll team [CHAPTER] TIMEBASE=1/1000 START=0 #chapter ends at 0:01:00 END=60000 title=chapter \#1 [STREAM] title=multi\ line ffmetadata ffmetadata ffmetadata . ffmetadata ffmpeg : ffmpeg -i INPUT -f ffmetadata FFMETADATAFILE FFMETADATAFILE : ffmpeg -i INPUT -i FFMETADATAFILE -map_metadata 1 -codec copy OUTPUT (PROTOCOL OPTIONS) libavformat . (private options) . -option value FFmpeg "AVFormatContext" API libavutil/opt.h . : protocol_whitelist list (input) (",") . "ALL" . "-" . ( ) . (PROTOCOLS) FFmpeg . FFmpeg . configure "--list-protocols" . configure "--disable-protocols" "--enable-protocol=PROTOCOL" "--disable-protocol=PROTOCOL" . "-protocols" *ff . : rw_timeout / () . . amqp (AMQP) 0-9-1 (broker) / (publish- subscribe) . AMQP FFmpeg --enable-librabbitmq . AMQP . AMQP RabbitMQ . FFmpeg : ffmpeg -re -i input -f mpegts amqp://[[user]:[password]@]hostname[:port][/vhost] hostname port ( 5672) . / . "guest" . vhost . "/" . : ffplay amqp://[[user]:[password]@]hostname[:port][/vhost] RabbitMQ (Exchange) / . exchange routing_key . : exchange . RabbitMQ : "amq.direct" routing_key "amq.fanout" ( routing_key fanout ) "amq.topic" "amq.direct" ( RabbitMQ ). routing_key (routing key) . "amqp" . "amq.direct" "amq.topic" . pkt_size / . 131072 . 4096 ( int) . FFmpeg . . (truncate) . connection_timeout . rw_timeout 5 rw_timeout . delivery_mode mode . : persistent "persistent" (2) . . . non-persistent "non-persistent" (1) . . async . (thread) / (I/O) . async: async:http://host/resource async:cache:http://host/resource bluray (BluRay). : angle (angle) chapter (1...N) playlist (BDMV/PLAYLIST/?????.mpls) : /mnt/bluray: bluray:/mnt/bluray /mnt/bluray : -playlist 4 -angle 2 -chapter 2 bluray:/mnt/bluray cache () . . (seeking) . : read_ahead_limit . -1 INT_MAX . -1 . 65536 . URL : cache: concat (Concatenation). . URL : concat:||...| URL1 URL2 ... URLN . split1.mpeg split2.mpeg split3.mpeg ffplay : ffplay concat:split1.mpeg\|split2.mpeg\|split3.mpeg "|" (shells) . concatf (line break). . URL : concatf: URL . . "Quoting and escaping" ffmpeg-utils(1) . split1.mpeg split2.mpeg split3.mpeg split.txt ffplay : ffplay concatf:split.txt split.txt : split1.mpeg split2.mpeg split3.mpeg crypto AES. : key AES . iv (IV) AES . URL : crypto: crypto+ data URI. . GIF ffmpeg: ffmpeg -i "data:image/gif;base64,R0lGODdhCAAIAMIEAAAAAAAA//8AAP//AP///////////////ywAAAAACAAIAAADF0gEDLojDgdGiJdJqUX02iB4E8Q9jUMkADs=" smiley.png fd (File descriptor). : fd: -fd fd stdout stdin . pipe fd (seek) . fd URL . : blocksize I/O . "INT_MAX" . . fd . file . . URL : file: filename . URL URL . URL URL ( ). input.mpeg ffmpeg : ffmpeg -i file:input.mpeg output.mpeg : truncate 1. 0 . 1 . blocksize I/O . "INT_MAX" . . follow 1 . rw_timeout ( API) . . seekable . 0 -1 ( ). ( ). pkt_size I/O . . . (32 ) . . . ftp (FTP). FTP. : ftp://[user[:password]@]server[:port]/path/to/remote/resource.mpeg : timeout I/O . -1 . ftp-user FTP . URL FTP . ftp-password FTP . URL FTP ftp-anonymous-password . ftp-anonymous-password (anonymous). . ftp-write-seekable . 1 0 . 0 . : ( ). FTP . *ff . gopher (Gopher). gophers (Gophers). TLS. http (HTTP). : seekable . 1 0 -1 . -1 . chunked_post 1 Transfer-Encoding post 1 . http_proxy HTTP http://example.com:1234 headers HTTP . . content_type POST (listen). user_agent User-Agent. libavformat ("Lavf/"). referer Referer. 'Referer: URL' HTTP. multiple_requests (Persistent connections) 1 0 . request_size . (range requests) (throttle) . ( 0 ). multiple_requests short_seek_size . FFmpeg HTTP . initial_request_size . "request_size" . MXF MOV . ( ) . ( 0 ). multiple_requests short_seek_size . post_data HTTP post. mime_type MIME. http_version HTTP. "1.0" "1.1". cookies . HTTP Set-Cookie . . icy 1 ICY (SHOUTcast) . icy_metadata_headers icy_metadata_packet . 1 . icy_metadata_headers ICY HTTP ICY . icy_metadata_packet ICY icy 1 . . metadata Icecast . API C . auth_type HTTP. Digest nonce Basic . none HTTP. . basic HTTP. Base64 . Base64 (Base64 ). . HTTPS/TLS . . send_expect_100 Expect: 100-continue POST. 1 0 -1 . -1 . location . API C . offset . end_offset . method HTTP . HTTP () . HTTP Bad Request . HTTP . . reconnect (EOF). reconnect_at_eof EOF / . reconnect_on_network_error TCP/TLS . reconnect_on_http_error HTTP . ( '503') '4xx' / '5xx' . reconnect_streamed / . reconnect_delay_max . reconnect_max_retries . . reconnect_delay_total_max . respect_retry_after Retry-After . . . listen 1 HTTP . HTTP POST . 2 HTTP . ffmpeg.c . # Server side (sending): ffmpeg -i somefile.ogg -c copy -listen 1 -f ogg http://: # Client side (receiving): ffmpeg -i http://: -c copy somefile.ogg # Client can also be done with wget: wget http://: -O somefile.ogg # Server side (receiving): ffmpeg -listen 1 -i http://: -c copy somefile.ogg # Client side (sending): ffmpeg -i somefile.ogg -chunked_post 0 -c copy -f ogg http://: # Client can also be done with wget: wget --post-file=somefile.ogg http://: resource HTTP . reply_code HTTP HTTP . short_seek_size (readahead) HTTP . . HTTP (HTTP Cookies) HTTP . cookies . . HTTP HTTP Cookie . . : ffplay -cookies "nlqptid=nltid=tsn; path=/; domain=somedomain.com;" http://somedomain.com/somestream.m3u8 Icecast Icecast ( Icecast) : ice_genre (genre) . ice_name . ice_description . ice_url URL . ice_public . 0 (). user_agent User-Agent. "Lavf/" . password (mountpoint) Icecast. content_type . audio/mpeg . legacy_icecast Icecast 2.4.0 HTTP PUT SOURCE . tls TLS (HTTPS) Icecast. icecast://[[:]@]:/ ipfs (IPFS). IPFS (gateways) . http(s) . IPFS ( ipfs:// ipns://) . ( ) IPFS . : gateway . $IPFS_GATEWAY $IPFS_PATH "$HOME/.ipfs/" . . IPFS: ffplay ipfs:// IPNS ( IPNS IPFS ): ffplay ipns:// mmst MMS ( ) TCP. mmsh MMS ( ) HTTP. : mmsh://[:][/][/] md5 MD5. MD5 stdout ( ) . . : # Write the MD5 hash of the encoded AVI file to the file output.avi.md5. ffmpeg -i input.flv -f avi -y md5:output.avi.md5 # Write the MD5 hash of the encoded AVI file to stdout. ffmpeg -i input.flv -f avi -y md5: ( MOV) MD5 . pipe (UNIX pipe). . : pipe:[] fd number ( 0 stdin 1 stdout 2 stderr). number stdout stdin . stdin ffmpeg: cat test.wav | ffmpeg -i pipe:0 # ...this is the same as... cat test.wav | ffmpeg -i pipe: stdout 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 : blocksize I/O . "INT_MAX" . . fd . ( MOV) pipe . prompeg FEC Pro-MPEG Code of Practice #3 Release 2. Pro-MPEG CoP#3 FEC (FEC) MPEG-2 RTP . "rtp_mpegts" "rtp" . : -f rtp_mpegts -fec prompeg=