Difference between revisions of "Template:Codec video"

From VideoLAN Wiki
Jump to navigation Jump to search
(New feature: parameter "encoder". If equal to "y", a message will be displayed like Template:Mux. Documentation has been updated)
(Insert code comments in a way that will affect layout)
Line 1: Line 1:
 
{{top box
 
{{top box
 
|id={{{id|{{{1|??}}}}}}
 
|id={{{id|{{{1|??}}}}}}
|text=This is a [[Codec#Video|video codec]]. The name to use at the [[command line]] is '''{{{id|{{{1|unknown}}}}}}'''{{#if:{{{altid|}}}|, but you can also use '''{{{altid}}}'''{{#if:{{{altid2|}}}|, or '''{{{altid2}}}'''}}}}.
+
|text=<!--
{{#ifeq:{{{encoder|n}}}|y|VLC can '''encode''' using this codec. }}
+
Line 1: -->This is a [[Codec#Video|video codec]]. The name to use at the [[command line]] is '''{{{id|{{{1|unknown}}}}}}'''{{#if:{{{altid|}}}|, but you can also use '''{{{altid}}}'''{{#if:{{{altid2|}}}|, or '''{{{altid2}}}'''}}}}.<!--
{{#if:{{{for|}}}| This codec can be used inside the {{{for}}} containers. }}
+
Line 2: -->{{#ifeq:{{{encoder|n}}}|y|<br />VLC can '''encode''' using this codec.}}<!--
 
+
Line 3: -->{{#if:{{{for|}}}| <br />This codec can be used inside the {{{for}}} containers.}}<!--
{{#if:{{{mod|}}}| This codec is from the [[Documentation:Modules/{{{mod}}}|{{{mod}}}]] module. }}
+
Line 4: -->{{#if:{{{mod|}}}| <br />This codec is from the [[Documentation:Modules/{{{mod}}}|{{{mod}}}]] module.}}
 
|bgcol=#fcf0fc
 
|bgcol=#fcf0fc
 
|brcol=#c0a0c0
 
|brcol=#c0a0c0

Revision as of 19:07, 24 February 2019

??
This is a video codec. The name to use at the command line is unknown.

For video codecs.

Usage:

{{codec video | id= | altid= | altid2= | encoder= | for= | mod= }}

You should supply id, the rest are optional.

  • id: the module name for the codec. If other shortcuts to the same module exist, also list them with altid, or altid and altid2
  • for: a list of containers this codec is compatible with. Put the names in [[ ]] so they link properly
  • mod: module name from Documentation:Modules
  • encoder: if equal to y, display a message, currently "VLC can encode using this codec."

See also