help_long.out 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. Hyper fast Audio and Video encoder
  2. usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
  3. Getting help:
  4. -h -- print basic options
  5. -h long -- print more options
  6. -h full -- print all options (including all format and codec specific options, very long)
  7. -h type=name -- print all options for the named decoder/encoder/demuxer/muxer/filter/bsf/protocol
  8. See man ffmpeg for detailed description of the options.
  9. Print help / information / capabilities:
  10. -L show license
  11. -h topic show help
  12. -? topic show help
  13. -help topic show help
  14. --help topic show help
  15. -version show version
  16. -buildconf show build configuration
  17. -formats show available formats
  18. -muxers show available muxers
  19. -demuxers show available demuxers
  20. -devices show available devices
  21. -codecs show available codecs
  22. -decoders show available decoders
  23. -encoders show available encoders
  24. -bsfs show available bit stream filters
  25. -protocols show available protocols
  26. -filters show available filters
  27. -pix_fmts show available pixel formats
  28. -layouts show standard channel layouts
  29. -sample_fmts show available audio sample formats
  30. -dispositions show available stream dispositions
  31. -colors show available color names
  32. -sources device list sources of the input device
  33. -sinks device list sinks of the output device
  34. -hwaccels show available HW acceleration methods
  35. Global options (affect whole program instead of just one file):
  36. -loglevel loglevel set logging level
  37. -v loglevel set logging level
  38. -report generate a report
  39. -max_alloc bytes set maximum size of a single allocated block
  40. -y overwrite output files
  41. -n never overwrite output files
  42. -ignore_unknown Ignore unknown stream types
  43. -filter_threads number of non-complex filter threads
  44. -filter_complex_threads number of threads for -filter_complex
  45. -stats print progress report during encoding
  46. -max_error_rate maximum error rate ratio of decoding errors (0.0: no errors, 1.0: 100% errors) above which ffmpeg returns an error instead of success.
  47. Advanced global options:
  48. -cpuflags flags force specific cpu flags
  49. -cpucount count force specific cpu count
  50. -hide_banner hide_banner do not show program banner
  51. -copy_unknown Copy unknown stream types
  52. -recast_media allow recasting stream type in order to force a decoder of different media type
  53. -benchmark add timings for benchmarking
  54. -benchmark_all add timings for each task
  55. -progress url write program-readable progress information
  56. -stdin enable or disable interaction on standard input
  57. -timelimit limit set max runtime in seconds in CPU user time
  58. -dump dump each input packet
  59. -hex when dumping packets, also dump the payload
  60. -vsync set video sync method globally; deprecated, use -fps_mode
  61. -frame_drop_threshold frame drop threshold
  62. -adrift_threshold threshold deprecated, does nothing
  63. -copyts copy timestamps
  64. -start_at_zero shift input timestamps to start at 0 when using copyts
  65. -copytb mode copy input stream time base when stream copying
  66. -dts_delta_threshold threshold timestamp discontinuity delta threshold
  67. -dts_error_threshold threshold timestamp error delta threshold
  68. -xerror error exit on error
  69. -abort_on flags abort on the specified condition flags
  70. -filter_complex graph_description create a complex filtergraph
  71. -lavfi graph_description create a complex filtergraph
  72. -filter_complex_script filename read complex filtergraph description from a file
  73. -auto_conversion_filters enable automatic conversion filters globally
  74. -stats_period time set the period at which ffmpeg updates stats and -progress output
  75. -debug_ts print timestamp debugging info
  76. -psnr calculate PSNR of compressed frames (deprecated, use -flags +psnr)
  77. -vstats dump video coding statistics to file
  78. -vstats_file file dump video coding statistics to file
  79. -vstats_version Version of the vstats format to use.
  80. -qphist deprecated, does nothing
  81. -sdp_file file specify a file in which to print sdp information
  82. -init_hw_device args initialise hardware device
  83. -filter_hw_device device set hardware device used when filtering
  84. Per-file main options:
  85. -f fmt force format
  86. -c codec codec name
  87. -codec codec codec name
  88. -pre preset preset name
  89. -map_metadata outfile[,metadata]:infile[,metadata] set metadata information of outfile from infile
  90. -t duration record or transcode "duration" seconds of audio/video
  91. -to time_stop record or transcode stop time
  92. -fs limit_size set the limit file size in bytes
  93. -ss time_off set the start time offset
  94. -sseof time_off set the start time offset relative to EOF
  95. -seek_timestamp enable/disable seeking by timestamp with -ss
  96. -timestamp time set the recording timestamp ('now' to set the current time)
  97. -metadata string=string add metadata
  98. -program title=string:st=number... add program with specified streams
  99. -target type specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-")
  100. -apad audio pad
  101. -frames number set the number of frames to output
  102. -filter filter_graph set stream filtergraph
  103. -filter_script filename read stream filtergraph description from a file
  104. -reinit_filter reinit filtergraph on input parameter changes
  105. -discard discard
  106. -disposition disposition
  107. Advanced per-file options:
  108. -map [-]input_file_id[:stream_specifier][,sync_file_id[:stream_specifier]] set input stream mapping
  109. -map_channel file.stream.channel[:syncfile.syncstream] map an audio channel from one stream to another (deprecated)
  110. -map_chapters input_file_index set chapters mapping
  111. -accurate_seek enable/disable accurate seeking with -ss
  112. -isync sync ref Indicate the input index for sync reference
  113. -itsoffset time_off set the input ts offset
  114. -itsscale scale set the input ts scale
  115. -dframes number set the number of data frames to output
  116. -re read input at native frame rate; equivalent to -readrate 1
  117. -readrate speed read input at specified rate
  118. -readrate_initial_burst seconds The initial amount of input to burst read before imposing any readrate
  119. -shortest finish encoding within shortest input
  120. -shortest_buf_duration maximum buffering duration (in seconds) for the -shortest option
  121. -bitexact bitexact mode
  122. -copyinkf copy initial non-keyframes
  123. -copypriorss copy or discard frames before start time
  124. -tag fourcc/tag force codec tag/fourcc
  125. -q q use fixed quality scale (VBR)
  126. -qscale q use fixed quality scale (VBR)
  127. -profile profile set profile
  128. -attach filename add an attachment to the output file
  129. -dump_attachment filename extract an attachment into a file
  130. -stream_loop loop count set number of times input stream shall be looped
  131. -thread_queue_size set the maximum number of queued packets from the demuxer
  132. -find_stream_info read and decode the streams to fill missing information with heuristics
  133. -bits_per_raw_sample number set the number of bits per raw sample
  134. -stats_enc_pre write encoding stats before encoding
  135. -stats_enc_post write encoding stats after encoding
  136. -stats_mux_pre write packets stats before muxing
  137. -stats_enc_pre_fmt format of the stats written with -stats_enc_pre
  138. -stats_enc_post_fmt format of the stats written with -stats_enc_post
  139. -stats_mux_pre_fmt format of the stats written with -stats_mux_pre
  140. -autorotate automatically insert correct rotate filters
  141. -autoscale automatically insert a scale filter at the end of the filter graph
  142. -muxdelay seconds set the maximum demux-decode delay
  143. -muxpreload seconds set the initial demux-decode delay
  144. -time_base ratio set the desired time base hint for output stream (1:24, 1:48000 or 0.04166, 2.0833e-5)
  145. -enc_time_base ratio set the desired time base for the encoder (1:24, 1:48000 or 0.04166, 2.0833e-5). two special values are defined - 0 = use frame rate (video) or sample rate (audio),-1 = match source time base
  146. -bsf bitstream_filters A comma-separated list of bitstream filters
  147. -fpre filename set options from indicated preset file
  148. -max_muxing_queue_size packets maximum number of packets that can be buffered while waiting for all streams to initialize
  149. -muxing_queue_data_threshold bytes set the threshold after which max_muxing_queue_size is taken into account
  150. -dcodec codec force data codec ('copy' to copy stream)
  151. Video options:
  152. -vframes number set the number of video frames to output
  153. -r rate set frame rate (Hz value, fraction or abbreviation)
  154. -fpsmax rate set max frame rate (Hz value, fraction or abbreviation)
  155. -s size set frame size (WxH or abbreviation)
  156. -aspect aspect set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
  157. -display_rotation angle set pure counter-clockwise rotation in degrees for stream(s)
  158. -display_hflip set display horizontal flip for stream(s) (overrides any display rotation if it is not set)
  159. -display_vflip set display vertical flip for stream(s) (overrides any display rotation if it is not set)
  160. -vn disable video
  161. -vcodec codec force video codec ('copy' to copy stream)
  162. -timecode hh:mm:ss[:;.]ff set initial TimeCode value.
  163. -pass n select the pass number (1 to 3)
  164. -vf filter_graph set video filters
  165. -b bitrate video bitrate (please use -b:v)
  166. -dn disable data
  167. Advanced Video options:
  168. -pix_fmt format set pixel format
  169. -rc_override override rate control override for specific intervals
  170. -passlogfile prefix select two pass log file name prefix
  171. -psnr calculate PSNR of compressed frames (deprecated, use -flags +psnr)
  172. -vstats dump video coding statistics to file
  173. -vstats_file file dump video coding statistics to file
  174. -vstats_version Version of the vstats format to use.
  175. -intra_matrix matrix specify intra matrix coeffs
  176. -inter_matrix matrix specify inter matrix coeffs
  177. -chroma_intra_matrix matrix specify intra matrix coeffs
  178. -top deprecated, use the setfield video filter
  179. -vtag fourcc/tag force video tag/fourcc
  180. -qphist deprecated, does nothing
  181. -fps_mode set framerate mode for matching video streams; overrides vsync
  182. -force_fps force the selected framerate, disable the best supported framerate selection
  183. -streamid streamIndex:value set the value of an outfile streamid
  184. -force_key_frames timestamps force key frames at specified timestamps
  185. -hwaccel hwaccel name use HW accelerated decoding
  186. -hwaccel_device devicename select a device for HW acceleration
  187. -hwaccel_output_format format select output format used with HW accelerated decoding
  188. -fix_sub_duration_heartbeat set this video output stream to be a heartbeat stream for fix_sub_duration, according to which subtitles should be split at random access points
  189. -vbsf video bitstream_filters deprecated
  190. -vpre preset set the video options to the indicated preset
  191. Audio options:
  192. -aframes number set the number of audio frames to output
  193. -aq quality set audio quality (codec-specific)
  194. -ar rate set audio sampling rate (in Hz)
  195. -ac channels set number of audio channels
  196. -an disable audio
  197. -acodec codec force audio codec ('copy' to copy stream)
  198. -ab bitrate audio bitrate (please use -b:a)
  199. -af filter_graph set audio filters
  200. Advanced Audio options:
  201. -atag fourcc/tag force audio tag/fourcc
  202. -sample_fmt format set sample format
  203. -channel_layout layout set channel layout
  204. -ch_layout layout set channel layout
  205. -guess_layout_max set the maximum number of channels to try to guess the channel layout
  206. -absf audio bitstream_filters deprecated
  207. -apre preset set the audio options to the indicated preset
  208. Subtitle options:
  209. -s size set frame size (WxH or abbreviation)
  210. -sn disable subtitle
  211. -scodec codec force subtitle codec ('copy' to copy stream)
  212. -stag fourcc/tag force subtitle tag/fourcc
  213. -fix_sub_duration fix subtitles duration
  214. -canvas_size size set canvas size (WxH or abbreviation)
  215. -spre preset set the subtitle options to the indicated preset