最終更新:2020-05-14 (木) 21:14:21 (1436d)
ffmpeg -h
Top / ffmpeg -h
print basic options
ffmpeg-4.2.2-win64-static\bin>ffmpeg -h ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers built with gcc 9.2.1 (GCC) 20200122 configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Getting help: -h -- print basic options -h long -- print more options -h full -- print all options (including all format and codec specific options, very long) -h type=name -- print all options for the named decoder/encoder/demuxer/muxer/filter/bsf See man ffmpeg for detailed description of the options. Print help / information / capabilities: -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 maximum error rate ratio of errors (0.0: no errors, 1.0: 100% errors) above which ffmpeg returns an error instead of success. -bits_per_raw_sample number set the number of bits per raw sample -vol volume change audio volume (256=normal) 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 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 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 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
Print help / information / capabilities:
ffmpeg -L? show license ffmpeg -h topic show help ffmpeg -?? topic show help ffmpeg -help? topic show help ffmpeg --help? topic show help ffmpeg -version? show version ffmpeg -buildconf show build configuration ffmpeg -formats show available formats ffmpeg -muxers show available muxers ffmpeg -demuxers? show available demuxers ffmpeg -devices show available devices ffmpeg -codecs show available codecs ffmpeg -decoders show available decoders ffmpeg -encoders show available encoders ffmpeg -bsfs? show available bit stream filters ffmpeg -protocols? show available protocols ffmpeg -filters? show available filters ffmpeg -pix_fmts show available pixel formats ffmpeg -layouts? show standard channel layouts ffmpeg -sample_fmts? show available audio sample formats ffmpeg -colors? show available color names ffmpeg -sources? device list sources of the input device ffmpeg -sinks? device list sinks of the output device ffmpeg -hwaccels show available HW acceleration methods
Global options (affect whole program instead of just one file:
ffmpeg -loglevel? loglevel set logging level ffmpeg -v? loglevel set logging level ffmpeg -report? generate a report ffmpeg -max_alloc? bytes set maximum size of a single allocated block ffmpeg -y? overwrite output files ffmpeg -n? never overwrite output files ffmpeg -ignore_unknown? Ignore unknown stream types ffmpeg -filter_threads? number of non-complex filter threads ffmpeg -filter_complex_threads? number of threads for -filter_complex ffmpeg -stats? print progress report during encoding ffmpeg -max_error_rate? maximum error rate ratio of errors (0.0: no errors, 1.0: 100% errors) above which ffmpeg returns an error instead of success. ffmpeg -bits_per_raw_sample? number set the number of bits per raw sample ffmpeg -vol? volume change audio volume (256=normal)
Per-file main options:
ffmpeg -f? fmt force format ffmpeg -c codec codec name ffmpeg -codec? codec codec name ffmpeg -pre? preset preset name ffmpeg -map_metadata? outfile[,metadata]:infile[,metadata] set metadata information of outfile from infile ffmpeg -t? duration record or transcode "duration" seconds of audio/video ffmpeg -to? time_stop record or transcode stop time ffmpeg -fs? limit_size set the limit file size in bytes ffmpeg -ss? time_off set the start time offset ffmpeg -sseof? time_off set the start time offset relative to EOF ffmpeg -seek_timestamp? enable/disable seeking by timestamp with -ss ffmpeg -timestamp? time set the recording timestamp ('now' to set the current time) ffmpeg -metadata? string=string add metadata ffmpeg -program? title=string:st=number... add program with specified streams ffmpeg -target? type specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-") ffmpeg -apad? audio pad ffmpeg -frames? number set the number of frames to output ffmpeg -filter? filter_graph set stream filtergraph ffmpeg -filter_script filename? read stream filtergraph description from a file ffmpeg -reinit_filter? reinit filtergraph on input parameter changes ffmpeg -discard? discard ffmpeg -disposition? disposition
Video options:
ffmpeg -vframes? number set the number of video frames to output ffmpeg -r? rate set frame rate (Hz value, fraction or abbreviation) ffmpeg -s? size set frame size (WxH or abbreviation) ffmpeg -aspect? aspect set aspect ratio (4:3, 16:9 or 1.3333, 1.7777) ffmpeg -bits_per_raw_sample? number set the number of bits per raw sample ffmpeg -vn? disable video ffmpeg -vcodec? codec force video codec ('copy' to copy stream) ffmpeg -timecode? hh:mm:ss[:;.]ff set initial TimeCode? value. ffmpeg -pass? n select the pass number (1 to 3) ffmpeg -vf? filter_graph set video filters ffmpeg -ab? bitrate audio bitrate (please use -b:a) ffmpeg -b? bitrate video bitrate (please use -b:v) ffmpeg -dn? disable data
Audio options:
ffmpeg -aframes? number set the number of audio frames to output ffmpeg -aq? quality set audio quality (codec-specific) ffmpeg -ar? rate set audio sampling rate (in Hz) ffmpeg -ac? channels set number of audio channels ffmpeg -an? disable audio ffmpeg -acodec? codec force audio codec ('copy' to copy stream) ffmpeg -vol? volume change audio volume (256=normal) ffmpeg -af? filter_graph set audio filters
Subtitle options:
ffmpeg -s? size set frame size (WxH or abbreviation) ffmpeg -sn? disable subtitle ffmpeg -scodec? codec force subtitle codec ('copy' to copy stream) ffmpeg -stag? fourcc/tag force subtitle tag/fourcc ffmpeg -fix_sub_duration? fix subtitles duration ffmpeg -canvas_size? size set canvas size (WxH or abbreviation) ffmpeg -spre? preset set the subtitle options to the indicated preset