Difference between revisions of "Codec"

From VideoLAN Wiki
Jump to navigation Jump to search
(→‎Video Codecs: AASC name should be "Autodesk Animator Studio Codec" not "Autodesc")
 
(40 intermediate revisions by 14 users not shown)
Line 1: Line 1:
''See Also the [http://www.videolan.org/doc/vlc-user-guide/en/ch02.html#id291422 Official documentation: list of modules]''
+
{{see also|Documentation:Modules}}
  
 
{{wikipedia|List of codecs}}
 
{{wikipedia|List of codecs}}
{{mmwiki|Video codecs|Category:Video_Codecs}}
+
{{mmwiki|label1=Video codecs|Category:Video_Codecs|label2=Audio codecs|Category:Audio_Codecs|label3=Containers|Category:Container_Formats}}
{{mmwiki|Audio codecs|Category:Audio_Codecs}}
 
{{mmwiki|Containers|Category:Container_Formats}}
 
  
Codec is short for coder/decoder.
+
A part of the program which understands a type of video or audio (short for '''Co'''der/'''Dec'''oder or '''Co'''mpression/'''Dec'''ompression). DivX and Theora are examples of video codecs; MP3 and Vorbis are audio codecs. The output stream produced when a codec to audio or video is generally "muxed" into a container format, such as AVI or Ogg. As certain codecs are often associated with certain container formats, the name of the container is often used to imply the codec, such as "Ogg", which usually refers to a Vorbis stream in an Ogg container.
  
To know what codecs are readable with {{VLC}}, ''see [[VLC Features Formats]]''
+
To know what codecs are readable with {{VLC}}, ''see [[VLC Features Formats]]''.
  
 
For [http://discerning.com/topics/audiovideo/video_encoding.html portability to almost all decoders], we recommend
 
For [http://discerning.com/topics/audiovideo/video_encoding.html portability to almost all decoders], we recommend
using the [[MPEG-1]] standard of vcodec=mp1v, acodec=mpga, and mux=mpeg1.  See the [[MPEG]] Wiki page for more details on the other MPEG standards.
+
using the [[MPEG-1]] standard of <code>'''vcodec'''='''mp1v'''</code>, <code>'''acodec'''='''mpga'''</code>, and <code>'''mux'''='''mpeg1'''</code>.  See the [[MPEG]] Wiki page for more details on the other MPEG standards.
  
To save a file in a different codec, you can use the transcoding [[wizard]] or [[transcode]] from the [[command prompt]] with a command like this:
+
To save a file in a different codec, you can use the [[Documentation:Streaming_HowTo_New#Streaming_using_the_GUI|streaming wizard]] or [[transcode]] from the [[command prompt]] with a command like this:
:vlc file --sout='#transcode{vcodec=''mp1v'', vb=''1024'', acodec=''mpga'', ab=''128''}:std{access=file, mux=''mpeg1'', url=''C:\file_name.mpg''}'
 
  
 +
<code>vlc file --sout='#transcode{'''vcodec'''='''''mp1v''''', '''vb'''='''''1024''''', '''acodec'''='''''mpga''''', '''ab'''='''''128'''''}:std{access=file, '''mux'''='''''mpeg1''''', '''dst'''='''''C:\file_name.mpg'''''}'</code>
  
==Video Codecs==
+
==<span id="Video"></span> Video Codecs==
Use the "name" part in your vcodec=... commands
+
{{See also|Category:Video codecs}}
 +
 
 +
Use the "name" part in your <code>vcodec=...</code> commands
  
 
{|
 
{|
Line 38: Line 38:
 
| '''SVQ3'''
 
| '''SVQ3'''
 
| Sorenson Video v3
 
| Sorenson Video v3
 +
|-
 +
| '''DVDv'''
 +
| [[MPEG-2|VOB]] Video - used in DVDs
 
|-
 
|-
 
| '''WMV1'''
 
| '''WMV1'''
Line 46: Line 49:
 
|-
 
|-
 
| WMV3
 
| WMV3
| Windows Media Video v3, also called Windows Media 9 ([[Common_Problems#WMV_files|unsupported]])
+
| Windows Media Video v3, also called Windows Media 9 ([[VSG:Format:WMV|unsupported]])
 
|-
 
|-
 
| '''DVSD'''
 
| '''DVSD'''
Line 67: Line 70:
 
|-
 
|-
 
| IV40
 
| IV40
| Indeo Video version 4 or later ([[Common_Problems#Problems_playing_types_of_files|unsupported]])
+
| Indeo Video version 4 or later
 
|-
 
|-
 
| '''RV10'''
 
| '''RV10'''
Line 76: Line 79:
 
|-
 
|-
 
| '''VP31'''
 
| '''VP31'''
| [[On2 VP]]
+
| On2 [[VP3]]
 
|-
 
|-
 
| '''FLV1'''
 
| '''FLV1'''
Line 88: Line 91:
 
|-
 
|-
 
| '''MSVC'''
 
| '''MSVC'''
| [[Microsoft]] Video v1
+
| Microsoft Video v1
 
|-
 
|-
 
| '''MRLE'''
 
| '''MRLE'''
Line 94: Line 97:
 
|-
 
|-
 
| '''AASC'''
 
| '''AASC'''
| [[Autodesc]] RLE Video
+
| [[Autodesk Animator Studio Codec]] RLE Video
 
|-
 
|-
 
| '''FLIC'''
 
| '''FLIC'''
Line 101: Line 104:
 
| '''QPEG'''
 
| '''QPEG'''
 
| [[QPEG]] Video
 
| [[QPEG]] Video
 +
|-
 +
| '''VP8'''
 +
| [[VP8]] Video
 
|}
 
|}
  
==Audio Codecs==
+
==<span id="Audio"></span> Audio Codecs==
Use the "name" part in your acodec=... commands
+
{{See also|Category:Audio codecs}}
 +
 
 +
Use the "name" part in your <code>acodec=...</code> commands
  
 
{|
 
{|
Line 124: Line 132:
 
| '''vorb'''
 
| '''vorb'''
 
| [[Vorbis]]
 
| [[Vorbis]]
 +
|-
 +
| '''opus'''
 +
| [[Opus]]
 
|-
 
|-
 
| '''spx'''
 
| '''spx'''
 
| [[Speex]]
 
| [[Speex]]
 
|-
 
|-
| '''flac''' or '''fl32'''
+
| '''flac'''
 
| [[FLAC]]
 
| [[FLAC]]
 
|}
 
|}
Line 141: Line 152:
 
* [[AMR]]
 
* [[AMR]]
 
* [[QuickTime Audio]]
 
* [[QuickTime Audio]]
* [[Real Audio]]
+
* [[RealAudio]]
 
* [[MACE]]
 
* [[MACE]]
 
* [[MusePack]]
 
* [[MusePack]]
  
 
==Subtitle Codecs==
 
==Subtitle Codecs==
 +
 +
See [[Subtitles codecs]] for more information.
 +
 
{|
 
{|
 
|-
 
|-
 
| '''CVD'''
 
| '''CVD'''
| [[CVD|CVD Subtitles]]
+
| [[CVD]]
 
|-
 
|-
 
| '''SVCD (Overlay Graphics)'''
 
| '''SVCD (Overlay Graphics)'''
Line 155: Line 169:
 
|-
 
|-
 
| '''SRT'''
 
| '''SRT'''
| [[SRT|Subrip Subtitles]]
+
| [[SubRip]]
 
|-
 
|-
| '''SSA/ASS'''
+
| '''<abbr title="SubStation Alpha/Advanced SubStation Subtitles">SSA/ASS</abbr>'''
| [[SSA|Sub Station Alpha or Advanced Sub Station Subtitles]]
+
| [[SubStation Alpha]]
 
|-
 
|-
 
| '''SubViewer'''
 
| '''SubViewer'''
| [[Subviewer|SubViewer Subtitles]]
+
| [[SubViewer]]
 
|-
 
|-
 
| '''VobSub'''
 
| '''VobSub'''
| [[VobSub|VobSub Subtitles]]
+
| [[VobSub]]
 
|-
 
|-
 
| '''DVD subtitles'''
 
| '''DVD subtitles'''
| [[DVD Subtitles]]
+
| [[DVD subtitles]]
 +
|-
 +
| '''DVB subtitles'''
 +
| [[DVB subtitles]]
 
|-
 
|-
 
| '''VPlayer'''
 
| '''VPlayer'''
| [[Vplayer Subtitles]]
+
| [[Vplayer]]
 
|-
 
|-
 
| '''MicroDVD'''
 
| '''MicroDVD'''
| [[MicroDVD Subtitles]]
+
| [[MicroDVD]]
 
|-
 
|-
| '''Sami'''
+
| '''SAMI'''
| [[Sami Subtitles]]
+
| [[SAMI]]
  
 
|}
 
|}
[[Link title]]
 
  
 
== Muxers ==
 
== Muxers ==
Use the "name" part in you mux=... commands
+
Use the "name" part in your <code>mux=...</code> commands
  
 
{|
 
{|
Line 210: Line 226:
 
|-
 
|-
 
| '''ogg'''
 
| '''ogg'''
| [http://www.xiph.org/ Xiph.org's] [[ogg]] container format.  Can contain audio, video, and metadata.
+
| [[Xiph.org]]'s [[ogg]] container format.  Can contain audio, video, and metadata.
 
|}
 
|}
  
Line 218: Line 234:
  
 
{{stub}}
 
{{stub}}
 +
[[Category:Codecs|*]]
 +
[[Category:Glossary]]

Latest revision as of 06:22, 11 April 2019

A part of the program which understands a type of video or audio (short for Coder/Decoder or Compression/Decompression). DivX and Theora are examples of video codecs; MP3 and Vorbis are audio codecs. The output stream produced when a codec to audio or video is generally "muxed" into a container format, such as AVI or Ogg. As certain codecs are often associated with certain container formats, the name of the container is often used to imply the codec, such as "Ogg", which usually refers to a Vorbis stream in an Ogg container.

To know what codecs are readable with VLC media player, see VLC Features Formats.

For portability to almost all decoders, we recommend using the MPEG-1 standard of vcodec=mp1v, acodec=mpga, and mux=mpeg1. See the MPEG Wiki page for more details on the other MPEG standards.

To save a file in a different codec, you can use the streaming wizard or transcode from the command prompt with a command like this:

vlc file --sout='#transcode{vcodec=mp1v, vb=1024, acodec=mpga, ab=128}:std{access=file, mux=mpeg1, dst=C:\file_name.mpg}'

Video Codecs

Use the "name" part in your vcodec=... commands

name description
mp1v MPEG-1 Video - recommended for portability
mp2v MPEG-2 Video - used in DVDs
mp4v MPEG-4 Video
SVQ1 Sorenson Video v1
SVQ3 Sorenson Video v3
DVDv VOB Video - used in DVDs
WMV1 Windows Media Video v1
WMV2 Windows Media Video v2
WMV3 Windows Media Video v3, also called Windows Media 9 (unsupported)
DVSD Digital Video
MJPG MJPEG
H263 H263
h264 H264
theo Theora
IV20 Indeo Video
IV40 Indeo Video version 4 or later
RV10 Real Media Video
cvid Cinepak
VP31 On2 VP3
FLV1 Flash Video
CYUV Creative YUV
HFYU Huffman YUV
MSVC Microsoft Video v1
MRLE Microsoft RLE Video
AASC Autodesk Animator Studio Codec RLE Video
FLIC FLIC video
QPEG QPEG Video
VP8 VP8 Video

Audio Codecs

Use the "name" part in your acodec=... commands

name description
mpga MPEG audio (recommended for portability)
mp3 MPEG Layer 3 audio
mp4a MP4 audio
a52 Dolby Digital (A52 or AC3)
vorb Vorbis
opus Opus
spx Speex
flac FLAC

No-"name" Codecs

Subtitle Codecs

See Subtitles codecs for more information.

CVD CVD
SVCD (Overlay Graphics) SVCD Subtitle (OGT) Information
SRT SubRip
SSA/ASS SubStation Alpha
SubViewer SubViewer
VobSub VobSub
DVD subtitles DVD subtitles
DVB subtitles DVB subtitles
VPlayer Vplayer
MicroDVD MicroDVD
SAMI SAMI

Muxers

Use the "name" part in your mux=... commands

name description
mpeg1 MPEG-1 multiplexing - recommended for portability. Only works with mp1v video and mpga audio, but works on all known players
ts MPEG Transport Stream, primarily used for streaming MPEG. Also used in DVDs
ps MPEG Program Stream, primarily used for saving MPEG data to disk.
mp4 MPEG-4 mux format, used only for MPEG-4 video and MPEG audio.
avi AVI
asf ASF
dummy dummy output, can be used in creation of MP3 files.
ogg Xiph.org's ogg container format. Can contain audio, video, and metadata.

See Also

Help VideoLAN by adding to this page!
Create an account to start editing, and then click here to add to this article.