You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1306 lines
42KB

  1. \input texinfo @c -*- texinfo -*-
  2. @settitle ffmpeg Documentation
  3. @titlepage
  4. @center @titlefont{ffmpeg Documentation}
  5. @end titlepage
  6. @top
  7. @contents
  8. @chapter Synopsis
  9. The generic syntax is:
  10. @example
  11. @c man begin SYNOPSIS
  12. ffmpeg [global options] [[infile options][@option{-i} @var{infile}]]... @{[outfile options] @var{outfile}@}...
  13. @c man end
  14. @end example
  15. @chapter Description
  16. @c man begin DESCRIPTION
  17. ffmpeg is a very fast video and audio converter that can also grab from
  18. a live audio/video source. It can also convert between arbitrary sample
  19. rates and resize video on the fly with a high quality polyphase filter.
  20. ffmpeg reads from an arbitrary number of input "files" (which can be regular
  21. files, pipes, network streams, grabbing devices, etc.), specified by the
  22. @code{-i} option, and writes to an arbitrary number of output "files", which are
  23. specified by a plain output filename. Anything found on the command line which
  24. cannot be interpreted as an option is considered to be an output filename.
  25. Each input or output file can in principle contain any number of streams of
  26. different types (video/audio/subtitle/attachment/data). Allowed number and/or
  27. types of streams can be limited by the container format. Selecting, which
  28. streams from which inputs go into output, is done either automatically or with
  29. the @code{-map} option (see the Stream selection chapter).
  30. To refer to input files in options, you must use their indices (0-based). E.g.
  31. the first input file is @code{0}, the second is @code{1} etc. Similarly, streams
  32. within a file are referred to by their indices. E.g. @code{2:3} refers to the
  33. fourth stream in the third input file. See also the Stream specifiers chapter.
  34. As a general rule, options are applied to the next specified
  35. file. Therefore, order is important, and you can have the same
  36. option on the command line multiple times. Each occurrence is
  37. then applied to the next input or output file.
  38. Exceptions from this rule are the global options (e.g. verbosity level),
  39. which should be specified first.
  40. Do not mix input and output files -- first specify all input files, then all
  41. output files. Also do not mix options which belong to different files. All
  42. options apply ONLY to the next input or output file and are reset between files.
  43. @itemize
  44. @item
  45. To set the video bitrate of the output file to 64kbit/s:
  46. @example
  47. ffmpeg -i input.avi -b:v 64k output.avi
  48. @end example
  49. @item
  50. To force the frame rate of the output file to 24 fps:
  51. @example
  52. ffmpeg -i input.avi -r 24 output.avi
  53. @end example
  54. @item
  55. To force the frame rate of the input file (valid for raw formats only)
  56. to 1 fps and the frame rate of the output file to 24 fps:
  57. @example
  58. ffmpeg -r 1 -i input.m2v -r 24 output.avi
  59. @end example
  60. @end itemize
  61. The format option may be needed for raw input files.
  62. @c man end DESCRIPTION
  63. @chapter Stream selection
  64. @c man begin STREAM SELECTION
  65. By default ffmpeg includes only one stream of each type (video, audio, subtitle)
  66. present in the input files and adds them to each output file. It picks the
  67. "best" of each based upon the following criteria; for video it is the stream
  68. with the highest resolution, for audio the stream with the most channels, for
  69. subtitle it's the first subtitle stream. In the case where several streams of
  70. the same type rate equally, the lowest numbered stream is chosen.
  71. You can disable some of those defaults by using @code{-vn/-an/-sn} options. For
  72. full manual control, use the @code{-map} option, which disables the defaults just
  73. described.
  74. @c man end STREAM SELECTION
  75. @chapter Options
  76. @c man begin OPTIONS
  77. @include avtools-common-opts.texi
  78. @section Main options
  79. @table @option
  80. @item -f @var{fmt} (@emph{input/output})
  81. Force input or output file format. The format is normally auto detected for input
  82. files and guessed from file extension for output files, so this option is not
  83. needed in most cases.
  84. @item -i @var{filename} (@emph{input})
  85. input file name
  86. @item -y (@emph{global})
  87. Overwrite output files without asking.
  88. @item -n (@emph{global})
  89. Do not overwrite output files but exit if file exists.
  90. @item -c[:@var{stream_specifier}] @var{codec} (@emph{input/output,per-stream})
  91. @itemx -codec[:@var{stream_specifier}] @var{codec} (@emph{input/output,per-stream})
  92. Select an encoder (when used before an output file) or a decoder (when used
  93. before an input file) for one or more streams. @var{codec} is the name of a
  94. decoder/encoder or a special value @code{copy} (output only) to indicate that
  95. the stream is not to be re-encoded.
  96. For example
  97. @example
  98. ffmpeg -i INPUT -map 0 -c:v libx264 -c:a copy OUTPUT
  99. @end example
  100. encodes all video streams with libx264 and copies all audio streams.
  101. For each stream, the last matching @code{c} option is applied, so
  102. @example
  103. ffmpeg -i INPUT -map 0 -c copy -c:v:1 libx264 -c:a:137 libvorbis OUTPUT
  104. @end example
  105. will copy all the streams except the second video, which will be encoded with
  106. libx264, and the 138th audio, which will be encoded with libvorbis.
  107. @item -t @var{duration} (@emph{output})
  108. Stop writing the output after its duration reaches @var{duration}.
  109. @var{duration} may be a number in seconds, or in @code{hh:mm:ss[.xxx]} form.
  110. @item -fs @var{limit_size} (@emph{output})
  111. Set the file size limit.
  112. @item -ss @var{position} (@emph{input/output})
  113. When used as an input option (before @code{-i}), seeks in this input file to
  114. @var{position}. When used as an output option (before an output filename),
  115. decodes but discards input until the timestamps reach @var{position}. This is
  116. slower, but more accurate.
  117. @var{position} may be either in seconds or in @code{hh:mm:ss[.xxx]} form.
  118. @item -itsoffset @var{offset} (@emph{input})
  119. Set the input time offset in seconds.
  120. @code{[-]hh:mm:ss[.xxx]} syntax is also supported.
  121. The offset is added to the timestamps of the input files.
  122. Specifying a positive offset means that the corresponding
  123. streams are delayed by @var{offset} seconds.
  124. @item -timestamp @var{time} (@emph{output})
  125. Set the recording timestamp in the container.
  126. The syntax for @var{time} is:
  127. @example
  128. now|([(YYYY-MM-DD|YYYYMMDD)[T|t| ]]((HH[:MM[:SS[.m...]]])|(HH[MM[SS[.m...]]]))[Z|z])
  129. @end example
  130. If the value is "now" it takes the current time.
  131. Time is local time unless 'Z' or 'z' is appended, in which case it is
  132. interpreted as UTC.
  133. If the year-month-day part is not specified it takes the current
  134. year-month-day.
  135. @item -metadata[:metadata_specifier] @var{key}=@var{value} (@emph{output,per-metadata})
  136. Set a metadata key/value pair.
  137. An optional @var{metadata_specifier} may be given to set metadata
  138. on streams or chapters. See @code{-map_metadata} documentation for
  139. details.
  140. This option overrides metadata set with @code{-map_metadata}. It is
  141. also possible to delete metadata by using an empty value.
  142. For example, for setting the title in the output file:
  143. @example
  144. ffmpeg -i in.avi -metadata title="my title" out.flv
  145. @end example
  146. To set the language of the first audio stream:
  147. @example
  148. ffmpeg -i INPUT -metadata:s:a:1 language=eng OUTPUT
  149. @end example
  150. @item -target @var{type} (@emph{output})
  151. Specify target file type (@code{vcd}, @code{svcd}, @code{dvd}, @code{dv},
  152. @code{dv50}). @var{type} may be prefixed with @code{pal-}, @code{ntsc-} or
  153. @code{film-} to use the corresponding standard. All the format options
  154. (bitrate, codecs, buffer sizes) are then set automatically. You can just type:
  155. @example
  156. ffmpeg -i myfile.avi -target vcd /tmp/vcd.mpg
  157. @end example
  158. Nevertheless you can specify additional options as long as you know
  159. they do not conflict with the standard, as in:
  160. @example
  161. ffmpeg -i myfile.avi -target vcd -bf 2 /tmp/vcd.mpg
  162. @end example
  163. @item -dframes @var{number} (@emph{output})
  164. Set the number of data frames to record. This is an alias for @code{-frames:d}.
  165. @item -frames[:@var{stream_specifier}] @var{framecount} (@emph{output,per-stream})
  166. Stop writing to the stream after @var{framecount} frames.
  167. @item -q[:@var{stream_specifier}] @var{q} (@emph{output,per-stream})
  168. @itemx -qscale[:@var{stream_specifier}] @var{q} (@emph{output,per-stream})
  169. Use fixed quality scale (VBR). The meaning of @var{q} is
  170. codec-dependent.
  171. @item -filter[:@var{stream_specifier}] @var{filter_graph} (@emph{output,per-stream})
  172. @var{filter_graph} is a description of the filter graph to apply to
  173. the stream. Use @code{-filters} to show all the available filters
  174. (including also sources and sinks).
  175. @item -pre[:@var{stream_specifier}] @var{preset_name} (@emph{output,per-stream})
  176. Specify the preset for matching stream(s).
  177. @item -stats (@emph{global})
  178. Print encoding progress/statistics. On by default.
  179. @item -attach @var{filename} (@emph{output})
  180. Add an attachment to the output file. This is supported by a few formats
  181. like Matroska for e.g. fonts used in rendering subtitles. Attachments
  182. are implemented as a specific type of stream, so this option will add
  183. a new stream to the file. It is then possible to use per-stream options
  184. on this stream in the usual way. Attachment streams created with this
  185. option will be created after all the other streams (i.e. those created
  186. with @code{-map} or automatic mappings).
  187. Note that for Matroska you also have to set the mimetype metadata tag:
  188. @example
  189. ffmpeg -i INPUT -attach DejaVuSans.ttf -metadata:s:2 mimetype=application/x-truetype-font out.mkv
  190. @end example
  191. (assuming that the attachment stream will be third in the output file).
  192. @item -dump_attachment[:@var{stream_specifier}] @var{filename} (@emph{input,per-stream})
  193. Extract the matching attachment stream into a file named @var{filename}. If
  194. @var{filename} is empty, then the value of the @code{filename} metadata tag
  195. will be used.
  196. E.g. to extract the first attachment to a file named 'out.ttf':
  197. @example
  198. ffmpeg -dump_attachment:t:0 out.ttf INPUT
  199. @end example
  200. To extract all attachments to files determined by the @code{filename} tag:
  201. @example
  202. ffmpeg -dump_attachment:t "" INPUT
  203. @end example
  204. Technical note -- attachments are implemented as codec extradata, so this
  205. option can actually be used to extract extradata from any stream, not just
  206. attachments.
  207. @end table
  208. @section Video Options
  209. @table @option
  210. @item -vframes @var{number} (@emph{output})
  211. Set the number of video frames to record. This is an alias for @code{-frames:v}.
  212. @item -r[:@var{stream_specifier}] @var{fps} (@emph{input/output,per-stream})
  213. Set frame rate (Hz value, fraction or abbreviation), (default = 25).
  214. @item -s[:@var{stream_specifier}] @var{size} (@emph{input/output,per-stream})
  215. Set frame size. The format is @samp{wxh} (default - same as source).
  216. The following abbreviations are recognized:
  217. @table @samp
  218. @item sqcif
  219. 128x96
  220. @item qcif
  221. 176x144
  222. @item cif
  223. 352x288
  224. @item 4cif
  225. 704x576
  226. @item 16cif
  227. 1408x1152
  228. @item qqvga
  229. 160x120
  230. @item qvga
  231. 320x240
  232. @item vga
  233. 640x480
  234. @item svga
  235. 800x600
  236. @item xga
  237. 1024x768
  238. @item uxga
  239. 1600x1200
  240. @item qxga
  241. 2048x1536
  242. @item sxga
  243. 1280x1024
  244. @item qsxga
  245. 2560x2048
  246. @item hsxga
  247. 5120x4096
  248. @item wvga
  249. 852x480
  250. @item wxga
  251. 1366x768
  252. @item wsxga
  253. 1600x1024
  254. @item wuxga
  255. 1920x1200
  256. @item woxga
  257. 2560x1600
  258. @item wqsxga
  259. 3200x2048
  260. @item wquxga
  261. 3840x2400
  262. @item whsxga
  263. 6400x4096
  264. @item whuxga
  265. 7680x4800
  266. @item cga
  267. 320x200
  268. @item ega
  269. 640x350
  270. @item hd480
  271. 852x480
  272. @item hd720
  273. 1280x720
  274. @item hd1080
  275. 1920x1080
  276. @end table
  277. @item -aspect[:@var{stream_specifier}] @var{aspect} (@emph{output,per-stream})
  278. Set the video display aspect ratio specified by @var{aspect}.
  279. @var{aspect} can be a floating point number string, or a string of the
  280. form @var{num}:@var{den}, where @var{num} and @var{den} are the
  281. numerator and denominator of the aspect ratio. For example "4:3",
  282. "16:9", "1.3333", and "1.7777" are valid argument values.
  283. @item -croptop @var{size}
  284. @item -cropbottom @var{size}
  285. @item -cropleft @var{size}
  286. @item -cropright @var{size}
  287. All the crop options have been removed. Use -vf
  288. crop=width:height:x:y instead.
  289. @item -padtop @var{size}
  290. @item -padbottom @var{size}
  291. @item -padleft @var{size}
  292. @item -padright @var{size}
  293. @item -padcolor @var{hex_color}
  294. All the pad options have been removed. Use -vf
  295. pad=width:height:x:y:color instead.
  296. @item -vn (@emph{output})
  297. Disable video recording.
  298. @item -bt @var{tolerance}
  299. Set video bitrate tolerance (in bits, default 4000k).
  300. Has a minimum value of: (target_bitrate/target_framerate).
  301. In 1-pass mode, bitrate tolerance specifies how far ratecontrol is
  302. willing to deviate from the target average bitrate value. This is
  303. not related to min/max bitrate. Lowering tolerance too much has
  304. an adverse effect on quality.
  305. @item -maxrate @var{bitrate}
  306. Set max video bitrate (in bit/s).
  307. Requires -bufsize to be set.
  308. @item -minrate @var{bitrate}
  309. Set min video bitrate (in bit/s).
  310. Most useful in setting up a CBR encode:
  311. @example
  312. ffmpeg -i myfile.avi -b:v 4000k -minrate 4000k -maxrate 4000k -bufsize 1835k out.m2v
  313. @end example
  314. It is of little use elsewise.
  315. @item -bufsize @var{size}
  316. Set video buffer verifier buffer size (in bits).
  317. @item -vcodec @var{codec} (@emph{output})
  318. Set the video codec. This is an alias for @code{-codec:v}.
  319. @item -same_quant
  320. Use same quantizer as source (implies VBR).
  321. Note that this is NOT SAME QUALITY. Do not use this option unless you know you
  322. need it.
  323. @item -pass @var{n}
  324. Select the pass number (1 or 2). It is used to do two-pass
  325. video encoding. The statistics of the video are recorded in the first
  326. pass into a log file (see also the option -passlogfile),
  327. and in the second pass that log file is used to generate the video
  328. at the exact requested bitrate.
  329. On pass 1, you may just deactivate audio and set output to null,
  330. examples for Windows and Unix:
  331. @example
  332. ffmpeg -i foo.mov -c:v libxvid -pass 1 -an -f rawvideo -y NUL
  333. ffmpeg -i foo.mov -c:v libxvid -pass 1 -an -f rawvideo -y /dev/null
  334. @end example
  335. @item -passlogfile @var{prefix} (@emph{global})
  336. Set two-pass log file name prefix to @var{prefix}, the default file name
  337. prefix is ``ffmpeg2pass''. The complete file name will be
  338. @file{PREFIX-N.log}, where N is a number specific to the output
  339. stream
  340. @item -vlang @var{code}
  341. Set the ISO 639 language code (3 letters) of the current video stream.
  342. @item -vf @var{filter_graph} (@emph{output})
  343. @var{filter_graph} is a description of the filter graph to apply to
  344. the input video.
  345. Use the option "-filters" to show all the available filters (including
  346. also sources and sinks). This is an alias for @code{-filter:v}.
  347. @end table
  348. @section Advanced Video Options
  349. @table @option
  350. @item -pix_fmt[:@var{stream_specifier}] @var{format} (@emph{input/output,per-stream})
  351. Set pixel format. Use @code{-pix_fmts} to show all the supported
  352. pixel formats.
  353. @item -sws_flags @var{flags} (@emph{input/output})
  354. Set SwScaler flags.
  355. @item -g @var{gop_size}
  356. Set the group of pictures size.
  357. @item -intra
  358. deprecated, use -g 1
  359. @item -vdt @var{n}
  360. Discard threshold.
  361. @item -qmin @var{q}
  362. minimum video quantizer scale (VBR)
  363. @item -qmax @var{q}
  364. maximum video quantizer scale (VBR)
  365. @item -qdiff @var{q}
  366. maximum difference between the quantizer scales (VBR)
  367. @item -qblur @var{blur}
  368. video quantizer scale blur (VBR) (range 0.0 - 1.0)
  369. @item -qcomp @var{compression}
  370. video quantizer scale compression (VBR) (default 0.5).
  371. Constant of ratecontrol equation. Recommended range for default rc_eq: 0.0-1.0
  372. @item -lmin @var{lambda}
  373. minimum video lagrange factor (VBR)
  374. @item -lmax @var{lambda}
  375. max video lagrange factor (VBR)
  376. @item -mblmin @var{lambda}
  377. minimum macroblock quantizer scale (VBR)
  378. @item -mblmax @var{lambda}
  379. maximum macroblock quantizer scale (VBR)
  380. These four options (lmin, lmax, mblmin, mblmax) use 'lambda' units,
  381. but you may use the QP2LAMBDA constant to easily convert from 'q' units:
  382. @example
  383. ffmpeg -i src.ext -lmax 21*QP2LAMBDA dst.ext
  384. @end example
  385. @item -rc_init_cplx @var{complexity}
  386. initial complexity for single pass encoding
  387. @item -b_qfactor @var{factor}
  388. qp factor between P- and B-frames
  389. @item -i_qfactor @var{factor}
  390. qp factor between P- and I-frames
  391. @item -b_qoffset @var{offset}
  392. qp offset between P- and B-frames
  393. @item -i_qoffset @var{offset}
  394. qp offset between P- and I-frames
  395. @item -rc_eq @var{equation}
  396. Set rate control equation (see section "Expression Evaluation")
  397. (default = @code{tex^qComp}).
  398. When computing the rate control equation expression, besides the
  399. standard functions defined in the section "Expression Evaluation", the
  400. following functions are available:
  401. @table @var
  402. @item bits2qp(bits)
  403. @item qp2bits(qp)
  404. @end table
  405. and the following constants are available:
  406. @table @var
  407. @item iTex
  408. @item pTex
  409. @item tex
  410. @item mv
  411. @item fCode
  412. @item iCount
  413. @item mcVar
  414. @item var
  415. @item isI
  416. @item isP
  417. @item isB
  418. @item avgQP
  419. @item qComp
  420. @item avgIITex
  421. @item avgPITex
  422. @item avgPPTex
  423. @item avgBPTex
  424. @item avgTex
  425. @end table
  426. @item -rc_override[:@var{stream_specifier}] @var{override} (@emph{output,per-stream})
  427. Rate control override for specific intervals, formatted as "int,int,int"
  428. list separated with slashes. Two first values are the beginning and
  429. end frame numbers, last one is quantizer to use if positive, or quality
  430. factor if negative.
  431. @item -me_method @var{method}
  432. Set motion estimation method to @var{method}.
  433. Available methods are (from lowest to best quality):
  434. @table @samp
  435. @item zero
  436. Try just the (0, 0) vector.
  437. @item phods
  438. @item log
  439. @item x1
  440. @item hex
  441. @item umh
  442. @item epzs
  443. (default method)
  444. @item full
  445. exhaustive search (slow and marginally better than epzs)
  446. @end table
  447. @item -dct_algo @var{algo}
  448. Set DCT algorithm to @var{algo}. Available values are:
  449. @table @samp
  450. @item 0
  451. FF_DCT_AUTO (default)
  452. @item 1
  453. FF_DCT_FASTINT
  454. @item 2
  455. FF_DCT_INT
  456. @item 3
  457. FF_DCT_MMX
  458. @item 4
  459. FF_DCT_MLIB
  460. @item 5
  461. FF_DCT_ALTIVEC
  462. @end table
  463. @item -idct_algo @var{algo}
  464. Set IDCT algorithm to @var{algo}. Available values are:
  465. @table @samp
  466. @item 0
  467. FF_IDCT_AUTO (default)
  468. @item 1
  469. FF_IDCT_INT
  470. @item 2
  471. FF_IDCT_SIMPLE
  472. @item 3
  473. FF_IDCT_SIMPLEMMX
  474. @item 4
  475. FF_IDCT_LIBMPEG2MMX
  476. @item 5
  477. FF_IDCT_PS2
  478. @item 6
  479. FF_IDCT_MLIB
  480. @item 7
  481. FF_IDCT_ARM
  482. @item 8
  483. FF_IDCT_ALTIVEC
  484. @item 9
  485. FF_IDCT_SH4
  486. @item 10
  487. FF_IDCT_SIMPLEARM
  488. @end table
  489. @item -er @var{n}
  490. Set error resilience to @var{n}.
  491. @table @samp
  492. @item 1
  493. FF_ER_CAREFUL (default)
  494. @item 2
  495. FF_ER_COMPLIANT
  496. @item 3
  497. FF_ER_AGGRESSIVE
  498. @item 4
  499. FF_ER_VERY_AGGRESSIVE
  500. @end table
  501. @item -ec @var{bit_mask}
  502. Set error concealment to @var{bit_mask}. @var{bit_mask} is a bit mask of
  503. the following values:
  504. @table @samp
  505. @item 1
  506. FF_EC_GUESS_MVS (default = enabled)
  507. @item 2
  508. FF_EC_DEBLOCK (default = enabled)
  509. @end table
  510. @item -bf @var{frames}
  511. Use 'frames' B-frames (supported for MPEG-1, MPEG-2 and MPEG-4).
  512. @item -mbd @var{mode}
  513. macroblock decision
  514. @table @samp
  515. @item 0
  516. FF_MB_DECISION_SIMPLE: Use mb_cmp (cannot change it yet in ffmpeg).
  517. @item 1
  518. FF_MB_DECISION_BITS: Choose the one which needs the fewest bits.
  519. @item 2
  520. FF_MB_DECISION_RD: rate distortion
  521. @end table
  522. @item -4mv
  523. Use four motion vector by macroblock (MPEG-4 only).
  524. @item -part
  525. Use data partitioning (MPEG-4 only).
  526. @item -bug @var{param}
  527. Work around encoder bugs that are not auto-detected.
  528. @item -strict @var{strictness}
  529. How strictly to follow the standards.
  530. @item -aic
  531. Enable Advanced intra coding (h263+).
  532. @item -umv
  533. Enable Unlimited Motion Vector (h263+)
  534. @item -deinterlace
  535. Deinterlace pictures.
  536. @item -ilme
  537. Force interlacing support in encoder (MPEG-2 and MPEG-4 only).
  538. Use this option if your input file is interlaced and you want
  539. to keep the interlaced format for minimum losses.
  540. The alternative is to deinterlace the input stream with
  541. @option{-deinterlace}, but deinterlacing introduces losses.
  542. @item -psnr
  543. Calculate PSNR of compressed frames.
  544. @item -vstats
  545. Dump video coding statistics to @file{vstats_HHMMSS.log}.
  546. @item -vstats_file @var{file}
  547. Dump video coding statistics to @var{file}.
  548. @item -top[:@var{stream_specifier}] @var{n} (@emph{output,per-stream})
  549. top=1/bottom=0/auto=-1 field first
  550. @item -dc @var{precision}
  551. Intra_dc_precision.
  552. @item -vtag @var{fourcc/tag} (@emph{output})
  553. Force video tag/fourcc. This is an alias for @code{-tag:v}.
  554. @item -qphist (@emph{global})
  555. Show QP histogram
  556. @item -vbsf @var{bitstream_filter}
  557. Deprecated see -bsf
  558. @item -force_key_frames[:@var{stream_specifier}] @var{time}[,@var{time}...] (@emph{output,per-stream})
  559. Force key frames at the specified timestamps, more precisely at the first
  560. frames after each specified time.
  561. This option can be useful to ensure that a seek point is present at a
  562. chapter mark or any other designated place in the output file.
  563. The timestamps must be specified in ascending order.
  564. @item -copyinkf[:@var{stream_specifier}] (@emph{output,per-stream})
  565. When doing stream copy, copy also non-key frames found at the
  566. beginning.
  567. @end table
  568. @section Audio Options
  569. @table @option
  570. @item -aframes @var{number} (@emph{output})
  571. Set the number of audio frames to record. This is an alias for @code{-frames:a}.
  572. @item -ar[:@var{stream_specifier}] @var{freq} (@emph{input/output,per-stream})
  573. Set the audio sampling frequency. For output streams it is set by
  574. default to the frequency of the corresponding input stream. For input
  575. streams this option only makes sense for audio grabbing devices and raw
  576. demuxers and is mapped to the corresponding demuxer options.
  577. @item -aq @var{q} (@emph{output})
  578. Set the audio quality (codec-specific, VBR). This is an alias for -q:a.
  579. @item -ac[:@var{stream_specifier}] @var{channels} (@emph{input/output,per-stream})
  580. Set the number of audio channels. For output streams it is set by
  581. default to the number of input audio channels. For input streams
  582. this option only makes sense for audio grabbing devices and raw demuxers
  583. and is mapped to the corresponding demuxer options.
  584. @item -an (@emph{output})
  585. Disable audio recording.
  586. @item -acodec @var{codec} (@emph{input/output})
  587. Set the audio codec. This is an alias for @code{-codec:a}.
  588. @item -sample_fmt[:@var{stream_specifier}] @var{sample_fmt} (@emph{output,per-stream})
  589. Set the audio sample format. Use @code{-sample_fmts} to get a list
  590. of supported sample formats.
  591. @end table
  592. @section Advanced Audio options:
  593. @table @option
  594. @item -atag @var{fourcc/tag} (@emph{output})
  595. Force audio tag/fourcc. This is an alias for @code{-tag:a}.
  596. @item -audio_service_type @var{type}
  597. Set the type of service that the audio stream contains.
  598. @table @option
  599. @item ma
  600. Main Audio Service (default)
  601. @item ef
  602. Effects
  603. @item vi
  604. Visually Impaired
  605. @item hi
  606. Hearing Impaired
  607. @item di
  608. Dialogue
  609. @item co
  610. Commentary
  611. @item em
  612. Emergency
  613. @item vo
  614. Voice Over
  615. @item ka
  616. Karaoke
  617. @end table
  618. @item -absf @var{bitstream_filter}
  619. Deprecated, see -bsf
  620. @end table
  621. @section Subtitle options:
  622. @table @option
  623. @item -slang @var{code}
  624. Set the ISO 639 language code (3 letters) of the current subtitle stream.
  625. @item -scodec @var{codec} (@emph{input/output})
  626. Set the subtitle codec. This is an alias for @code{-codec:s}.
  627. @item -sn (@emph{output})
  628. Disable subtitle recording.
  629. @item -sbsf @var{bitstream_filter}
  630. Deprecated, see -bsf
  631. @end table
  632. @section Audio/Video grab options
  633. @table @option
  634. @item -isync (@emph{global})
  635. Synchronize read on input.
  636. @end table
  637. @section Advanced options
  638. @table @option
  639. @item -map [-]@var{input_file_id}[:@var{stream_specifier}][,@var{sync_file_id}[:@var{stream_specifier}]] (@emph{output})
  640. Designate one or more input streams as a source for the output file. Each input
  641. stream is identified by the input file index @var{input_file_id} and
  642. the input stream index @var{input_stream_id} within the input
  643. file. Both indices start at 0. If specified,
  644. @var{sync_file_id}:@var{stream_specifier} sets which input stream
  645. is used as a presentation sync reference.
  646. The first @code{-map} option on the command line specifies the
  647. source for output stream 0, the second @code{-map} option specifies
  648. the source for output stream 1, etc.
  649. A @code{-} character before the stream identifier creates a "negative" mapping.
  650. It disables matching streams from already created mappings.
  651. For example, to map ALL streams from the first input file to output
  652. @example
  653. ffmpeg -i INPUT -map 0 output
  654. @end example
  655. For example, if you have two audio streams in the first input file,
  656. these streams are identified by "0:0" and "0:1". You can use
  657. @code{-map} to select which streams to place in an output file. For
  658. example:
  659. @example
  660. ffmpeg -i INPUT -map 0:1 out.wav
  661. @end example
  662. will map the input stream in @file{INPUT} identified by "0:1" to
  663. the (single) output stream in @file{out.wav}.
  664. For example, to select the stream with index 2 from input file
  665. @file{a.mov} (specified by the identifier "0:2"), and stream with
  666. index 6 from input @file{b.mov} (specified by the identifier "1:6"),
  667. and copy them to the output file @file{out.mov}:
  668. @example
  669. ffmpeg -i a.mov -i b.mov -c copy -map 0:2 -map 1:6 out.mov
  670. @end example
  671. To select all video and the third audio stream from an input file:
  672. @example
  673. ffmpeg -i INPUT -map 0:v -map 0:a:2 OUTPUT
  674. @end example
  675. To map all the streams except the second audio, use negative mappings
  676. @example
  677. ffmpeg -i INPUT -map 0 -map -0:a:1 OUTPUT
  678. @end example
  679. Note that using this option disables the default mappings for this output file.
  680. @item -map_channel [@var{input_file_id}.@var{stream_specifier}.@var{channel_id}|-1][:@var{output_file_id}.@var{stream_specifier}]
  681. Map an audio channel from a given input to an output. If
  682. @var{output_file_id}.@var{stream_specifier} are not set, the audio channel will
  683. be mapped on all the audio streams.
  684. Using "-1" instead of
  685. @var{input_file_id}.@var{stream_specifier}.@var{channel_id} will map a muted
  686. channel.
  687. For example, assuming @var{INPUT} is a stereo audio file, you can switch the
  688. two audio channels with the following command:
  689. @example
  690. ffmpeg -i INPUT -map_channel 0.0.1 -map_channel 0.0.0 OUTPUT
  691. @end example
  692. If you want to mute the first channel and keep the second:
  693. @example
  694. ffmpeg -i INPUT -map_channel -1 -map_channel 0.0.1 OUTPUT
  695. @end example
  696. The order of the "-map_channel" option specifies the order of the channels in
  697. the output stream. The output channel layout is guessed from the number of
  698. channels mapped (mono if one "-map_channel", stereo if two, etc.). Using "-ac"
  699. in combination of "-map_channel" makes the channel gain levels to be updated if
  700. channel layouts don't match (for instance two "-map_channel" options and "-ac
  701. 6").
  702. You can also extract each channel of an @var{INPUT} to specific outputs; the
  703. following command extract each channel of the audio stream (file 0, stream 0)
  704. to the respective @var{OUTPUT_CH0} and @var{OUTPUT_CH1}:
  705. @example
  706. ffmpeg -i INPUT -map_channel 0.0.0 OUTPUT_CH0 -map_channel 0.0.1 OUTPUT_CH1
  707. @end example
  708. The following example split the channels of a stereo input into streams:
  709. @example
  710. ffmpeg -i stereo.wav -map 0:0 -map 0:0 -map_channel 0.0.0:0.0 -map_channel 0.0.1:0.1 -y out.ogg
  711. @end example
  712. Note that currently each output stream can only contain channels from a single
  713. input stream; you can't for example use "-map_channel" to pick multiple input
  714. audio channels contained in different streams (from the same or different files)
  715. and merge them into a single output stream. It is therefore not currently
  716. possible, for example, to turn two separate mono streams into a single stereo
  717. stream. However spliting a stereo stream into two single channel mono streams
  718. is possible.
  719. @item -map_metadata[:@var{metadata_spec_out}] @var{infile}[:@var{metadata_spec_in}] (@emph{output,per-metadata})
  720. Set metadata information of the next output file from @var{infile}. Note that
  721. those are file indices (zero-based), not filenames.
  722. Optional @var{metadata_spec_in/out} parameters specify, which metadata to copy.
  723. A metadata specifier can have the following forms:
  724. @table @option
  725. @item @var{g}
  726. global metadata, i.e. metadata that applies to the whole file
  727. @item @var{s}[:@var{stream_spec}]
  728. per-stream metadata. @var{stream_spec} is a stream specifier as described
  729. in the @ref{Stream specifiers} chapter. In an input metadata specifier, the first
  730. matching stream is copied from. In an output metadata specifier, all matching
  731. streams are copied to.
  732. @item @var{c}:@var{chapter_index}
  733. per-chapter metadata. @var{chapter_index} is the zero-based chapter index.
  734. @item @var{p}:@var{program_index}
  735. per-program metadata. @var{program_index} is the zero-based program index.
  736. @end table
  737. If metadata specifier is omitted, it defaults to global.
  738. By default, global metadata is copied from the first input file,
  739. per-stream and per-chapter metadata is copied along with streams/chapters. These
  740. default mappings are disabled by creating any mapping of the relevant type. A negative
  741. file index can be used to create a dummy mapping that just disables automatic copying.
  742. For example to copy metadata from the first stream of the input file to global metadata
  743. of the output file:
  744. @example
  745. ffmpeg -i in.ogg -map_metadata 0:s:0 out.mp3
  746. @end example
  747. To do the reverse, i.e. copy global metadata to all audio streams:
  748. @example
  749. ffmpeg -i in.mkv -map_metadata:s:a 0:g out.mkv
  750. @end example
  751. Note that simple @code{0} would work as well in this example, since global
  752. metadata is assumed by default.
  753. @item -map_chapters @var{input_file_index} (@emph{output})
  754. Copy chapters from input file with index @var{input_file_index} to the next
  755. output file. If no chapter mapping is specified, then chapters are copied from
  756. the first input file with at least one chapter. Use a negative file index to
  757. disable any chapter copying.
  758. @item -debug @var{category}
  759. Print specific debug info.
  760. @var{category} is a number or a string containing one of the following values:
  761. @table @samp
  762. @item bitstream
  763. @item buffers
  764. picture buffer allocations
  765. @item bugs
  766. @item dct_coeff
  767. @item er
  768. error recognition
  769. @item mb_type
  770. macroblock (MB) type
  771. @item mmco
  772. memory management control operations (H.264)
  773. @item mv
  774. motion vector
  775. @item pict
  776. picture info
  777. @item pts
  778. @item qp
  779. per-block quantization parameter (QP)
  780. @item rc
  781. rate control
  782. @item skip
  783. @item startcode
  784. @item thread_ops
  785. threading operations
  786. @item vis_mb_type
  787. visualize block types
  788. @item vis_qp
  789. visualize quantization parameter (QP), lower QP are tinted greener
  790. @end table
  791. @item -benchmark (@emph{global})
  792. Show benchmarking information at the end of an encode.
  793. Shows CPU time used and maximum memory consumption.
  794. Maximum memory consumption is not supported on all systems,
  795. it will usually display as 0 if not supported.
  796. @item -timelimit @var{duration} (@emph{global})
  797. Exit after ffmpeg has been running for @var{duration} seconds.
  798. @item -dump (@emph{global})
  799. Dump each input packet to stderr.
  800. @item -hex (@emph{global})
  801. When dumping packets, also dump the payload.
  802. @item -ps @var{size}
  803. Set RTP payload size in bytes.
  804. @item -re (@emph{input})
  805. Read input at native frame rate. Mainly used to simulate a grab device.
  806. @item -loop_input
  807. Loop over the input stream. Currently it works only for image
  808. streams. This option is used for automatic FFserver testing.
  809. This option is deprecated, use -loop 1.
  810. @item -loop_output @var{number_of_times}
  811. Repeatedly loop output for formats that support looping such as animated GIF
  812. (0 will loop the output infinitely).
  813. This option is deprecated, use -loop.
  814. @item -threads @var{count}
  815. Thread count.
  816. @item -vsync @var{parameter}
  817. Video sync method.
  818. For compatibility reasons old values can be specified as numbers.
  819. Newly added values will have to be specified as strings always.
  820. @table @option
  821. @item 0, passthrough
  822. Each frame is passed with its timestamp from the demuxer to the muxer.
  823. @item 1, cfr
  824. Frames will be duplicated and dropped to achieve exactly the requested
  825. constant framerate.
  826. @item 2, vfr
  827. Frames are passed through with their timestamp or dropped so as to
  828. prevent 2 frames from having the same timestamp.
  829. @item drop
  830. As passthrough but destroys all timestamps, making the muxer generate
  831. fresh timestamps based on frame-rate.
  832. @item -1, auto
  833. Chooses between 1 and 2 depending on muxer capabilities. This is the
  834. default method.
  835. @end table
  836. With -map you can select from which stream the timestamps should be
  837. taken. You can leave either video or audio unchanged and sync the
  838. remaining stream(s) to the unchanged one.
  839. @item -async @var{samples_per_second}
  840. Audio sync method. "Stretches/squeezes" the audio stream to match the timestamps,
  841. the parameter is the maximum samples per second by which the audio is changed.
  842. -async 1 is a special case where only the start of the audio stream is corrected
  843. without any later correction.
  844. @item -copyts
  845. Copy timestamps from input to output.
  846. @item -copytb
  847. Copy input stream time base from input to output when stream copying.
  848. @item -shortest
  849. Finish encoding when the shortest input stream ends.
  850. @item -dts_delta_threshold
  851. Timestamp discontinuity delta threshold.
  852. @item -muxdelay @var{seconds} (@emph{input})
  853. Set the maximum demux-decode delay.
  854. @item -muxpreload @var{seconds} (@emph{input})
  855. Set the initial demux-decode delay.
  856. @item -streamid @var{output-stream-index}:@var{new-value} (@emph{output})
  857. Assign a new stream-id value to an output stream. This option should be
  858. specified prior to the output filename to which it applies.
  859. For the situation where multiple output files exist, a streamid
  860. may be reassigned to a different value.
  861. For example, to set the stream 0 PID to 33 and the stream 1 PID to 36 for
  862. an output mpegts file:
  863. @example
  864. ffmpeg -i infile -streamid 0:33 -streamid 1:36 out.ts
  865. @end example
  866. @item -bsf[:@var{stream_specifier}] @var{bitstream_filters} (@emph{output,per-stream})
  867. Set bitstream filters for matching streams. @var{bistream_filters} is
  868. a comma-separated list of bitstream filters. Use the @code{-bsfs} option
  869. to get the list of bitstream filters.
  870. @example
  871. ffmpeg -i h264.mp4 -c:v copy -vbsf h264_mp4toannexb -an out.h264
  872. @end example
  873. @example
  874. ffmpeg -i file.mov -an -vn -sbsf mov2textsub -c:s copy -f rawvideo sub.txt
  875. @end example
  876. @item -tag[:@var{stream_specifier}] @var{codec_tag} (@emph{per-stream})
  877. Force a tag/fourcc for matching streams.
  878. @item -timecode @var{hh}:@var{mm}:@var{ss}SEP@var{ff}
  879. Specify Timecode for writing. @var{SEP} is ':' for non drop timecode and ';'
  880. (or '.') for drop.
  881. @example
  882. ffmpeg -i input.mpg -timecode 01:02:03.04 -r 30000/1001 -s ntsc output.mpg
  883. @end example
  884. @end table
  885. @section Preset files
  886. A preset file contains a sequence of @var{option}=@var{value} pairs,
  887. one for each line, specifying a sequence of options which would be
  888. awkward to specify on the command line. Lines starting with the hash
  889. ('#') character are ignored and are used to provide comments. Check
  890. the @file{presets} directory in the FFmpeg source tree for examples.
  891. Preset files are specified with the @code{vpre}, @code{apre},
  892. @code{spre}, and @code{fpre} options. The @code{fpre} option takes the
  893. filename of the preset instead of a preset name as input and can be
  894. used for any kind of codec. For the @code{vpre}, @code{apre}, and
  895. @code{spre} options, the options specified in a preset file are
  896. applied to the currently selected codec of the same type as the preset
  897. option.
  898. The argument passed to the @code{vpre}, @code{apre}, and @code{spre}
  899. preset options identifies the preset file to use according to the
  900. following rules:
  901. First ffmpeg searches for a file named @var{arg}.ffpreset in the
  902. directories @file{$FFMPEG_DATADIR} (if set), and @file{$HOME/.ffmpeg}, and in
  903. the datadir defined at configuration time (usually @file{PREFIX/share/ffmpeg})
  904. or in a @file{ffpresets} folder along the executable on win32,
  905. in that order. For example, if the argument is @code{libx264-max}, it will
  906. search for the file @file{libx264-max.ffpreset}.
  907. If no such file is found, then ffmpeg will search for a file named
  908. @var{codec_name}-@var{arg}.ffpreset in the above-mentioned
  909. directories, where @var{codec_name} is the name of the codec to which
  910. the preset file options will be applied. For example, if you select
  911. the video codec with @code{-vcodec libx264} and use @code{-vpre max},
  912. then it will search for the file @file{libx264-max.ffpreset}.
  913. @c man end OPTIONS
  914. @chapter Tips
  915. @c man begin TIPS
  916. @itemize
  917. @item
  918. For streaming at very low bitrate application, use a low frame rate
  919. and a small GOP size. This is especially true for RealVideo where
  920. the Linux player does not seem to be very fast, so it can miss
  921. frames. An example is:
  922. @example
  923. ffmpeg -g 3 -r 3 -t 10 -b:v 50k -s qcif -f rv10 /tmp/b.rm
  924. @end example
  925. @item
  926. The parameter 'q' which is displayed while encoding is the current
  927. quantizer. The value 1 indicates that a very good quality could
  928. be achieved. The value 31 indicates the worst quality. If q=31 appears
  929. too often, it means that the encoder cannot compress enough to meet
  930. your bitrate. You must either increase the bitrate, decrease the
  931. frame rate or decrease the frame size.
  932. @item
  933. If your computer is not fast enough, you can speed up the
  934. compression at the expense of the compression ratio. You can use
  935. '-me zero' to speed up motion estimation, and '-intra' to disable
  936. motion estimation completely (you have only I-frames, which means it
  937. is about as good as JPEG compression).
  938. @item
  939. To have very low audio bitrates, reduce the sampling frequency
  940. (down to 22050 Hz for MPEG audio, 22050 or 11025 for AC-3).
  941. @item
  942. To have a constant quality (but a variable bitrate), use the option
  943. '-qscale n' when 'n' is between 1 (excellent quality) and 31 (worst
  944. quality).
  945. @end itemize
  946. @c man end TIPS
  947. @chapter Examples
  948. @c man begin EXAMPLES
  949. @section Preset files
  950. A preset file contains a sequence of @var{option=value} pairs, one for
  951. each line, specifying a sequence of options which can be specified also on
  952. the command line. Lines starting with the hash ('#') character are ignored and
  953. are used to provide comments. Empty lines are also ignored. Check the
  954. @file{presets} directory in the FFmpeg source tree for examples.
  955. Preset files are specified with the @code{pre} option, this option takes a
  956. preset name as input. FFmpeg searches for a file named @var{preset_name}.avpreset in
  957. the directories @file{$AVCONV_DATADIR} (if set), and @file{$HOME/.ffmpeg}, and in
  958. the data directory defined at configuration time (usually @file{$PREFIX/share/ffmpeg})
  959. in that order. For example, if the argument is @code{libx264-max}, it will
  960. search for the file @file{libx264-max.avpreset}.
  961. @section Video and Audio grabbing
  962. If you specify the input format and device then ffmpeg can grab video
  963. and audio directly.
  964. @example
  965. ffmpeg -f oss -i /dev/dsp -f video4linux2 -i /dev/video0 /tmp/out.mpg
  966. @end example
  967. Or with an ALSA audio source (mono input, card id 1) instead of OSS:
  968. @example
  969. ffmpeg -f alsa -ac 1 -i hw:1 -f video4linux2 -i /dev/video0 /tmp/out.mpg
  970. @end example
  971. Note that you must activate the right video source and channel before
  972. launching ffmpeg with any TV viewer such as
  973. @uref{http://linux.bytesex.org/xawtv/, xawtv} by Gerd Knorr. You also
  974. have to set the audio recording levels correctly with a
  975. standard mixer.
  976. @section X11 grabbing
  977. Grab the X11 display with ffmpeg via
  978. @example
  979. ffmpeg -f x11grab -s cif -r 25 -i :0.0 /tmp/out.mpg
  980. @end example
  981. 0.0 is display.screen number of your X11 server, same as
  982. the DISPLAY environment variable.
  983. @example
  984. ffmpeg -f x11grab -s cif -r 25 -i :0.0+10,20 /tmp/out.mpg
  985. @end example
  986. 0.0 is display.screen number of your X11 server, same as the DISPLAY environment
  987. variable. 10 is the x-offset and 20 the y-offset for the grabbing.
  988. @section Video and Audio file format conversion
  989. Any supported file format and protocol can serve as input to ffmpeg:
  990. Examples:
  991. @itemize
  992. @item
  993. You can use YUV files as input:
  994. @example
  995. ffmpeg -i /tmp/test%d.Y /tmp/out.mpg
  996. @end example
  997. It will use the files:
  998. @example
  999. /tmp/test0.Y, /tmp/test0.U, /tmp/test0.V,
  1000. /tmp/test1.Y, /tmp/test1.U, /tmp/test1.V, etc...
  1001. @end example
  1002. The Y files use twice the resolution of the U and V files. They are
  1003. raw files, without header. They can be generated by all decent video
  1004. decoders. You must specify the size of the image with the @option{-s} option
  1005. if ffmpeg cannot guess it.
  1006. @item
  1007. You can input from a raw YUV420P file:
  1008. @example
  1009. ffmpeg -i /tmp/test.yuv /tmp/out.avi
  1010. @end example
  1011. test.yuv is a file containing raw YUV planar data. Each frame is composed
  1012. of the Y plane followed by the U and V planes at half vertical and
  1013. horizontal resolution.
  1014. @item
  1015. You can output to a raw YUV420P file:
  1016. @example
  1017. ffmpeg -i mydivx.avi hugefile.yuv
  1018. @end example
  1019. @item
  1020. You can set several input files and output files:
  1021. @example
  1022. ffmpeg -i /tmp/a.wav -s 640x480 -i /tmp/a.yuv /tmp/a.mpg
  1023. @end example
  1024. Converts the audio file a.wav and the raw YUV video file a.yuv
  1025. to MPEG file a.mpg.
  1026. @item
  1027. You can also do audio and video conversions at the same time:
  1028. @example
  1029. ffmpeg -i /tmp/a.wav -ar 22050 /tmp/a.mp2
  1030. @end example
  1031. Converts a.wav to MPEG audio at 22050 Hz sample rate.
  1032. @item
  1033. You can encode to several formats at the same time and define a
  1034. mapping from input stream to output streams:
  1035. @example
  1036. ffmpeg -i /tmp/a.wav -map 0:a -b:a 64k /tmp/a.mp2 -map 0:a -b:a 128k /tmp/b.mp2
  1037. @end example
  1038. Converts a.wav to a.mp2 at 64 kbits and to b.mp2 at 128 kbits. '-map
  1039. file:index' specifies which input stream is used for each output
  1040. stream, in the order of the definition of output streams.
  1041. @item
  1042. You can transcode decrypted VOBs:
  1043. @example
  1044. ffmpeg -i snatch_1.vob -f avi -c:v mpeg4 -b:v 800k -g 300 -bf 2 -c:a libmp3lame -b:a 128k snatch.avi
  1045. @end example
  1046. This is a typical DVD ripping example; the input is a VOB file, the
  1047. output an AVI file with MPEG-4 video and MP3 audio. Note that in this
  1048. command we use B-frames so the MPEG-4 stream is DivX5 compatible, and
  1049. GOP size is 300 which means one intra frame every 10 seconds for 29.97fps
  1050. input video. Furthermore, the audio stream is MP3-encoded so you need
  1051. to enable LAME support by passing @code{--enable-libmp3lame} to configure.
  1052. The mapping is particularly useful for DVD transcoding
  1053. to get the desired audio language.
  1054. NOTE: To see the supported input formats, use @code{ffmpeg -formats}.
  1055. @item
  1056. You can extract images from a video, or create a video from many images:
  1057. For extracting images from a video:
  1058. @example
  1059. ffmpeg -i foo.avi -r 1 -s WxH -f image2 foo-%03d.jpeg
  1060. @end example
  1061. This will extract one video frame per second from the video and will
  1062. output them in files named @file{foo-001.jpeg}, @file{foo-002.jpeg},
  1063. etc. Images will be rescaled to fit the new WxH values.
  1064. If you want to extract just a limited number of frames, you can use the
  1065. above command in combination with the -vframes or -t option, or in
  1066. combination with -ss to start extracting from a certain point in time.
  1067. For creating a video from many images:
  1068. @example
  1069. ffmpeg -f image2 -i foo-%03d.jpeg -r 12 -s WxH foo.avi
  1070. @end example
  1071. The syntax @code{foo-%03d.jpeg} specifies to use a decimal number
  1072. composed of three digits padded with zeroes to express the sequence
  1073. number. It is the same syntax supported by the C printf function, but
  1074. only formats accepting a normal integer are suitable.
  1075. @item
  1076. You can put many streams of the same type in the output:
  1077. @example
  1078. ffmpeg -i test1.avi -i test2.avi -map 0.3 -map 0.2 -map 0.1 -map 0.0 -c copy test12.nut
  1079. @end example
  1080. The resulting output file @file{test12.avi} will contain first four streams from
  1081. the input file in reverse order.
  1082. @end itemize
  1083. @c man end EXAMPLES
  1084. @include eval.texi
  1085. @include decoders.texi
  1086. @include encoders.texi
  1087. @include demuxers.texi
  1088. @include muxers.texi
  1089. @include indevs.texi
  1090. @include outdevs.texi
  1091. @include protocols.texi
  1092. @include bitstream_filters.texi
  1093. @include filters.texi
  1094. @include metadata.texi
  1095. @ignore
  1096. @setfilename ffmpeg
  1097. @settitle ffmpeg video converter
  1098. @c man begin SEEALSO
  1099. ffplay(1), ffprobe(1), ffserver(1) and the FFmpeg HTML documentation
  1100. @c man end
  1101. @c man begin AUTHORS
  1102. See git history
  1103. @c man end
  1104. @end ignore
  1105. @bye