Difference between revisions of "Documentation:Modules/avcodec"

From VideoLAN Wiki
Jump to navigation Jump to search
(Replace options help text with help longtext. Is this an improvement? I'm not sure what is preferred by readers of this page)
m (Add wikilinks)
Line 14: Line 14:
 
{{Option|name=avcodec-workaround-bugs|value=integer|default=1|description=Try to fix some bugs: 1  autodetect, 2  old msmpeg4, 4  xvid interlaced, 8  ump4, 16 no padding, 32 ac vlc, 64 Qpel chroma. This must be the sum of the values. For example, to fix "ac vlc" and "ump4", enter 40.)}}
 
{{Option|name=avcodec-workaround-bugs|value=integer|default=1|description=Try to fix some bugs: 1  autodetect, 2  old msmpeg4, 4  xvid interlaced, 8  ump4, 16 no padding, 32 ac vlc, 64 Qpel chroma. This must be the sum of the values. For example, to fix "ac vlc" and "ump4", enter 40.)}}
 
{{Option|name=avcodec-hurry-up|value=boolean|default=enabled|description=The decoder can partially decode or skip frame(s) when there is not enough time. It's useful with low CPU power but it can produce distorted pictures}}
 
{{Option|name=avcodec-hurry-up|value=boolean|default=enabled|description=The decoder can partially decode or skip frame(s) when there is not enough time. It's useful with low CPU power but it can produce distorted pictures}}
{{Option|name=avcodec-skip-frame|value=integer|select={-1,0,1,2,3,4}|default=0|description=Force skipping of frames to speed up decoding (-1=None, 0=Default, 1=B-frames, 2=P-frames, 3=B+P frames, 4=all frames)}}
+
{{Option|name=avcodec-skip-frame|value=integer|select={-1,0,1,2,3,4}|default=0|description=Force skipping of [[frame]]s to speed up decoding (-1=None, 0=Default, 1=[[B-frame]]s, 2=[[P-frame]]s, 3=B+P frames, 4=all frames)}}
 
{{Option|name=avcodec-skip-idct|value=integer|select={-1,0,1,2,3,4}|default=0|description=Force skipping of [[IDCT]] to speed up decoding for frame types (-1=None, 0=Default, 1=B-frames, 2=P-frames, 3=B+P frames, 4=all frames)}}
 
{{Option|name=avcodec-skip-idct|value=integer|select={-1,0,1,2,3,4}|default=0|description=Force skipping of [[IDCT]] to speed up decoding for frame types (-1=None, 0=Default, 1=B-frames, 2=P-frames, 3=B+P frames, 4=all frames)}}
 
{{Option|name=avcodec-fast|value=boolean|default=disabled|description=Allow non specification compliant speedup tricks. Faster but error-prone}}
 
{{Option|name=avcodec-fast|value=boolean|default=disabled|description=Allow non specification compliant speedup tricks. Faster but error-prone}}
Line 25: Line 25:
  
 
== Encoding ==
 
== Encoding ==
{{Option|name=sout-avcodec-codec|value=string|default=NULL|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}|default=rd|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|default=0|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|default=0|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|default=disabled|description=Hurry up}}
 
{{Option|name=sout-avcodec-hurry-up|value=boolean|default=disabled|description=Hurry up}}
{{Option|name=sout-avcodec-interlace|value=boolean|default=disabled|description=Interlaced encoding}}
+
{{Option|name=sout-avcodec-interlace|value=boolean|default=disabled|description=[[Interlaced]] encoding}}
 
{{Option|name=sout-avcodec-interlace-me|value=boolean|default=enabled|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|default=0|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|default=disabled|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|default=0|description=Rate control buffer size}}
 
{{Option|name=sout-avcodec-rc-buffer-size|value=integer|default=0|description=Rate control buffer size}}
Line 38: Line 38:
 
{{Option|name=sout-avcodec-i-quant-factor|value=float|default=0|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|default=0|description=Noise reduction}}
 
{{Option|name=sout-avcodec-noise-reduction|value=integer|default=0|description=Noise reduction}}
{{Option|name=sout-avcodec-mpeg4-matrix|value=boolean|default=disabled|description=MPEG4 quantization matrix}}
+
{{Option|name=sout-avcodec-mpeg4-matrix|value=boolean|default=disabled|description=[[MPEG-4]] quantization matrix}}
 
{{Option|name=sout-avcodec-qmin|value=integer|default=0|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|default=0|description=Maximum video quantizer scale}}
 
{{Option|name=sout-avcodec-qmax|value=integer|default=0|description=Maximum video quantizer scale}}
Line 50: Line 50:
 
{{Option|name=sout-avcodec-luma-elim-threshold|value=integer|default=0|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|default=0|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|default=low|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|default=NULL|description=Advanced options}}
 
{{Option|name=sout-avcodec-options|value=string|default=NULL|description=Advanced options}}
  

Revision as of 07:31, 30 March 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, 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> : Prefer visual artifacts instead of missing frames default value: enabled
  • avcodec-error-resilience <integer [0 .. 4]> : libavcodec can do error resilience. However, with a buggy encoder (such as the ISO MPEG-4 encoder from M$) this can produce a lot of errors. Valid values range from 0 to 4 (0 disables all errors resilience) default value: 1
  • avcodec-workaround-bugs <integer> : Try to fix some bugs: 1 autodetect, 2 old msmpeg4, 4 xvid interlaced, 8 ump4, 16 no padding, 32 ac vlc, 64 Qpel chroma. This must be the sum of the values. For example, to fix "ac vlc" and "ump4", enter 40.) default value: 1
  • avcodec-hurry-up <boolean> : The decoder can partially decode or skip frame(s) when there is not enough time. It's useful with low CPU power but it can produce distorted pictures default value: enabled
  • avcodec-skip-frame <integer> {-1,0,1,2,3,4} : Force skipping of frames to speed up decoding (-1=None, 0=Default, 1=B-frames, 2=P-frames, 3=B+P frames, 4=all frames) default value: 0
  • avcodec-skip-idct <integer> {-1,0,1,2,3,4} : Force skipping of IDCT to speed up decoding for frame types (-1=None, 0=Default, 1=B-frames, 2=P-frames, 3=B+P frames, 4=all frames) default value: 0
  • avcodec-fast <boolean> : Allow non specification compliant speedup tricks. Faster but error-prone default value: disabled
  • avcodec-skiploopfilter <integer> {0 (None), 1 (Non-ref), 2 (Bidir), 3 (Non-key), 4 (All)} : Skipping the loop filter (aka deblocking) usually has a detrimental effect on quality. However it provides a big speedup for high definition streams default value: 0
  • avcodec-debug <integer> : Set FFmpeg debug mask default value: 0
  • avcodec-codec <string> : Internal libavcodec codec name default value: NULL
  • avcodec-hw <integer> {any,vdpau_avcodec,vaapi,vaapi_drm,none} : This allows hardware decoding when available default value: any
  • avcodec-threads <integer> : Number of threads used for decoding, 0 meaning auto default value: 0
  • avcodec-options <string> : Advanced options, in the form {opt=val,opt2=val2} 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> : MPEG-4 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

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.