Difference between revisions of "Documentation:Modules/avcodec"

From VideoLAN Wiki
Jump to navigation Jump to search
(Write page from scratch. I copied only the command-line options from the program output, adapted the wikicode with a text editor, and pasted it here)
 
m (Use new Template:Option parameters)
Line 11: Line 11:
 
{{Option|name=avcodec-workaround-bugs|value=integer|description=Workaround bugs}}
 
{{Option|name=avcodec-workaround-bugs|value=integer|description=Workaround bugs}}
 
{{Option|name=avcodec-hurry-up|value=boolean|description=Hurry up|default=enabled}}
 
{{Option|name=avcodec-hurry-up|value=boolean|description=Hurry up|default=enabled}}
{{Option|name=avcodec-skip-frame|value=integer|description=Skip frame. The option set is (-1 (None), 0 (Default), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All))|default=0}}
+
{{Option|name=avcodec-skip-frame|value=integer|select={-1 (None), 0 (Default), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All)}|description=Skip frame|default=0}}
{{Option|name=avcodec-skip-idct|value=integer|description=Skip [[IDCT]]. The option set is (-1 (None), 0 (Default), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All))|default=0}}
+
{{Option|name=avcodec-skip-idct|value=integer|select={-1 (None), 0 (Default), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All)}|description=Skip [[IDCT]]|default=0}}
 
{{Option|name=avcodec-fast|value=boolean|description=Allow speed tricks|default=disabled}}
 
{{Option|name=avcodec-fast|value=boolean|description=Allow speed tricks|default=disabled}}
{{Option|name=avcodec-skiploopfilter|value=integer|description=Skip the loop filter for H.264 decoding. The option set is (0 (None), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All))}}
+
{{Option|name=avcodec-skiploopfilter|value=integer|select={0 (None), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All)}|description=Skip the loop filter for H.264 decoding)}}
 
{{Option|name=avcodec-debug|value=integer|description=Debug mask}}
 
{{Option|name=avcodec-debug|value=integer|description=Debug mask}}
 
{{Option|name=avcodec-codec|value=string|description=Codec name}}
 
{{Option|name=avcodec-codec|value=string|description=Codec name}}
{{Option|name=avcodec-hw|value=integer|description=Hardware decoding. The option set is (any,vdpau_avcodec,vaapi,vaapi_drm,none)}}
+
{{Option|name=avcodec-hw|value=integer|select={any,vdpau_avcodec,vaapi,vaapi_drm,none}|description=Hardware decoding}}
 
{{Option|name=avcodec-threads|value=integer|description=Threads}}
 
{{Option|name=avcodec-threads|value=integer|description=Threads}}
 
{{Option|name=avcodec-options|value=string|description=Advanced options}}
 
{{Option|name=avcodec-options|value=string|description=Advanced options}}
Line 23: Line 23:
 
== Encoding ==
 
== Encoding ==
 
{{Option|name=sout-avcodec-codec|value=string|description=Codec name}}
 
{{Option|name=sout-avcodec-codec|value=string|description=Codec name}}
{{Option|name=sout-avcodec-hq|value=string|description=Quality level. The option set is (rd,bits,simple)}}
+
{{Option|name=sout-avcodec-hq|value=string|select={rd,bits,simple}|description=Quality level}}
 
{{Option|name=sout-avcodec-keyint|value=integer|description=Ratio of key frames}}
 
{{Option|name=sout-avcodec-keyint|value=integer|description=Ratio of key frames}}
 
{{Option|name=sout-avcodec-bframes|value=integer|description=Ratio of B frames}}
 
{{Option|name=sout-avcodec-bframes|value=integer|description=Ratio of B frames}}
Line 32: Line 32:
 
{{Option|name=sout-avcodec-pre-me|value=boolean|description=Pre-motion estimation|default=disabled}}
 
{{Option|name=sout-avcodec-pre-me|value=boolean|description=Pre-motion estimation|default=disabled}}
 
{{Option|name=sout-avcodec-rc-buffer-size|value=integer|description=Rate control buffer size}}
 
