help语法

贴出(后来重新安装的支持了ass等库的)ffmpeg的help帮助信息:

  1. ~ ffmpeg --help
  2. ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
  3. built with Apple LLVM version 10.0.0 (clang-1000.11.45.2)
  4. configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma --enable-nonfree
  5. libavutil 56. 14.100 / 56. 14.100
  6. libavcodec 58. 18.100 / 58. 18.100
  7. libavformat 58. 12.100 / 58. 12.100
  8. libavdevice 58. 3.100 / 58. 3.100
  9. libavfilter 7. 16.100 / 7. 16.100
  10. libavresample 4. 0. 0 / 4. 0. 0
  11. libswscale 5. 1.100 / 5. 1.100
  12. libswresample 3. 1.100 / 3. 1.100
  13. libpostproc 55. 1.100 / 55. 1.100
  14. Hyper fast Audio and Video encoder
  15. usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
  16. Getting help:
  17. -h -- print basic options
  18. -h long -- print more options
  19. -h full -- print all options (including all format and codec specific options, very long)
  20. -h type=name -- print all options for the named decoder/encoder/demuxer/muxer/filter/bsf
  21. See man ffmpeg for detailed description of the options.
  22. Print help / information / capabilities:
  23. -L show license
  24. -h topic show help
  25. -? topic show help
  26. -help topic show help
  27. --help topic show help
  28. -version show version
  29. -buildconf show build configuration
  30. -formats show available formats
  31. -muxers show available muxers
  32. -demuxers show available demuxers
  33. -devices show available devices
  34. -codecs show available codecs
  35. -decoders show available decoders
  36. -encoders show available encoders
  37. -bsfs show available bit stream filters
  38. -protocols show available protocols
  39. -filters show available filters
  40. -pix_fmts show available pixel formats
  41. -layouts show standard channel layouts
  42. -sample_fmts show available audio sample formats
  43. -colors show available color names
  44. -sources device list sources of the input device
  45. -sinks device list sinks of the output device
  46. -hwaccels show available HW acceleration methods
  47. Global options (affect whole program instead of just one file:
  48. -loglevel loglevel set logging level
  49. -v loglevel set logging level
  50. -report generate a report
  51. -max_alloc bytes set maximum size of a single allocated block
  52. -y overwrite output files
  53. -n never overwrite output files
  54. -ignore_unknown Ignore unknown stream types
  55. -filter_threads number of non-complex filter threads
  56. -filter_complex_threads number of threads for -filter_complex
  57. -stats print progress report during encoding
  58. -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.
  59. -bits_per_raw_sample number set the number of bits per raw sample
  60. -vol volume change audio volume (256=normal)
  61. Per-file main options:
  62. -f fmt force format
  63. -c codec codec name
  64. -codec codec codec name
  65. -pre preset preset name
  66. -map_metadata outfile[,metadata]:infile[,metadata] set metadata information of outfile from infile
  67. -t duration record or transcode "duration" seconds of audio/video
  68. -to time_stop record or transcode stop time
  69. -fs limit_size set the limit file size in bytes
  70. -ss time_off set the start time offset
  71. -sseof time_off set the start time offset relative to EOF
  72. -seek_timestamp enable/disable seeking by timestamp with -ss
  73. -timestamp time set the recording timestamp ('now' to set the current time)
  74. -metadata string=string add metadata
  75. -program title=string:st=number... add program with specified streams
  76. -target type specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-")
  77. -apad audio pad
  78. -frames number set the number of frames to output
  79. -filter filter_graph set stream filtergraph
  80. -filter_script filename read stream filtergraph description from a file
  81. -reinit_filter reinit filtergraph on input parameter changes
  82. -discard discard
  83. -disposition disposition
  84. Video options:
  85. -vframes number set the number of video frames to output
  86. -r rate set frame rate (Hz value, fraction or abbreviation)
  87. -s size set frame size (WxH or abbreviation)
  88. -aspect aspect set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
  89. -bits_per_raw_sample number set the number of bits per raw sample
  90. -vn disable video
  91. -vcodec codec force video codec ('copy' to copy stream)
  92. -timecode hh:mm:ss[:;.]ff set initial TimeCode value.
  93. -pass n select the pass number (1 to 3)
  94. -vf filter_graph set video filters
  95. -ab bitrate audio bitrate (please use -b:a)
  96. -b bitrate video bitrate (please use -b:v)
  97. -dn disable data
  98. Audio options:
  99. -aframes number set the number of audio frames to output
  100. -aq quality set audio quality (codec-specific)
  101. -ar rate set audio sampling rate (in Hz)
  102. -ac channels set number of audio channels
  103. -an disable audio
  104. -acodec codec force audio codec ('copy' to copy stream)
  105. -vol volume change audio volume (256=normal)
  106. -af filter_graph set audio filters
  107. Subtitle options:
  108. -s size set frame size (WxH or abbreviation)
  109. -sn disable subtitle
  110. -scodec codec force subtitle codec ('copy' to copy stream)
  111. -stag fourcc/tag force subtitle tag/fourcc
  112. -fix_sub_duration fix subtitles duration
  113. -canvas_size size set canvas size (WxH or abbreviation)
  114. -spre preset set the subtitle options to the indicated preset

供参考。