最終更新:2020-05-14 (木) 21:14:21 (14d)  

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 topicshow help
    ffmpeg -?? topicshow help
    ffmpeg -help? topicshow help
    ffmpeg --help? topicshow help
    ffmpeg -version?show version
    ffmpeg -buildconfshow build configuration
    ffmpeg -formatsshow available formats
    ffmpeg -muxersshow available muxers
    ffmpeg -demuxers?show available demuxers
    ffmpeg -devicesshow available devices
    ffmpeg -codecsshow available codecs
    ffmpeg -decodersshow available decoders
    ffmpeg -encodersshow available encoders
    ffmpeg -bsfs?show available bit stream filters
    ffmpeg -protocols?show available protocols
    ffmpeg -filters?show available filters
    ffmpeg -pix_fmtsshow 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? devicelist sources of the input device
    ffmpeg -sinks? devicelist sinks of the output device
    ffmpeg -hwaccelsshow available HW acceleration methods

Global options (affect whole program instead of just one file:

  • ffmpeg -loglevel? loglevelset logging level
    ffmpeg -v? loglevelset logging level
    ffmpeg -report?generate a report
    ffmpeg -max_alloc? bytesset 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 rateratio of errors (0.0: no errors, 1.0: 100% errors) above which ffmpeg returns an error instead of success.
    ffmpeg -bits_per_raw_sample? numberset the number of bits per raw sample
    ffmpeg -vol? volumechange audio volume (256=normal)

Per-file main options:

  • ffmpeg -f? fmtforce format
    ffmpeg -c codeccodec name
    ffmpeg -codec? codeccodec name
    ffmpeg -pre? presetpreset name
    ffmpeg -map_metadata? outfile[,metadata]:infile[,metadata]set metadata information of outfile from infile
    ffmpeg -t? durationrecord or transcode "duration" seconds of audio/video
    ffmpeg -to? time_stoprecord or transcode stop time
    ffmpeg -fs? limit_sizeset the limit file size in bytes
    ffmpeg -ss? time_offset the start time offset
    ffmpeg -sseof? time_offset the start time offset relative to EOF
    ffmpeg -seek_timestamp?enable/disable seeking by timestamp with -ss
    ffmpeg -timestamp? timeset the recording timestamp ('now' to set the current time)
    ffmpeg -metadata? string=stringadd metadata
    ffmpeg -program? title=string:st=number...add program with specified streams
    ffmpeg -target? typespecify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-")
    ffmpeg -apad?audio pad
    ffmpeg -frames? numberset the number of frames to output
    ffmpeg -filter? filter_graphset 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? numberset the number of video frames to output
    ffmpeg -r? rateset frame rate (Hz value, fraction or abbreviation)
    ffmpeg -s? sizeset frame size (WxH or abbreviation)
    ffmpeg -aspect? aspectset aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
    ffmpeg -bits_per_raw_sample? numberset the number of bits per raw sample
    ffmpeg -vn?disable video
    ffmpeg -vcodec? codecforce video codec ('copy' to copy stream)
    ffmpeg -timecode? hh:mm:ss[:;.]ffset initial TimeCode? value.
    ffmpeg -pass? nselect the pass number (1 to 3)
    ffmpeg -vf? filter_graphset video filters
    ffmpeg -ab? bitrateaudio bitrate (please use -b:a)
    ffmpeg -b? bitratevideo bitrate (please use -b:v)
    ffmpeg -dn?disable data

Audio options:

  • ffmpeg -aframes? numberset the number of audio frames to output
    ffmpeg -aq? qualityset audio quality (codec-specific)
    ffmpeg -ar? rateset audio sampling rate (in Hz)
    ffmpeg -ac? channelsset number of audio channels
    ffmpeg -an?disable audio
    ffmpeg -acodec? codecforce audio codec ('copy' to copy stream)
    ffmpeg -vol? volumechange audio volume (256=normal)
    ffmpeg -af? filter_graphset audio filters

Subtitle options:

  • ffmpeg -s? sizeset frame size (WxH or abbreviation)
    ffmpeg -sn?disable subtitle
    ffmpeg -scodec? codecforce subtitle codec ('copy' to copy stream)
    ffmpeg -stag? fourcc/tagforce subtitle tag/fourcc
    ffmpeg -fix_sub_duration?fix subtitles duration
    ffmpeg -canvas_size? sizeset canvas size (WxH or abbreviation)
    ffmpeg -spre? presetset the subtitle options to the indicated preset