Difference between revisions of "Documentation:Modules/avcodec"
Jump to navigation
Jump to search
m (See also: Documentation:Modules/avformat) |
(Add default options (from source code)) |
||
Line 9: | Line 9: | ||
== Decoding == | == Decoding == | ||
− | {{Option|name=avcodec-dr|value=boolean|description=Direct rendering | + | {{Option|name=avcodec-dr|value=boolean|default=enabled|description=Direct rendering}} |
− | {{Option|name=avcodec-corrupted|value=boolean|description=Show corrupted frames | + | {{Option|name=avcodec-corrupted|value=boolean|default=enabled|description=Show corrupted frames}} |
− | {{Option|name=avcodec-error-resilience|value=integer|description=Error resilience}} | + | {{Option|name=avcodec-error-resilience|value=integer|default=1|description=Error resilience}} |
− | {{Option|name=avcodec-workaround-bugs|value=integer|description=Workaround bugs}} | + | {{Option|name=avcodec-workaround-bugs|value=integer|default=1|description=Workaround bugs}} |
− | {{Option|name=avcodec-hurry-up|value=boolean|description=Hurry up | + | {{Option|name=avcodec-hurry-up|value=boolean|default=enabled|description=Hurry up}} |
− | {{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 | + | {{Option|name=avcodec-skip-frame|value=integer|select={-1 (None), 0 (Default), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All)}|default=0|description=Skip frame}} |
− | {{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]] | + | {{Option|name=avcodec-skip-idct|value=integer|select={-1 (None), 0 (Default), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All)}|default=0|description=Skip [[IDCT]]}} |
− | {{Option|name=avcodec-fast|value=boolean|description=Allow speed tricks | + | {{Option|name=avcodec-fast|value=boolean|default=disabled|description=Allow speed tricks}} |
− | {{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-skiploopfilter|value=integer|select={0 (None), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All)}|default=0|description=Skip the loop filter for H.264 decoding)}} |
− | {{Option|name=avcodec-debug|value=integer|description=Debug mask}} | + | {{Option|name=avcodec-debug|value=integer|default=0|description=Debug mask}} |
− | {{Option|name=avcodec-codec|value=string|description=Codec name}} | + | {{Option|name=avcodec-codec|value=string|default=NULL|description=Codec name}} |
− | {{Option|name=avcodec-hw|value=integer|select={any,vdpau_avcodec,vaapi,vaapi_drm,none}|description=Hardware decoding}} | + | {{Option|name=avcodec-hw|value=integer|select={any,vdpau_avcodec,vaapi,vaapi_drm,none}|default=any|description=Hardware decoding}} |
− | {{Option|name=avcodec-threads|value=integer|description=Threads}} | + | {{Option|name=avcodec-threads|value=integer|default=0|description=Threads}} |
− | {{Option|name=avcodec-options|value=string|description=Advanced options}} | + | {{Option|name=avcodec-options|value=string|default=NULL|description=Advanced options}} |
== Encoding == | == Encoding == | ||
− | {{Option|name=sout-avcodec-codec|value=string|description=Codec name}} | + | {{Option|name=sout-avcodec-codec|value=string|default=NULL|description=Codec name}} |
− | {{Option|name=sout-avcodec-hq|value=string|select={rd,bits,simple}|description=Quality level}} | + | {{Option|name=sout-avcodec-hq|value=string|select={rd,bits,simple}|default=rd|description=Quality level}} |
− | {{Option|name=sout-avcodec-keyint|value=integer|description=Ratio of key frames}} | + | {{Option|name=sout-avcodec-keyint|value=integer|default=0|description=Ratio of key frames}} |
− | {{Option|name=sout-avcodec-bframes|value=integer|description=Ratio of B frames}} | + | {{Option|name=sout-avcodec-bframes|value=integer|default=0|description=Ratio of B frames}} |
− | {{Option|name=sout-avcodec-hurry-up|value=boolean|description=Hurry up | + | {{Option|name=sout-avcodec-hurry-up|value=boolean|default=disabled|description=Hurry up}} |
− | {{Option|name=sout-avcodec-interlace|value=boolean|description=Interlaced encoding | + | {{Option|name=sout-avcodec-interlace|value=boolean|default=disabled|description=Interlaced encoding}} |
− | {{Option|name=sout-avcodec-interlace-me|value=boolean|description=Interlaced motion estimation | + | {{Option|name=sout-avcodec-interlace-me|value=boolean|default=enabled|description=Interlaced motion estimation}} |
− | {{Option|name=sout-avcodec-vt|value=integer|description=Video bitrate tolerance}} | + | {{Option|name=sout-avcodec-vt|value=integer|default=0|description=Video bitrate tolerance}} |
− | {{Option|name=sout-avcodec-pre-me|value=boolean|description=Pre-motion estimation | + | {{Option|name=sout-avcodec-pre-me|value=boolean|default=disabled|description=Pre-motion estimation}} |
− | {{Option|name=sout-avcodec-rc-buffer-size|value=integer|description=Rate control buffer size}} | + | {{Option|name=sout-avcodec-rc-buffer-size|value=integer|default=0|description=Rate control buffer size}} |
− | {{Option|name=sout-avcodec-rc-buffer-aggressivity|value=float|description=Rate control buffer aggressiveness}} | + | {{Option|name=sout-avcodec-rc-buffer-aggressivity|value=float|default=1.0|description=Rate control buffer aggressiveness}} |
− | {{Option|name=sout-avcodec-i-quant-factor|value=float|description=I quantization factor}} | + | {{Option|name=sout-avcodec-i-quant-factor|value=float|default=0|description=I quantization factor}} |
− | {{Option|name=sout-avcodec-noise-reduction|value=integer|description=Noise reduction}} | + | {{Option|name=sout-avcodec-noise-reduction|value=integer|default=0|description=Noise reduction}} |
− | {{Option|name=sout-avcodec-mpeg4-matrix|value=boolean|description=MPEG4 quantization matrix | + | {{Option|name=sout-avcodec-mpeg4-matrix|value=boolean|default=disabled|description=MPEG4 quantization matrix}} |
− | {{Option|name=sout-avcodec-qmin|value=integer|description=Minimum video quantizer scale}} | + | {{Option|name=sout-avcodec-qmin|value=integer|default=0|description=Minimum video quantizer scale}} |
− | {{Option|name=sout-avcodec-qmax|value=integer|description=Maximum video quantizer scale}} | + | {{Option|name=sout-avcodec-qmax|value=integer|default=0|description=Maximum video quantizer scale}} |
− | {{Option|name=sout-avcodec-trellis|value=boolean|description=Trellis quantization | + | {{Option|name=sout-avcodec-trellis|value=boolean|default=disabled|description=Trellis quantization}} |
− | {{Option|name=sout-avcodec-qscale|value=float|description=Fixed quantizer scale}} | + | {{Option|name=sout-avcodec-qscale|value=float|default=3|description=Fixed quantizer scale}} |
− | {{Option|name=sout-avcodec-strict|value=integer|min=-2|max=2|description=Strict standard compliance}} | + | {{Option|name=sout-avcodec-strict|value=integer|min=-2|max=2|default=0|description=Strict standard compliance}} |
− | {{Option|name=sout-avcodec-lumi-masking|value=float|description=Luminance masking}} | + | {{Option|name=sout-avcodec-lumi-masking|value=float|default=0.0|description=Luminance masking}} |
− | {{Option|name=sout-avcodec-dark-masking|value=float|description=Darkness masking}} | + | {{Option|name=sout-avcodec-dark-masking|value=float|default=0.0|description=Darkness masking}} |
− | {{Option|name=sout-avcodec-p-masking|value=float|description=Motion masking}} | + | {{Option|name=sout-avcodec-p-masking|value=float|default=0.0|description=Motion masking}} |
− | {{Option|name=sout-avcodec-border-masking|value=float|description=Border masking}} | + | {{Option|name=sout-avcodec-border-masking|value=float|default=0.0|description=Border masking}} |
− | {{Option|name=sout-avcodec-luma-elim-threshold|value=integer|description=Luminance elimination}} | + | {{Option|name=sout-avcodec-luma-elim-threshold|value=integer|default=0|description=Luminance elimination}} |
− | {{Option|name=sout-avcodec-chroma-elim-threshold|value=integer|description=Chrominance elimination}} | + | {{Option|name=sout-avcodec-chroma-elim-threshold|value=integer|default=0|description=Chrominance elimination}} |
− | {{Option|name=sout-avcodec-aac-profile|value=string|description=Specify AAC audio profile to use}} | + | {{Option|name=sout-avcodec-aac-profile|value=string|default=low|description=Specify AAC audio profile to use}} |
− | {{Option|name=sout-avcodec-options|value=string|description=Advanced options}} | + | {{Option|name=sout-avcodec-options|value=string|default=NULL|description=Advanced options}} |
== Source code == | == Source code == |
Revision as of 23:54, 29 March 2019
See also: Documentation:Modules/avformat
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, SVQ1, 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 prefixed with ffmpeg- or sout-ffmpeg- were deprecated in 2.1.0 to reflect the new module name avcodec. The only option that seems not to have been replaced later is --avcodec-vismv
, removed in 3.0.0.
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 default value: 1
- avcodec-workaround-bugs <integer> : Workaround bugs default value: 1
- 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) default value: 0
- avcodec-debug <integer> : Debug mask default value: 0
- avcodec-codec <string> : Codec name default value: NULL
- avcodec-hw <integer> {any,vdpau_avcodec,vaapi,vaapi_drm,none} : Hardware decoding default value: any
- avcodec-threads <integer> : Threads default value: 0
- avcodec-options <string> : Advanced options default value: NULL
Encoding
- sout-avcodec-codec <string> : Codec name default value: NULL
- sout-avcodec-hq <string> {rd,bits,simple} : Quality level default value: rd
- sout-avcodec-keyint <integer> : Ratio of key frames default value: 0
- sout-avcodec-bframes <integer> : Ratio of B frames default value: 0
- 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 default value: 0
- sout-avcodec-pre-me <boolean> : Pre-motion estimation default value: disabled
- sout-avcodec-rc-buffer-size <integer> : Rate control buffer size default value: 0
- sout-avcodec-rc-buffer-aggressivity <float> : Rate control buffer aggressiveness default value: 1.0
- sout-avcodec-i-quant-factor <float> : I quantization factor default value: 0
- sout-avcodec-noise-reduction <integer> : Noise reduction default value: 0
- sout-avcodec-mpeg4-matrix <boolean> : MPEG4 quantization matrix default value: disabled
- sout-avcodec-qmin <integer> : Minimum video quantizer scale default value: 0
- sout-avcodec-qmax <integer> : Maximum video quantizer scale default value: 0
- sout-avcodec-trellis <boolean> : Trellis quantization default value: disabled
- sout-avcodec-qscale <float> : Fixed quantizer scale default value: 3
- sout-avcodec-strict <integer [-2 .. 2]> : Strict standard compliance default value: 0
- sout-avcodec-lumi-masking <float> : Luminance masking default value: 0.0
- sout-avcodec-dark-masking <float> : Darkness masking default value: 0.0
- sout-avcodec-p-masking <float> : Motion masking default value: 0.0
- sout-avcodec-border-masking <float> : Border masking default value: 0.0
- sout-avcodec-luma-elim-threshold <integer> : Luminance elimination default value: 0
- sout-avcodec-chroma-elim-threshold <integer> : Chrominance elimination default value: 0
- sout-avcodec-aac-profile <string> : Specify AAC audio profile to use default value: low
- sout-avcodec-options <string> : Advanced options default value: NULL
Source code
- (folder)
- modules/codec/avcodec/avcodec.c (main file)
This page is part of official VLC media player Documentation (User Guide • Streaming HowTo • Hacker Guide • Modules)
Please read the Documentation Editing Guidelines before you edit the documentation
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.