{{Option|name=sout-avcodec-rc-buffer-size|value=integer|description=Rate control buffer size}}
{{Option|name=sout-avcodec-rc-buffer-aggressivity|value=float|description=Rate control buffer aggressiveness. The option range is [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]}}
+
{{Option|name=sout-avcodec-rc-buffer-aggressivity|value=float|min=-340282346638528859811704183484516925440.000000|max=340282346638528859811704183484516925440.000000|description=Rate control buffer aggressiveness}}
{{Option|name=sout-avcodec-i-quant-factor|value=float|description=I quantization factor. The option range is [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]}}
+
{{Option|name=sout-avcodec-i-quant-factor|value=float|min=-340282346638528859811704183484516925440.000000|max=340282346638528859811704183484516925440.000000|description=I quantization factor}}
 
{{Option|name=sout-avcodec-noise-reduction|value=integer|description=Noise reduction}}
 
{{Option|name=sout-avcodec-noise-reduction|value=integer|description=Noise reduction}}
 
{{Option|name=sout-avcodec-mpeg4-matrix|value=boolean|description=MPEG4 quantization matrix|default=disabled}}
 
{{Option|name=sout-avcodec-mpeg4-matrix|value=boolean|description=MPEG4 quantization matrix|default=disabled}}
Line 39: Line 39:
 
{{Option|name=sout-avcodec-qmax|value=integer|description=Maximum video quantizer scale}}
 
{{Option|name=sout-avcodec-qmax|value=integer|description=Maximum video quantizer scale}}
 
{{Option|name=sout-avcodec-trellis|value=boolean|description=Trellis quantization|default=disabled}}
 
{{Option|name=sout-avcodec-trellis|value=boolean|description=Trellis quantization|default=disabled}}
{{Option|name=sout-avcodec-qscale|value=float|description=Fixed quantizer scale. The option range is [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]}}
+
{{Option|name=sout-avcodec-qscale|value=float|min=-340282346638528859811704183484516925440.000000|max=340282346638528859811704183484516925440.000000|description=Fixed quantizer scale}}
{{Option|name=sout-avcodec-strict|value=integer|description=Strict standard compliance. The option range is [-2 .. 2]}}
+
{{Option|name=sout-avcodec-strict|value=integer|min=-2|max=2|description=Strict standard compliance}}
{{Option|name=sout-avcodec-lumi-masking|value=float|description=Luminance masking. The option range is [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]}}
+
{{Option|name=sout-avcodec-lumi-masking|value=float|min=-340282346638528859811704183484516925440.000000|max=340282346638528859811704183484516925440.000000|description=Luminance masking}}
{{Option|name=sout-avcodec-dark-masking|value=float|description=Darkness masking. The option range is [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]}}
+
{{Option|name=sout-avcodec-dark-masking|value=float|min=-340282346638528859811704183484516925440.000000|max=340282346638528859811704183484516925440.000000|description=Darkness masking}}
{{Option|name=sout-avcodec-p-masking|value=float|description=Motion masking. The option range is [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]}}
+
{{Option|name=sout-avcodec-p-masking|value=float|min=-340282346638528859811704183484516925440.000000|max=340282346638528859811704183484516925440.000000|description=Motion masking}}
{{Option|name=sout-avcodec-border-masking|value=float|description=Border masking. The option range is [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]}}
+
{{Option|name=sout-avcodec-border-masking|value=float|min=-340282346638528859811704183484516925440.000000|max=340282346638528859811704183484516925440.000000|description=Border masking}}
 
{{Option|name=sout-avcodec-luma-elim-threshold|value=integer|description=Luminance elimination}}
 
{{Option|name=sout-avcodec-luma-elim-threshold|value=integer|description=Luminance elimination}}
 
{{Option|name=sout-avcodec-chroma-elim-threshold|value=integer|description=Chrominance elimination}}
 
{{Option|name=sout-avcodec-chroma-elim-threshold|value=integer|description=Chrominance elimination}}

Revision as of 15:23, 28 February 2019

