pilus87

FFMPEG command line options

Mar 9th, 2011
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.42 KB | None | 0 0
  1. If in any case this list is deprecated or become invalid,
  2. go to: http://www.ffmpeg.org/ffmpeg-doc.html,
  3. search for :
  4. - Main options
  5. - Video options
  6. - Advanced Video options
  7. - Audio options
  8. - Advanced Audio options
  9. - Audio/Video grab options
  10. - Advanced options
  11. - Or any other options that's not available at the time of writing
  12.  
  13. and modify this pastebin entry, then notify me of such notifications if you may :)
  14.  
  15.  
  16. Main options:
  17. -L                  show license
  18. -h                  show help
  19. -version            show version
  20. -formats            show available formats, codecs, protocols, ...
  21. -f fmt              force format
  22. -img img_fmt        force image format
  23. -i filename         input file name
  24. -y                  overwrite output files
  25. -t duration         set the recording time
  26. -fs limit_size      set the limit file size
  27. -ss time_off        set the start time offset
  28. -itsoffset time_off  set the input ts offset
  29. -title string       set the title
  30. -timestamp time     set the timestamp
  31. -author string      set the author
  32. -copyright string   set the copyright
  33. -comment string     set the comment
  34. -v verbose          control amount of logging
  35. -target type        specify target file type ("vcd", "svcd", "dvd", "dv", "pal-vcd", "ntsc-svcd", ...)
  36. -dframes number     set the number of data frames to record
  37. -hq                 activate high quality settings
  38. -scodec codec       force subtitle codec ('copy' to copy stream)
  39. -newsubtitle        add a new subtitle stream to the current output stream
  40. -slang code         set the ISO 639 language code (3 letters) of the current subtitle stream
  41.  
  42. Video options:
  43. -b bitrate          set video bitrate (in kbit/s)
  44. -vframes number     set the number of video frames to record
  45. -r rate             set frame rate (Hz value, fraction or abbreviation)
  46. -s size             set frame size (WxH or abbreviation)
  47. -aspect aspect      set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
  48. -fixaspect          fix aspect ratio
  49. -croptop size       set top crop band size (in pixels)
  50. -cropbottom size    set bottom crop band size (in pixels)
  51. -cropleft size      set left crop band size (in pixels)
  52. -cropright size     set right crop band size (in pixels)
  53. -padtop size        set top pad band size (in pixels)
  54. -padbottom size     set bottom pad band size (in pixels)
  55. -padleft size       set left pad band size (in pixels)
  56. -padright size      set right pad band size (in pixels)
  57. -padcolor color     set color of pad bands (Hex 000000 thru FFFFFF)
  58. -vn                 disable video
  59. -bt tolerance       set video bitrate tolerance (in kbit/s)
  60. -maxrate bitrate    set max video bitrate tolerance (in kbit/s)
  61. -minrate bitrate    set min video bitrate tolerance (in kbit/s)
  62. -bufsize size       set ratecontrol buffer size (in kByte)
  63. -vcodec codec       force video codec ('copy' to copy stream)
  64. -sameq              use same video quality as source (implies VBR)
  65. -pass n             select the pass number (1 or 2)
  66. -passlogfile file   select two pass log file name
  67. -newvideo           add a new video stream to the current output stream
  68.  
  69. Advanced Video options:
  70. -pix_fmt format     set pixel format
  71. -g gop_size         set the group of picture size
  72. -intra              use only intra frames
  73. -vdt n              discard threshold
  74. -qscale q           use fixed video quantiser scale (VBR)
  75. -qmin q             min video quantiser scale (VBR)
  76. -qmax q             max video quantiser scale (VBR)
  77. -lmin lambda        min video lagrange factor (VBR)
  78. -lmax lambda        max video lagrange factor (VBR)
  79. -mblmin q           min macroblock quantiser scale (VBR)
  80. -mblmax q           max macroblock quantiser scale (VBR)
  81. -qdiff q            max difference between the quantiser scale (VBR)
  82. -qblur blur         video quantiser scale blur (VBR)
  83. -qsquish squish     how to keep quantiser between qmin and qmax (0 = clip, 1 = use differentiable function)
  84. -qcomp compression  video quantiser scale compression (VBR)
  85. -rc_init_cplx complexity  initial complexity for 1-pass encoding
  86. -b_qfactor factor   qp factor between p and b frames
  87. -i_qfactor factor   qp factor between p and i frames
  88. -b_qoffset offset   qp offset between p and b frames
  89. -i_qoffset offset   qp offset between p and i frames
  90. -ibias bias         intra quant bias
  91. -pbias bias         inter quant bias
  92. -rc_eq equation     set rate control equation
  93. -rc_override override  rate control override for specific intervals
  94. -me method          set motion estimation method
  95. -dct_algo algo      set dct algo
  96. -idct_algo algo     set idct algo
  97. -me_threshold       motion estimaton threshold
  98. -mb_threshold       macroblock threshold
  99. -er n               set error resilience
  100. -ec bit_mask        set error concealment
  101. -bf frames          use 'frames' B frames
  102. -mbd mode           macroblock decision
  103. -mbcmp cmp function  macroblock compare function
  104. -ildctcmp cmp function  ildct compare function
  105. -subcmp cmp function  subpel compare function
  106. -cmp cmp function   fullpel compare function
  107. -precmp cmp function  pre motion estimation compare function
  108. -preme              pre motion estimation
  109. -lelim elim         single coefficient elimination threshold for luminance (negative values also consider DC coefficient)
  110. -celim elim         single coefficient elimination threshold for chrominance (negative values also consider DC coefficient)
  111. -lumi_mask          luminance masking
  112. -dark_mask          darkness masking
  113. -scplx_mask         spatial complexity masking
  114. -tcplx_mask         temporal complexity masking
  115. -p_mask             inter masking
  116. -4mv                use four motion vector by macroblock (MPEG4)
  117. -obmc               use overlapped block motion compensation (h263+)
  118. -lf                 use loop filter (h263+)
  119. -part               use data partitioning (MPEG4)
  120. -bug param          workaround not auto detected encoder bugs
  121. -strict strictness  how strictly to follow the standards
  122. -deinterlace        deinterlace pictures
  123. -ildct              force interlaced dct support in encoder (MPEG2/MPEG4)
  124. -ilme               force interlaced me support in encoder (MPEG2/MPEG4)
  125. -psnr               calculate PSNR of compressed frames
  126. -vstats             dump video coding statistics to file
  127. -vhook module       insert video processing module
  128. -aic                enable Advanced intra coding (h263+)
  129. -aiv                enable Alternative inter vlc (h263+)
  130. -umv                enable Unlimited Motion Vector (h263+)
  131. -ssm                enable Slice Structured mode (h263+)
  132. -alt                enable alternate scantable (MPEG2/MPEG4)
  133. -qprd              
  134. -cbp                
  135. -trell              enable trellis quantization
  136. -mv0                try to encode each MB with MV=<0,0> and choose the better one (has no effect if mbd=0)
  137. -naq                normalize adaptive quantization
  138. -cgop               closed gop
  139. -sgop               strict gop
  140. -noout              skip bitstream encoding
  141. -scan_offset        enable SVCD Scan Offset placeholder
  142. -qpel               enable 1/4-pel
  143. -intra_matrix matrix  specify intra matrix coeffs
  144. -inter_matrix matrix  specify inter matrix coeffs
  145. -top                top=1/bottom=0/auto=-1 field first
  146. -nr                 noise reduction
  147. -qns                quantization noise shaping
  148. -sc_threshold threshold  scene change threshold
  149. -me_range range     limit motion vectors range (1023 for DivX player)
  150. -dc precision       intra_dc_precision
  151. -coder              coder type
  152. -context            context model
  153. -pred               prediction method
  154. -vprofile           profile
  155. -vlevel             level
  156. -nssew              weight
  157. -subq              
  158. -mepc factor (1.0 = 256)  motion estimation bitrate penalty compensation
  159. -lowres            
  160. -vtag fourcc/tag    force video tag/fourcc
  161. -skip_threshold threshold  frame skip threshold
  162. -skip_factor factor  frame skip factor
  163. -skip_exp exponent  frame skip exponent
  164. -skip_cmp compare function  frame skip compare function
  165. -gray               encode/decode grayscale
  166.  
  167. Audio options:
  168. -aframes number     set the number of audio frames to record
  169. -ab bitrate         set audio bitrate (in kbit/s)
  170. -ar rate            set audio sampling rate (in Hz)
  171. -ac channels        set number of audio channels
  172. -an                 disable audio
  173. -acodec codec       force audio codec ('copy' to copy stream)
  174. -vol volume         change audio volume (256=normal)
  175. -newaudio           add a new audio stream to the current output stream
  176. -alang code         set the ISO 639 language code (3 letters) of the current audio stream
  177.  
  178. Advanced Audio options:
  179. -atag fourcc/tag    force audio tag/fourcc
  180.  
  181. Subtitle options:
  182. -scodec codec       force subtitle codec ('copy' to copy stream)
  183. -newsubtitle        add a new subtitle stream to the current output stream
  184. -slang code         set the ISO 639 language code (3 letters) of the current subtitle stream
  185.  
  186. Audio/Video grab options:
  187. -vd device          set video grab device
  188. -vc channel         set video grab channel (DV1394 only)
  189. -tvstd standard     set television standard (NTSC, PAL (SECAM))
  190. -ad device          set audio device
  191. -grab format        request grabbing using
  192. -gd device          set grab device
  193.  
  194. Advanced options:
  195. -map file:stream[:syncfile:syncstream]  set input stream mapping
  196. -map_meta_data outfile:infile  set meta data information of outfile from infile
  197. -debug              print specific debug info
  198. -vismv              visualize motion vectors
  199. -benchmark          add timings for benchmarking
  200. -dump               dump each input packet
  201. -hex                when dumping packets, also dump the payload
  202. -bitexact           only use bit exact algorithms (for codec testing)
  203. -re                 read input at native frame rate
  204. -loop               loop (current only works with images)
  205. -loop_output        number of times to loop output in formats that support looping (0 loops forever)
  206. -threads count      thread count
  207. -vsync              video sync method
  208. -async              audio sync method
  209. -vglobal            video global header storage type
  210. -copyts             copy timestamps
  211. -shortest           finish encoding within shortest input
  212. -b_strategy strategy  dynamic b frame selection strategy
  213. -ps size            set packet size in bits
  214. -error rate         error rate
  215. -muxrate rate       set mux rate
  216. -packetsize size    set packet size
  217. -muxdelay seconds   set the maximum demux-decode delay
  218. -muxpreload seconds  set the initial demux-decode delay
  219. -muxab bitrate      set the audio bitrate in mux tag (in kbit/s)
  220. -muxvb bitrate      set the video bitrate in mux tag (in kbit/s)
Advertisement
Add Comment
Please, Sign In to add comment