f'ffmpeg2 -v 0 -i {video_path} -ss {start_time} -to {end_time+bias} -r {frame} -qscale 0 {save_path}/image_%05d.jpg'
-i:输入文件
-v:调试信息级别(quiet、panic、fatal、error、warning、info、verbose、debug)
-ss:视频开始时间
-to:视频结束时间
-r:帧率/s
-qscale:抽取帧图像质量 [0-31],其中31质量最差
-f:强制修改格式
-vf:可根据具体形式对图像进行旋转等操作
中文参数解释
-L license
-h 帮助
-fromats 显示可用的格式,编解码的,协议的...
-f fmt 强迫采用格式fmt
-I filename 输入文件
-y 覆盖输出文件
-t duration 设置纪录时间 hh:mm:ss[.xxx]格式的记录时间也支持
-ss position 搜索到指定的时间 [-]hh:mm:ss[.xxx]的格式也支持
-title string 设置标题
-author string 设置作者
-copyright string 设置版权
-comment string 设置评论
-target type 设置目标文件类型(vcd,svcd,dvd) 所有的格式选项(比特率,编解码以及缓冲区大小)自动设置,只需要输入如下的就可以了:ffmpeg -i myfile.avi -target vcd /tmp/vcd.mpg
-hq 激活高质量设置
-itsoffset offset 设置以秒为基准的时间偏移,该选项影响所有后面的输入文件。该偏移被加到输入文件的时戳,定义一个正偏移意味着相应的流被延迟了 offset秒。 [-]hh:mm:ss[.xxx]的格式也支持
b) 视频选项
-b bitrate 设置比特率,缺省200kb/s
-r fps 设置帧频 缺省25
-s size 设置帧大小 格式为WXH 缺省160X128.下面的简写也可以直接使用:
Sqcif 128X96 qcif 176X144 cif 252X288 4cif 704X576
-aspect aspect 设置横纵比 4:3 16:9 或 1.3333 1.7777
-croptop size 设置顶部切除带大小 像素单位
-cropbottom size –cropleft size –cropright size
-padtop size 设置顶部补齐的大小 像素单位
-padbottom size –padleft size –padright size –padcolor color 设置补齐条颜色(hex,6个16进制的数,红:绿:兰排列,比如 000000代表黑色)
-vn 不做视频记录
-bt tolerance 设置视频码率容忍度kbit/s
-maxrate bitrate设置最大视频码率容忍度
-minrate bitreate 设置最小视频码率容忍度
-bufsize size 设置码率控制缓冲区大小
-vcodec codec 强制使用codec编解码方式。如果用copy表示原始编解码数据必须被拷贝。
-sameq 使用同样视频质量作为源(VBR)
-pass n 选择处理遍数(1或者2)。两遍编码非常有用。第一遍生成统计信息,第二遍生成精确的请求的码率
-passlogfile file 选择两遍的纪录文件名为file
c)高级视频选项
-g gop_size 设置图像组大小
-intra 仅适用帧内编码
-qscale q 使用固定的视频量化标度(VBR)
-qmin q 最小视频量化标度(VBR)
-qmax q 最大视频量化标度(VBR)
-qdiff q 量化标度间最大偏差 (VBR)
-qblur blur 视频量化标度柔化(VBR)
-qcomp compression 视频量化标度压缩(VBR)
-rc_init_cplx complexity 一遍编码的初始复杂度
-b_qfactor factor 在p和b帧间的qp因子
-i_qfactor factor 在p和i帧间的qp因子
-b_qoffset offset 在p和b帧间的qp偏差
-i_qoffset offset 在p和i帧间的qp偏差
-rc_eq equation 设置码率控制方程 默认tex^qComp
-rc_override override 特定间隔下的速率控制重载
-me method 设置运动估计的方法 可用方法有 zero phods log x1 epzs(缺省) full
-dct_algo algo 设置dct的算法 可用的有 0 FF_DCT_AUTO 缺省的DCT 1 FF_DCT_FASTINT 2 FF_DCT_INT 3 FF_DCT_MMX 4 FF_DCT_MLIB 5 FF_DCT_ALTIVEC
-idct_algo algo 设置idct算法。可用的有 0 FF_IDCT_AUTO 缺省的IDCT 1 FF_IDCT_INT 2 FF_IDCT_SIMPLE 3 FF_IDCT_SIMPLEMMX 4 FF_IDCT_LIBMPEG2MMX 5 FF_IDCT_PS2 6 FF_IDCT_MLIB 7 FF_IDCT_ARM 8 FF_IDCT_ALTIVEC 9 FF_IDCT_SH4 10 FF_IDCT_SIMPLEARM
-er n 设置错误残留为n 1 FF_ER_CAREFULL 缺省 2 FF_ER_COMPLIANT 3 FF_ER_AGGRESSIVE 4 FF_ER_VERY_AGGRESSIVE
-ec bit_mask 设置错误掩蔽为bit_mask,该值为如下值的位掩码 1 FF_EC_GUESS_MVS (default=enabled) 2 FF_EC_DEBLOCK (default=enabled)
-bf frames 使用frames B 帧,支持mpeg1,mpeg2,mpeg4
-mbd mode 宏块决策 0 FF_MB_DECISION_SIMPLE 使用mb_cmp 1 FF_MB_DECISION_BITS 2 FF_MB_DECISION_RD
-4mv 使用4个运动矢量 仅用于mpeg4
-part 使用数据划分 仅用于mpeg4
-bug param 绕过没有被自动监测到编码器的问题
-strict strictness 跟标准的严格性
-aic 使能高级帧内编码 h263+
-umv 使能无限运动矢量 h263+
-deinterlace 不采用交织方法
-interlace 强迫交织法编码仅对mpeg2和mpeg4有效。当你的输入是交织的并且你想要保持交织以最小图像损失的时候采用该选项。可选的方法是不交织,但是损失更大
-psnr 计算压缩帧的psnr
-vstats 输出视频编码统计到vstats_hhmmss.log
-vhook module 插入视频处理模块 module 包括了模块名和参数,用空格分开
D)音频选项
-ab bitrate 设置音频码率
-ar freq 设置音频采样率
-ac channels 设置通道 缺省为1
-an 不使能音频纪录
-acodec codec 使用codec编解码
E)音频/视频捕获选项
-vd device 设置视频捕获设备。比如/dev/video0
-vc channel 设置视频捕获通道 DV1394专用
-tvstd standard 设置电视标准 NTSC PAL(SECAM)
-dv1394 设置DV1394捕获
-av device 设置音频设备 比如/dev/dsp
F)高级选项
-map file:stream 设置输入流映射
-debug 打印特定调试信息
-benchmark 为基准测试加入时间
-hex 倾倒每一个输入包
-bitexact 仅使用位精确算法 用于编解码测试
-ps size 设置包大小,以bits为单位
-re 以本地帧频读数据,主要用于模拟捕获设备
-loop 循环输入流(只工作于图像流,用于ffserver测试)
英文参数解释(全)
-L show license
-h topic show help
-? topic show help
-help topic show help
--help topic show help
-version show version
-buildconf show build configuration
-formats show available formats
-muxers show available muxers
-demuxers show available demuxers
-devices show available devices
-codecs show available codecs
-decoders show available decoders
-encoders show available encoders
-bsfs show available bit stream filters
-protocols show available protocols
-filters show available filters
-pix_fmts show available pixel formats
-layouts show standard channel layouts
-sample_fmts show available audio sample formats
-colors show available color names
-sources device list sources of the input device
-sinks device list sinks of the output device
-hwaccels show available HW acceleration methods
Global options (affect whole program instead of just one file:
-loglevel loglevel set logging level
-v loglevel set logging level
-report generate a report
-max_alloc bytes set maximum size of a single allocated block
-y overwrite output files
-n never overwrite output files
-ignore_unknown Ignore unknown stream types
-filter_threads number of non-complex filter threads
-filter_complex_threads number of threads for -filter_complex
-stats print progress report during encoding
-max_error_rate ratio of errors (0.0: no errors, 1.0: 100% error maximum error rate
-bits_per_raw_sample number set the number of bits per raw sample
-vol volume change audio volume (256=normal)
Advanced global options:
-cpuflags flags force specific cpu flags
-hide_banner hide_banner do not show program banner
-copy_unknown Copy unknown stream types
-benchmark add timings for benchmarking
-benchmark_all add timings for each task
-progress url write program-readable progress information
-stdin enable or disable interaction on standard input
-timelimit limit set max runtime in seconds
-dump dump each input packet
-hex when dumping packets, also dump the payload
-vsync video sync method
-frame_drop_threshold frame drop threshold
-async audio sync method
-adrift_threshold threshold audio drift threshold
-copyts copy timestamps
-start_at_zero shift input timestamps to start at 0 when using copyts
-copytb mode copy input stream time base when stream copying
-dts_delta_threshold threshold timestamp discontinuity delta threshold
-dts_error_threshold threshold timestamp error delta threshold
-xerror error exit on error
-abort_on flags abort on the specified condition flags
-filter_complex graph_description create a complex filtergraph
-lavfi graph_description create a complex filtergraph
-filter_complex_script filename read complex filtergraph description from a file
-debug_ts print timestamp debugging info
-intra deprecated use -g 1
-sameq Removed
-same_quant Removed
-deinterlace this option is deprecated, use the yadif filter instead
-psnr calculate PSNR of compressed frames
-vstats dump video coding statistics to file
-vstats_file file dump video coding statistics to file
-vstats_version Version of the vstats format to use.
-qphist show QP histogram
-hwaccel_lax_profile_check attempt to decode anyway if HW accelerated decoder's supported profiles do not exactly match the stream
-vc channel deprecated, use -channel
-tvstd standard deprecated, use -standard
-isync this option is deprecated and does nothing
-override_ffserver override the options from ffserver
-sdp_file file specify a file in which to print sdp information
-vaapi_device device set VAAPI hardware device (DRM path or X11 display name)
Per-file main options:
-f fmt force format
-c codec codec name
-codec codec codec name
-pre preset preset name
-map_metadata outfile[,metadata]:infile[,metadata] set metadata information of outfile from infile
-t duration record or transcode "duration" seconds of audio/video
-to time_stop record or transcode stop time
-fs limit_size set the limit file size in bytes
-ss time_off set the start time offset
-sseof time_off set the start time offset relative to EOF
-seek_timestamp enable/disable seeking by timestamp with -ss
-timestamp time set the recording timestamp ('now' to set the current time)
-metadata string=string add metadata
-program title=string:st=number... add program with specified streams
-target type specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-")
-apad audio pad
-frames number set the number of frames to output
-filter filter_graph set stream filtergraph
-filter_script filename read stream filtergraph description from a file
-reinit_filter reinit filtergraph on input parameter changes
-discard discard
-disposition disposition
Advanced per-file options:
-map [-]input_file_id[:stream_specifier][,sync_file_id[:stream_s set input stream mapping
-map_channel file.stream.channel[:syncfile.syncstream] map an audio channel from one stream to another
-map_chapters input_file_index set chapters mapping
-accurate_seek enable/disable accurate seeking with -ss
-itsoffset time_off set the input ts offset
-itsscale scale set the input ts scale
-dframes number set the number of data frames to output
-re read input at native frame rate
-shortest finish encoding within shortest input
-copyinkf copy initial non-keyframes
-copypriorss copy or discard frames before start time
-tag fourcc/tag force codec tag/fourcc
-q q use fixed quality scale (VBR)
-qscale q use fixed quality scale (VBR)
-profile profile set profile
-attach filename add an attachment to the output file
-dump_attachment filename extract an attachment into a file
-stream_loop loop count set number of times input stream shall be looped
-thread_queue_size set the maximum number of queued packets from the demuxer
-autorotate automatically insert correct rotate filters
-muxdelay seconds set the maximum demux-decode delay
-muxpreload seconds set the initial demux-decode delay
-time_base ratio set the desired time base hint for output stream (1:24, 1:48000 or 0.04166, 2.0833e-5)
-bsf bitstream_filters A comma-separated list of bitstream filters
-fpre filename set options from indicated preset file
-max_muxing_queue_size packets maximum number of packets that can be buffered while waiting for all streams to initialize
-dcodec codec force data codec ('copy' to copy stream)
Video options:
-vframes number set the number of video frames to output
-r rate set frame rate (Hz value, fraction or abbreviation)
-s size set frame size (WxH or abbreviation)
-aspect aspect set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
-bits_per_raw_sample number set the number of bits per raw sample
-vn disable video
-vcodec codec force video codec ('copy' to copy stream)
-timecode hh:mm:ss[:;.]ff set initial TimeCode value.
-pass n select the pass number (1 to 3)
-vf filter_graph set video filters
-ab bitrate audio bitrate (please use -b:a)
-b bitrate video bitrate (please use -b:v)
-dn disable data
Advanced Video options:
-pix_fmt format set pixel format
-intra deprecated use -g 1
-rc_override override rate control override for specific intervals
-sameq Removed
-same_quant Removed
-passlogfile prefix select two pass log file name prefix
-deinterlace this option is deprecated, use the yadif filter instead
-psnr calculate PSNR of compressed frames
-vstats dump video coding statistics to file
-vstats_file file dump video coding statistics to file
-vstats_version Version of the vstats format to use.
-intra_matrix matrix specify intra matrix coeffs
-inter_matrix matrix specify inter matrix coeffs
-chroma_intra_matrix matrix specify intra matrix coeffs
-top top=1/bottom=0/auto=-1 field first
-vtag fourcc/tag force video tag/fourcc
-qphist show QP histogram
-force_fps force the selected framerate, disable the best supported framerate selection
-streamid streamIndex:value set the value of an outfile streamid
-force_key_frames timestamps force key frames at specified timestamps
-hwaccel hwaccel name use HW accelerated decoding
-hwaccel_device devicename select a device for HW acceleration
-hwaccel_output_format format select output format used with HW accelerated decoding
-vc channel deprecated, use -channel
-tvstd standard deprecated, use -standard
-vbsf video bitstream_filters deprecated
-vpre preset set the video options to the indicated preset
Audio options:
-aframes number set the number of audio frames to output
-aq quality set audio quality (codec-specific)
-ar rate set audio sampling rate (in Hz)
-ac channels set number of audio channels
-an disable audio
-acodec codec force audio codec ('copy' to copy stream)
-vol volume change audio volume (256=normal)
-af filter_graph set audio filters
Advanced Audio options:
-atag fourcc/tag force audio tag/fourcc
-sample_fmt format set sample format
-channel_layout layout set channel layout
-guess_layout_max set the maximum number of channels to try to guess the channel layout
-absf audio bitstream_filters deprecated
-apre preset set the audio options to the indicated preset
Subtitle options:
-s size set frame size (WxH or abbreviation)
-sn disable subtitle
-scodec codec force subtitle codec ('copy' to copy stream)
-stag fourcc/tag force subtitle tag/fourcc
-fix_sub_duration fix subtitles duration
-canvas_size size set canvas size (WxH or abbreviation)
-spre preset set the subtitle options to the indicated preset
AVCodecContext AVOptions:
-b <int64> E..VA... set bitrate (in bits/s) (from 0 to I64_MAX) (default 200000)
-ab <int64> E...A... set bitrate (in bits/s) (from 0 to INT_MAX) (default 128000)
-bt <int> E..V.... Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate tolerance specifies how far ratecontrol is willing to deviate from the target average bitrate value. This is not related to minimum/maximum bitrate. Lowering tolerance too much has an adverse effect on quality. (from 1 to INT_MAX) (default 4e+06)
-flags <flags> ED.VAS.. (default 0)
unaligned .D.V.... allow decoders to produce unaligned output
mv4 E..V.... use four motion vectors per macroblock (MPEG-4)
qpel E..V.... use 1/4-pel motion compensation
loop E..V.... use loop filter
gmc E..V.... use gmc
mv0 E..V.... always try a mb with mv=<0,0>
gray ED.V.... only decode/encode grayscale
psnr E..V.... error[?] variables will be set during encoding
truncated .D.V.... Input bitstream might be randomly truncated
naq E..V.... normalize adaptive quantization
ildct E..V.... use interlaced DCT
low_delay ED.V.... force low delay
global_header E..VA... place global headers in extradata instead of every keyframe
bitexact ED.VAS.. use only bitexact functions (except (I)DCT)
aic E..V.... H.263 advanced intra coding / MPEG-4 AC prediction
ilme E..V.... interlaced motion estimation
cgop E..V.... closed GOP
output_corrupt .D.V.... Output even potentially corrupted frames
-me_method <int> E..V.... set motion estimation method (from INT_MIN to INT_MAX) (default epzs)
zero E..V.... zero motion estimation (fastest)
full E..V.... full motion estimation (slowest)
epzs E..V.... EPZS motion estimation
esa E..V.... esa motion estimation (alias for full)
tesa E..V.... tesa motion estimation
dia E..V.... diamond motion estimation (alias for EPZS)
log E..V.... log motion estimation
phods E..V.... phods motion estimation
x1 E..V.... X1 motion estimation
hex E..V.... hex motion estimation
umh E..V.... umh motion estimation
iter E..V.... iter motion estimation
-g <int> E..V.... set the group of picture (GOP) size (from INT_MIN to INT_MAX) (default 12)
-ar <int> ED..A... set audio sampling rate (in Hz) (from 0 to INT_MAX) (default 0)
-ac <int> ED..A... set number of audio channels (from 0 to INT_MAX) (default 0)
-cutoff <int> E...A... set cutoff bandwidth (from INT_MIN to INT_MAX) (default 0)
-frame_size <int> E...A... (from 0 to INT_MAX) (default 0)
-qcomp <float> E..V.... video quantizer scale compression (VBR). Constant of ratecontrol equation. Recommended range for default rc_eq: 0.0-1.0 (from -FLT_MAX to FLT_MAX) (default 0.5)
-qblur <float> E..V.... video quantizer scale blur (VBR) (from -1 to FLT_MAX) (default 0.5)
-qmin <int> E..V.... minimum video quantizer scale (VBR) (from -1 to 69) (default 2)
-qmax <int> E..V.... maximum video quantizer scale (VBR) (from -1 to 1024) (default 31)
-qdiff <int> E..V.... maximum difference between the quantizer scales (VBR) (from INT_MIN to INT_MAX) (default 3)
-bf <int> E..V.... set maximum number of B-frames between non-B-frames (from -1 to INT_MAX) (default 0)
-b_qfactor <float> E..V.... QP factor between P- and B-frames (from -FLT_MAX to FLT_MAX) (default 1.25)
-rc_strategy <int> E..V.... ratecontrol method (from INT_MIN to INT_MAX) (default 0)
-b_strategy <int> E..V.... strategy to choose between I/P/B-frames (from INT_MIN to INT_MAX) (default 0)
-ps <int> E..V.... RTP payload size in bytes (from INT_MIN to INT_MAX) (default 0)
-bug <flags> .D.V.... work around not autodetected encoder bugs (default autodetect)
autodetect .D.V....
old_msmpeg4 .D.V.... some old lavc-generated MSMPEG4v3 files (no autodetection)
xvid_ilace .D.V.... Xvid interlacing bug (autodetected if FOURCC == XVIX)
ump4 .D.V.... (autodetected if FOURCC == UMP4)
no_padding .D.V.... padding bug (autodetected)
amv .D.V....
ac_vlc .D.V.... illegal VLC bug (autodetected per FOURCC)
qpel_chroma .D.V....
std_qpel .D.V.... old standard qpel (autodetected per FOURCC/version)
qpel_chroma2 .D.V....
direct_blocksize .D.V.... direct-qpel-blocksize bug (autodetected per FOURCC/version)
edge .D.V.... edge padding bug (autodetected per FOURCC/version)
hpel_chroma .D.V....
dc_clip .D.V....
ms .D.V.... work around various bugs in Microsoft's broken decoders
trunc .D.V.... truncated frames
iedge .D.V....
-strict <int> ED.VA... how strictly to follow the standards (from INT_MIN to INT_MAX) (default normal)
very ED.VA... strictly conform to a older more strict version of the spec or reference software
strict ED.VA... strictly conform to all the things in the spec no matter what the consequences
normal ED.VA...
unofficial ED.VA... allow unofficial extensions
experimental ED.VA... allow non-standardized experimental things
-b_qoffset <float> E..V.... QP offset between P- and B-frames (from -FLT_MAX to FLT_MAX) (default 1.25)
-err_detect <flags> .D.VA... set error detection flags (default 0)
crccheck .D.VA... verify embedded CRCs
bitstream .D.VA... detect bitstream specification deviations
buffer .D.VA... detect improper bitstream length
explode .D.VA... abort decoding on minor error detection
ignore_err .D.VA... ignore errors
careful .D.VA... consider things that violate the spec, are fast to check and have not been seen in the wild as errors
compliant .D.VA... consider all spec non compliancies as errors
aggressive .D.VA... consider things that a sane encoder should not do as an error
-mpeg_quant <int> E..V.... use MPEG quantizers instead of H.263 (from INT_MIN to INT_MAX) (default 0)
-qsquish <float> E..V.... deprecated, use encoder private options instead (from 0 to 99) (default 0)
-rc_qmod_amp <float> E..V.... deprecated, use encoder private options instead (from -FLT_MAX to FLT_MAX) (default 0)
-rc_qmod_freq <int> E..V.... deprecated, use encoder private options instead (from INT_MIN to INT_MAX) (default 0)
-rc_eq <string> E..V.... deprecated, use encoder private options instead
-maxrate <int64> E..VA... maximum bitrate (in bits/s). Used for VBV together with bufsize. (from 0 to INT_MAX) (default 0)
-minrate <int64> E..VA... minimum bitrate (in bits/s). Most useful in setting up a CBR encode. It is of little use otherwise. (from INT_MIN to INT_MAX) (default 0)
-bufsize <int> E..VA... set ratecontrol buffer size (in bits) (from INT_MIN to INT_MAX) (default 0)
-rc_buf_aggressivity <float> E..V.... deprecated, use encoder private options instead (from -FLT_MAX to FLT_MAX) (default 1)
-i_qfactor <float> E..V.... QP factor between P- and I-frames (from -FLT_MAX to FLT_MAX) (default -0.8)
-i_qoffset <float> E..V.... QP offset between P- and I-frames (from -FLT_MAX to FLT_MAX) (default 0)
-rc_init_cplx <float> E..V.... deprecated, use encoder private options instead (from -FLT_MAX to FLT_MAX) (default 0)
-dct <int> E..V.... DCT algorithm (from 0 to INT_MAX) (default auto)
auto E..V.... autoselect a good one
fastint E..V.... fast integer
int E..V.... accurate integer
mmx E..V....
altivec E..V....
faan E..V.... floating point AAN DCT
-lumi_mask <float> E..V.... compresses bright areas stronger than medium ones (from -FLT_MAX to FLT_MAX) (default 0)
-tcplx_mask <float> E..V.... temporal complexity masking (from -FLT_MAX to FLT_MAX) (default 0)
-scplx_mask <float> E..V.... spatial complexity masking (from -FLT_MAX to FLT_MAX) (default 0)
-p_mask <float> E..V.... inter masking (from -FLT_MAX to FLT_MAX) (default 0)
-dark_mask <float> E..V.... compresses dark areas stronger than medium ones (from -FLT_MAX to FLT_MAX) (default 0)
-idct <int> ED.V.... select IDCT implementation (from 0 to INT_MAX) (default auto)
auto ED.V....
int ED.V....
simple ED.V....
simplemmx ED.V....
arm ED.V....
altivec ED.V....
sh4 ED.V....
simplearm ED.V....
simplearmv5te ED.V....
simplearmv6 ED.V....
simpleneon ED.V....
simplealpha ED.V....
ipp ED.V....
xvid ED.V....
xvidmmx ED.V.... deprecated, for compatibility only
faani ED.V.... floating point AAN IDCT
simpleauto ED.V....
-ec <flags> .D.V.... set error concealment strategy (default guess_mvs+deblock)
guess_mvs .D.V.... iterative motion vector (MV) search (slow)
deblock .D.V.... use strong deblock filter for damaged MBs
favor_inter .D.V.... favor predicting from the previous frame
-pred <int> E..V.... prediction method (from INT_MIN to INT_MAX) (default left)
left E..V....
plane E..V....
median E..V....
-aspect <rational> E..V.... sample aspect ratio (from 0 to 10) (default 0/1)
-sar <rational> E..V.... sample aspect ratio (from 0 to 10) (default 0/1)
-debug <flags> ED.VAS.. print specific debug info (default 0)
pict .D.V.... picture info
rc E..V.... rate control
bitstream .D.V....
mb_type .D.V.... macroblock (MB) type
qp .D.V.... per-block quantization parameter (QP)
mv .D.V.... motion vector
dct_coeff .D.V....
green_metadata .D.V....
skip .D.V....
startcode .D.V....
pts .D.V....
er .D.V.... error recognition
mmco .D.V.... memory management control operations (H.264)
bugs .D.V....
vis_qp .D.V.... visualize quantization parameter (QP), lower QP are tinted greener
vis_mb_type .D.V.... visualize block types
buffers .D.V.... picture buffer allocations
thread_ops .D.VA... threading operations
nomc .D.VA... skip motion compensation
-vismv <flags> .D.V.... visualize motion vectors (MVs) (deprecated) (default 0)
pf .D.V.... forward predicted MVs of P-frames
bf .D.V.... forward predicted MVs of B-frames
bb .D.V.... backward predicted MVs of B-frames
-cmp <int> E..V.... full-pel ME compare function (from INT_MIN to INT_MAX) (default sad)
sad E..V.... sum of absolute differences, fast
sse E..V.... sum of squared errors
satd E..V.... sum of absolute Hadamard transformed differences
dct E..V.... sum of absolute DCT transformed differences
psnr E..V.... sum of squared quantization errors (avoid, low quality)
bit E..V.... number of bits needed for the block
rd E..V.... rate distortion optimal, slow
zero E..V.... 0
vsad E..V.... sum of absolute vertical differences
vsse E..V.... sum of squared vertical differences
nsse E..V.... noise preserving sum of squared differences
w53 E..V.... 5/3 wavelet, only used in snow
w97 E..V.... 9/7 wavelet, only used in snow
dctmax E..V....
chroma E..V....
msad E..V.... sum of absolute differences, median predicted
-subcmp <int> E..V.... sub-pel ME compare function (from INT_MIN to INT_MAX) (default sad)
sad E..V.... sum of absolute differences, fast
sse E..V.... sum of squared errors
satd E..V.... sum of absolute Hadamard transformed differences
dct E..V.... sum of absolute DCT transformed differences
psnr E..V.... sum of squared quantization errors (avoid, low quality)
bit E..V.... number of bits needed for the block
rd E..V.... rate distortion optimal, slow
zero E..V.... 0
vsad E..V.... sum of absolute vertical differences
vsse E..V.... sum of squared vertical differences
nsse E..V.... noise preserving sum of squared differences
w53 E..V.... 5/3 wavelet, only used in snow
w97 E..V.... 9/7 wavelet, only used in snow
dctmax E..V....
chroma E..V....
msad E..V.... sum of absolute differences, median predicted
-mbcmp <int> E..V.... macroblock compare function (from INT_MIN to INT_MAX) (default sad)
sad E..V.... sum of absolute differences, fast
sse E..V.... sum of squared errors
satd E..V.... sum of absolute Hadamard transformed differences
dct E..V.... sum of absolute DCT transformed differences
psnr E..V.... sum of squared quantization errors (avoid, low quality)
bit E..V.... number of bits needed for the block
rd E..V.... rate distortion optimal, slow
zero E..V.... 0
vsad E..V.... sum of absolute vertical differences
vsse E..V.... sum of squared vertical differences
nsse E..V.... noise preserving sum of squared differences
w53 E..V.... 5/3 wavelet, only used in snow
w97 E..V.... 9/7 wavelet, only used in snow
dctmax E..V....
chroma E..V....
msad E..V.... sum of absolute differences, median predicted
-ildctcmp <int> E..V.... interlaced DCT compare function (from INT_MIN to INT_MAX) (default vsad)
sad E..V.... sum of absolute differences, fast
sse E..V.... sum of squared errors
satd E..V.... sum of absolute Hadamard transformed differences
dct E..V.... sum of absolute DCT transformed differences
psnr E..V.... sum of squared quantization errors (avoid, low quality)
bit E..V.... number of bits needed for the block
rd E..V.... rate distortion optimal, slow
zero E..V.... 0
vsad E..V.... sum of absolute vertical differences
vsse E..V.... sum of squared vertical differences
nsse E..V.... noise preserving sum of squared differences
w53 E..V.... 5/3 wavelet, only used in snow
w97 E..V.... 9/7 wavelet, only used in snow
dctmax E..V....
chroma E..V....
msad E..V.... sum of absolute differences, median predicted
-dia_size <int> E..V.... diamond type & size for motion estimation (from INT_MIN to INT_MAX) (default 0)
-last_pred <int> E..V.... amount of motion predictors from the previous frame (from INT_MIN to INT_MAX) (default 0)
-preme <int> E..V.... pre motion estimation (from INT_MIN to INT_MAX) (default 0)
-precmp <int> E..V.... pre motion estimation compare function (from INT_MIN to INT_MAX) (default sad)
sad E..V.... sum of absolute differences, fast
sse E..V.... sum of squared errors
satd E..V.... sum of absolute Hadamard transformed differences
dct E..V.... sum of absolute DCT transformed differences
psnr E..V.... sum of squared quantization errors (avoid, low quality)
bit E..V.... number of bits needed for the block
rd E..V.... rate distortion optimal, slow
zero E..V.... 0
vsad E..V.... sum of absolute vertical differences
vsse E..V.... sum of squared vertical differences
nsse E..V.... noise preserving sum of squared differences
w53 E..V.... 5/3 wavelet, only used in snow
w97 E..V.... 9/7 wavelet, only used in snow
dctmax E..V....
chroma E..V....
msad E..V.... sum of absolute differences, median predicted
-pre_dia_size <int> E..V.... diamond type & size for motion estimation pre-pass (from INT_MIN to INT_MAX) (default 0)
-subq <int> E..V.... sub-pel motion estimation quality (from INT_MIN to INT_MAX) (default 8)
-me_range <int> E..V.... limit motion vectors range (1023 for DivX player) (from INT_MIN to INT_MAX) (default 0)
-ibias <int> E..V.... intra quant bias (from INT_MIN to INT_MAX) (default 999999)
-pbias <int> E..V.... inter quant bias (from INT_MIN to INT_MAX) (default 999999)
-global_quality <int> E..VA... (from INT_MIN to INT_MAX) (default 0)
-coder <int> E..V.... (from INT_MIN to INT_MAX) (default vlc)
vlc E..V.... variable length coder / Huffman coder
ac E..V.... arithmetic coder
raw E..V.... raw (no encoding)
rle E..V.... run-length coder
deflate E..V.... deflate-based coder
-context <int> E..V.... context model (from INT_MIN to INT_MAX) (default 0)
-mbd <int> E..V.... macroblock decision algorithm (high quality mode) (from 0 to 2) (default simple)
simple E..V.... use mbcmp
bits E..V.... use fewest bits
rd E..V.... use best rate distortion
-sc_threshold <int> E..V.... scene change threshold (from INT_MIN to INT_MAX) (default 0)
-lmin <int> E..V.... deprecated, use encoder private options instead (from 0 to INT_MAX) (default 0)
-lmax <int> E..V.... deprecated, use encoder private options instead (from 0 to INT_MAX) (default 0)
-nr <int> E..V.... noise reduction (from INT_MIN to INT_MAX) (default 0)
-rc_init_occupancy <int> E..V.... number of bits which should be loaded into the rc buffer before decoding starts (from INT_MIN to INT_MAX) (default 0)
-flags2 <flags> ED.VA... (default 0)
fast E..V.... allow non-spec-compliant speedup tricks
noout E..V.... skip bitstream encoding
ignorecrop .D.V.... ignore cropping information from sps
local_header E..V.... place global headers at every keyframe instead of in extradata
chunks .D.V.... Frame data might be split into multiple chunks
showall .D.V.... Show all frames before the first keyframe
export_mvs .D.V.... export motion vectors through frame side data
skip_manual .D.V.... do not skip samples and export skip information as frame side data
ass_ro_flush_noop .D...S.. do not reset ASS ReadOrder field on flush
-error <int> E..V.... (from INT_MIN to INT_MAX) (default 0)
-threads <int> ED.VA... set the number of threads (from 0 to INT_MAX) (default 1)
auto ED.V.... autodetect a suitable number of threads to use
-me_threshold <int> E..V.... motion estimation threshold (from INT_MIN to INT_MAX) (default 0)
-mb_threshold <int> E..V.... macroblock threshold (from INT_MIN to INT_MAX) (default 0)
-dc <int> E..V.... intra_dc_precision (from -8 to 16) (default 0)
-nssew <int> E..V.... nsse weight (from INT_MIN to INT_MAX) (default 8)
-skip_top <int> .D.V.... number of macroblock rows at the top which are skipped (from INT_MIN to INT_MAX) (default 0)
-skip_bottom <int> .D.V.... number of macroblock rows at the bottom which are skipped (from INT_MIN to INT_MAX) (default 0)
-profile <int> E..VA... (from INT_MIN to INT_MAX) (default unknown)
unknown E..VA...
aac_main E...A...
aac_low E...A...
aac_ssr E...A...
aac_ltp E...A...
aac_he E...A...
aac_he_v2 E...A...
aac_ld E...A...
aac_eld E...A...
mpeg2_aac_low E...A...
mpeg2_aac_he E...A...
dts E...A...
dts_es E...A...
dts_96_24 E...A...
dts_hd_hra E...A...
dts_hd_ma E...A...
mpeg4_sp E..V....
mpeg4_core E..V....
mpeg4_main E..V....
mpeg4_asp E..V....
main10 E..V....
-level <int> E..VA... (from INT_MIN to INT_MAX) (default unknown)
unknown E..VA...
-lowres <int> .D.VA... decode at 1= 1/2, 2=1/4, 3=1/8 resolutions (from 0 to INT_MAX) (default 0)
-skip_threshold <int> E..V.... frame skip threshold (from INT_MIN to INT_MAX) (default 0)
-skip_factor <int> E..V.... frame skip factor (from INT_MIN to INT_MAX) (default 0)
-skip_exp <int> E..V.... frame skip exponent (from INT_MIN to INT_MAX) (default 0)
-skipcmp <int> E..V.... frame skip compare function (from INT_MIN to INT_MAX) (default dctmax)
sad E..V.... sum of absolute differences, fast
sse E..V.... sum of squared errors
satd E..V.... sum of absolute Hadamard transformed differences
dct E..V.... sum of absolute DCT transformed differences
psnr E..V.... sum of squared quantization errors (avoid, low quality)
bit E..V.... number of bits needed for the block
rd E..V.... rate distortion optimal, slow
zero E..V.... 0
vsad E..V.... sum of absolute vertical differences
vsse E..V.... sum of squared vertical differences
nsse E..V.... noise preserving sum of squared differences
w53 E..V.... 5/3 wavelet, only used in snow
w97 E..V.... 9/7 wavelet, only used in snow
dctmax E..V....
chroma E..V....
msad E..V.... sum of absolute differences, median predicted
-border_mask <float> E..V.... deprecated, use encoder private options instead (from -FLT_MAX to FLT_MAX) (default 0)
-mblmin <int> E..V.... minimum macroblock Lagrange factor (VBR) (from 1 to 32767) (default 236)
-mblmax <int> E..V.... maximum macroblock Lagrange factor (VBR) (from 1 to 32767) (default 3658)
-mepc <int> E..V.... motion estimation bitrate penalty compensation (1.0 = 256) (from INT_MIN to INT_MAX) (default 256)
-skip_loop_filter <int> .D.V.... skip loop filtering process for the selected frames (from INT_MIN to INT_MAX) (default default)
none .D.V.... discard no frame
default .D.V.... discard useless frames
noref .D.V.... discard all non-reference frames
bidir .D.V.... discard all bidirectional frames
nokey .D.V.... discard all frames except keyframes
nointra .D.V.... discard all frames except I frames
all .D.V.... discard all frames
-skip_idct <int> .D.V.... skip IDCT/dequantization for the selected frames (from INT_MIN to INT_MAX) (default default)
none .D.V.... discard no frame
default .D.V.... discard useless frames
noref .D.V.... discard all non-reference frames
bidir .D.V.... discard all bidirectional frames
nokey .D.V.... discard all frames except keyframes
nointra .D.V.... discard all frames except I frames
all .D.V.... discard all frames
-skip_frame <int> .D.V.... skip decoding for the selected frames (from INT_MIN to INT_MAX) (default default)
none .D.V.... discard no frame
default .D.V.... discard useless frames
noref .D.V.... discard all non-reference frames
bidir .D.V.... discard all bidirectional frames
nokey .D.V.... discard all frames except keyframes
nointra .D.V.... discard all frames except I frames
all .D.V.... discard all frames
-bidir_refine <int> E..V.... refine the two motion vectors used in bidirectional macroblocks (from 0 to 4) (default 1)
-brd_scale <int> E..V.... downscale frames for dynamic B-frame decision (from 0 to 10) (default 0)
-keyint_min <int> E..V.... minimum interval between IDR-frames (from INT_MIN to INT_MAX) (default 25)
-refs <int> E..V.... reference frames to consider for motion compensation (from INT_MIN to INT_MAX) (default 1)
-chromaoffset <int> E..V.... chroma QP offset from luma (from INT_MIN to INT_MAX) (default 0)
-trellis <int> E..VA... rate-distortion optimal quantization (from INT_MIN to INT_MAX) (default 0)
-sc_factor <int> E..V.... multiplied by qscale for each frame and added to scene_change_score (from 0 to INT_MAX) (default 6)
-mv0_threshold <int> E..V.... (from 0 to INT_MAX) (default 256)
-b_sensitivity <int> E..V.... adjust sensitivity of b_frame_strategy 1 (from 1 to INT_MAX) (default 40)
-compression_level <int> E..VA... (from INT_MIN to INT_MAX) (default -1)
-min_prediction_order <int> E...A... (from INT_MIN to INT_MAX) (default -1)
-max_prediction_order <int> E...A... (from INT_MIN to INT_MAX) (default -1)
-timecode_frame_start <int64> E..V.... GOP timecode frame start number, in non-drop-frame format (from -1 to I64_MAX) (default -1)
-channel_layout <uint64> ED..A... (from 0 to 1.84467e+19) (default 0)
-request_channel_layout <uint64> .D..A... (from 0 to 1.84467e+19) (default 0)
-rc_max_vbv_use <float> E..V.... (from 0 to FLT_MAX) (default 0)
-rc_min_vbv_use <float> E..V.... (from 0 to FLT_MAX) (default 3)
-ticks_per_frame <int> ED.VA... (from 1 to INT_MAX) (default 1)
-color_primaries <int> ED.V.... color primaries (from 1 to 22) (default unknown)
bt709 ED.V.... BT.709
unknown ED.V.... Unspecified
bt470m ED.V.... BT.470 M
bt470bg ED.V.... BT.470 BG
smpte170m ED.V.... SMPTE 170 M
smpte240m ED.V.... SMPTE 240 M
film ED.V.... Film
bt2020 ED.V.... BT.2020
smpte428 ED.V.... SMPTE 428-1
smpte428_1 ED.V.... SMPTE 428-1
smpte431 ED.V.... SMPTE 431-2
smpte432 ED.V.... SMPTE 422-1
jedec-p22 ED.V.... JEDEC P22
unspecified ED.V.... Unspecified
-color_trc <int> ED.V.... color transfer characteristics (from 1 to 18) (default unknown)
bt709 ED.V.... BT.709
unknown ED.V.... Unspecified
gamma22 ED.V.... BT.470 M
gamma28 ED.V.... BT.470 BG
smpte170m ED.V.... SMPTE 170 M
smpte240m ED.V.... SMPTE 240 M
linear ED.V.... Linear
log100 ED.V.... Log
log316 ED.V.... Log square root
iec61966-2-4 ED.V.... IEC 61966-2-4
bt1361e ED.V.... BT.1361
iec61966-2-1 ED.V.... IEC 61966-2-1
bt2020-10 ED.V.... BT.2020 - 10 bit
bt2020-12 ED.V.... BT.2020 - 12 bit
smpte2084 ED.V.... SMPTE 2084
smpte428 ED.V.... SMPTE 428-1
arib-std-b67 ED.V.... ARIB STD-B67
unspecified ED.V.... Unspecified
log ED.V.... Log
log_sqrt ED.V.... Log square root
iec61966_2_4 ED.V.... IEC 61966-2-4
bt1361 ED.V.... BT.1361
iec61966_2_1 ED.V.... IEC 61966-2-1
bt2020_10bit ED.V.... BT.2020 - 10 bit
bt2020_12bit ED.V.... BT.2020 - 12 bit
smpte428_1 ED.V.... SMPTE 428-1
-colorspace <int> ED.V.... color space (from 0 to 11) (default unknown)
rgb ED.V.... RGB
bt709 ED.V.... BT.709
unknown ED.V.... Unspecified
fcc ED.V.... FCC
bt470bg ED.V.... BT.470 BG
smpte170m ED.V.... SMPTE 170 M
smpte240m ED.V.... SMPTE 240 M
ycgco ED.V.... YCGCO
bt2020nc ED.V.... BT.2020 NCL
bt2020c ED.V.... BT.2020 CL
smpte2085 ED.V.... SMPTE 2085
unspecified ED.V.... Unspecified
ycocg ED.V.... YCGCO
bt2020_ncl ED.V.... BT.2020 NCL
bt2020_cl ED.V.... BT.2020 CL
-color_range <int> ED.V.... color range (from 0 to 2) (default unknown)
unknown ED.V.... Unspecified
tv ED.V.... MPEG (219*2^(n-8))
pc ED.V.... JPEG (2^n-1)
unspecified ED.V.... Unspecified
mpeg ED.V.... MPEG (219*2^(n-8))
jpeg ED.V.... JPEG (2^n-1)
-chroma_sample_location <int> ED.V.... chroma sample location (from 0 to 6) (default unknown)
unknown ED.V.... Unspecified
left ED.V.... Left
center ED.V.... Center
topleft ED.V.... Top-left
top ED.V.... Top
bottomleft ED.V.... Bottom-left
bottom ED.V.... Bottom
unspecified ED.V.... Unspecified
-slices <int> E..V.... set the number of slices, used in parallelized encoding (from 0 to INT_MAX) (default 0)
-thread_type <flags> ED.VA... select multithreading type (default slice+frame)
slice ED.V....
frame ED.V....
-audio_service_type <int> E...A... audio service type (from 0 to 8) (default ma)
ma E...A... Main Audio Service
ef E...A... Effects
vi E...A... Visually Impaired
hi E...A... Hearing Impaired
di E...A... Dialogue
co E...A... Commentary
em E...A... Emergency
vo E...A... Voice Over
ka E...A... Karaoke
-request_sample_fmt <sample_fmt> .D..A... sample format audio decoders should prefer (default none)
-sub_charenc <string> .D...S.. set input text subtitles character encoding
-sub_charenc_mode <flags> .D...S.. set input text subtitles character encoding mode (default 0)
do_nothing .D...S..
auto .D...S..
pre_decoder .D...S..
-sub_text_format <int> .D...S.. set decoded text subtitle format (from 0 to 1) (default ass_with_timings)
ass .D...S..
ass_with_timings .D...S..
-refcounted_frames <boolean> .D.VA... (default false)
-side_data_only_packets <boolean> E..VA... (default true)
-skip_alpha <boolean> .D.V.... Skip processing alpha (default false)
-field_order <int> ED.V.... Field order (from 0 to 5) (default 0)
progressive ED.V....
tt ED.V....
bb ED.V....
tb ED.V....
bt ED.V....
-dump_separator <string> ED.VAS.. set information dump field separator
-codec_whitelist <string> .D.VAS.. List of decoders that are allowed to be used
-max_pixels <int64> ED.VAS.. Maximum number of pixels (from 0 to INT_MAX) (default INT_MAX)
amv encoder AVOptions:
-mpv_flags <flags> E..V.... Flags common for all mpegvideo-based encoders. (default 0)
skip_rd E..V.... RD optimal MB level residual skipping
strict_gop E..V.... Strictly enforce gop size
qp_rd E..V.... Use rate distortion optimization for qp selection
cbp_rd E..V.... use rate distortion optimization for CBP
naq E..V.... normalize adaptive quantization
mv0 E..V.... always try a mb with mv=<0,0>
-luma_elim_threshold <int> E..V.... single coefficient elimination threshold for luminance (negative values also consider dc coefficient) (from INT_MIN to INT_MAX) (default 0)
-chroma_elim_threshold <int> E..V.... single coefficient elimination threshold for chrominance (negative values also consider dc coefficient) (from INT_MIN to INT_MAX) (default 0)
-quantizer_noise_shaping <int> E..V.... (from 0 to INT_MAX) (default 0)
-error_rate <int> E..V.... Simulate errors in the bitstream to test error concealment. (from 0 to INT_MAX) (default 0)
-qsquish <float> E..V.... how to keep quantizer between qmin and qmax (0 = clip, 1 = use differentiable function) (from 0 to 99) (default 0)
-rc_qmod_amp <float> E..V.... experimental quantizer modulation (from -FLT_MAX to FLT_MAX) (default 0)
-rc_qmod_freq <int> E..V.... experimental quantizer modulation (from INT_MIN to INT_MAX) (default 0)
-rc_eq <string> E..V.... Set rate control equation. When computing the expression, besides the standard functions defined in the section 'Expression Evaluation', the following functions are available: bits2qp(bits), qp2bits(qp). Also the following constants are available: iTex pTex tex mv fCode iCount mcVar var isI isP isB avgQP qComp avgIITex avgPITex avgPPTex avgBPTex avgTex.
-rc_init_cplx <float> E..V.... initial complexity for 1-pass encoding (from -FLT_MAX to FLT_MAX) (default 0)
-rc_buf_aggressivity <float> E..V.... currently useless (from -FLT_MAX to FLT_MAX) (default 1)
-border_mask <float> E..V.... increase the quantizer for macroblocks close to borders (from -FLT_MAX to FLT_MAX) (default 0)
-lmin <int> E..V.... minimum Lagrange factor (VBR) (from 0 to INT_MAX) (default 236)
-lmax <int> E..V.... maximum Lagrange factor (VBR) (from 0 to INT_MAX) (default 3658)
-ibias <int> E..V.... intra quant bias (from INT_MIN to INT_MAX) (default 999999)
-pbias <int> E..V.... inter quant bias (from INT_MIN to INT_MAX) (default 999999)
-rc_strategy <int> E..V.... ratecontrol method (from 0 to 1) (default ffmpeg)
ffmpeg E..V.... default native rate control
xvid E..V.... libxvid (2 pass only)
-motion_est <int> E..V.... motion estimation algorithm (from 0 to 2) (default epzs)
zero E..V....
epzs E..V....
xone E..V....
-force_duplicated_matrix <boolean> E..V.... Always write luma and chroma matrix for mjpeg, useful for rtp streaming. (default false)
-b_strategy <int> E..V.... Strategy to choose between I/P/B-frames (from 0 to 2) (default 0)
-b_sensitivity <int> E..V.... Adjust sensitivity of b_frame_strategy 1 (from 1 to INT_MAX) (default 40)
-brd_scale <int> E..V.... Downscale frames for dynamic B-frame decision (from 0 to 3) (default 0)
-skip_threshold <int> E..V.... Frame skip threshold (from INT_MIN to INT_MAX) (default 0)
-skip_factor <int> E..V.... Frame skip factor (from INT_MIN to INT_MAX) (default 0)
-skip_exp <int> E..V.... Frame skip exponent (from INT_MIN to INT_MAX) (default 0)
-skip_cmp <int> E..V.... Frame skip compare function (from INT_MIN to INT_MAX) (default dctmax)
sad E..V.... Sum of absolute differences, fast
sse E..V.... Sum of squared errors
satd E..V.... Sum of absolute Hadamard transformed differences
dct E..V.... Sum of absolute DCT transformed differences
psnr E..V.... Sum of squared quantization errors, low quality
bit E..V.... Number of bits needed for the block
rd E..V.... Rate distortion optimal, slow
zero E..V.... Zero
vsad E..V.... Sum of absolute vertical differences
vsse E..V.... Sum of squared vertical differences
nsse E..V.... Noise preserving sum of squared differences
dct264 E..V....
dctmax E..V....
chroma E..V....
msad E..V.... Sum of absolute differences, median predicted
-sc_threshold <int> E..V.... Scene change threshold (from INT_MIN to INT_MAX) (default 0)
-noise_reduction <int> E..V.... Noise reduction (from INT_MIN to INT_MAX) (default 0)
-mpeg_quant <int> E..V.... Use MPEG quantizers instead of H.263 (from 0 to 1) (default 0)
-ps <int> E..V.... RTP payload size in bytes (from INT_MIN to INT_MAX) (default 0)
-mepc <int> E..V.... Motion estimation bitrate penalty compensation (1.0 = 256) (from INT_MIN to INT_MAX) (default 256)
-mepre <int> E..V.... pre motion estimation (from INT_MIN to INT_MAX) (default 0)
-pred <int> E..V.... Prediction method (from 1 to 3) (default left)
left E..V....
plane E..V....
median E..V....
-huffman <int> E..V.... Huffman table strategy (from 0 to 1) (default default)
default E..V....
optimal E..V....