Module: avcodec
Type codec library
First VLC version -
Last VLC version -
Operating system(s) all
Description Various audio and video decoders/encoders delivered by the FFmpeg library. This includes (MS)MPEG4, DivX, SV1, H261, H263, H264, WMV, WMA, AAC, AMR, DV, MJPEG and other codecs
Shortcut(s) -

libavcodec provided by the FFmpeg project. A full list of supported codecs may be found with modules/codec/avcodec/fourcc.c

Options as of 3.0.6:

Decoding

  • avcodec-dr <boolean> : Direct rendering default value: enabled
  • avcodec-corrupted <boolean> : Show corrupted frames default value: enabled
  • avcodec-error-resilience <integer> : Error resilience
  • avcodec-workaround-bugs <integer> : Workaround bugs
  • avcodec-hurry-up <boolean> : Hurry up default value: enabled
  • avcodec-skip-frame <integer> {-1 (None), 0 (Default), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All)} : Skip frame default value: 0
  • avcodec-skip-idct <integer> {-1 (None), 0 (Default), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All)} : Skip IDCT default value: 0
  • avcodec-fast <boolean> : Allow speed tricks default value: disabled
  • avcodec-skiploopfilter <integer> {0 (None), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All)} : Skip the loop filter for H.264 decoding)
  • avcodec-debug <integer> : Debug mask
  • avcodec-codec <string> : Codec name
  • avcodec-hw <integer> {any,vdpau_avcodec,vaapi,vaapi_drm,none} : Hardware decoding
  • avcodec-threads <integer> : Threads
  • avcodec-options <string> : Advanced options

Encoding

  • sout-avcodec-codec <string> : Codec name
  • sout-avcodec-hq <string> {rd,bits,simple} : Quality level
  • sout-avcodec-keyint <integer> : Ratio of key frames
  • sout-avcodec-bframes <integer> : Ratio of B frames
  • sout-avcodec-hurry-up <boolean> : Hurry up default value: disabled
  • sout-avcodec-interlace <boolean> : Interlaced encoding default value: disabled
  • sout-avcodec-interlace-me <boolean> : Interlaced motion estimation default value: enabled
  • sout-avcodec-vt <integer> : Video bitrate tolerance
  • sout-avcodec-pre-me <boolean> : Pre-motion estimation default value: disabled
  • sout-avcodec-rc-buffer-size <integer> : Rate control buffer size
  • sout-avcodec-rc-buffer-aggressivity <float [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]> : Rate control buffer aggressiveness
  • sout-avcodec-i-quant-factor <float [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]> : I quantization factor
  • sout-avcodec-noise-reduction <integer> : Noise reduction
  • sout-avcodec-mpeg4-matrix <boolean> : MPEG4 quantization matrix default value: disabled
  • sout-avcodec-qmin <integer> : Minimum video quantizer scale
  • sout-avcodec-qmax <integer> : Maximum video quantizer scale
  • sout-avcodec-trellis <boolean> : Trellis quantization default value: disabled
  • sout-avcodec-qscale <float [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]> : Fixed quantizer scale
  • sout-avcodec-strict <integer [-2 .. 2]> : Strict standard compliance
  • sout-avcodec-lumi-masking <float [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]> : Luminance masking
  • sout-avcodec-dark-masking <float [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]> : Darkness masking
  • sout-avcodec-p-masking <float [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]> : Motion masking
  • sout-avcodec-border-masking <float [-340282346638528859811704183484516925440.000000 .. 340282346638528859811704183484516925440.000000]> : Border masking
  • sout-avcodec-luma-elim-threshold <integer> : Luminance elimination
  • sout-avcodec-chroma-elim-threshold <integer> : Chrominance elimination
  • sout-avcodec-aac-profile <string> : Specify AAC audio profile to use
  • sout-avcodec-options <string> : Advanced options

Source code

This page is part of official VLC media player Documentation (User GuideStreaming HowToHacker GuideModules)
Please read the Documentation Editing Guidelines before you edit the documentation
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.