From Wikipedia, "a codec is a device or computer program capable of encoding and/or decoding a digital data stream or signal."
In general, codecs are utilized by multimedia applications to encode or decode audio or video streams. In order to play encoded streams, users must ensure an appropriate codec is installed.
Playing multimedia content requires two components:
- A capable media player
- The appropriate codec
It is not always necessary to explicitly install codecs if you have installed a media player. For example, MPlayer pulls in a large number of codecs as dependencies, and also has codecs built in.
List of codecs
Lossless audio codecs
- Apple Lossless (ALAC) — A lossless audio compression codec developed by Apple and deployed on all of its platforms and devices.
- https://alac.macosforge.org/ || AUR
- FLAC — Free Lossless Audio Codec.
Lossy audio codecs
|Musepack (MPC)||– 1|
- mppenc is not packaged.
- CELT — Open, royalty-free lossy audio codec, optimized for low latency.
- http://www.celt-codec.org/ || AUR
- LAME — MP3 encoder and graphical frame analyzer.
- liba52 — Free library for decoding ATSC A/52 (Dolby Digital) streams (lossy).
- libdca — Free library for decoding DTS Coherent Acoustics streams.
- MAD — High-quality MPEG audio decoder.
- opencore-amr — Open source implementation of the Adaptive Multi Rate (AMR) speech codec.
- Opus — Open, royalty-free, lossy audio codec, designed for speech and general audio coding and low latency.
- Speex — Patent-free, lossy audio compression format designed for speech.
- Vorbis — Open, patent-free, lossy audio codec.
- Advanced Audio Coding (AAC) is a proprietary audio coding standard for lossy digital audio compression. Designed to be the successor of the MP3 format, AAC generally achieves better sound quality than MP3 at the same bit rate.
- FAAC — Proprietary AAC audio encoder.
- FAAD2 — ISO AAC audio decoder.
- Fraunhofer FDK AAC — OpenCORE Framework implementation Advanced Audio Coding (AAC) encoder. Modified library of Fraunhofer AAC decoder and encoder.
- https://sourceforge.net/projects/opencore-amr/ || (codec library) (CLI frontend for libfdk-aac)
- Nero AAC — Nero AAC reference quality MPEG-4 and 3GPP audio codec. (deprecated)
- JasPer — Software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard.
- OpenJPEG — Open source JPEG 2000 codec.
- https://www.openjpeg.org/ || AUR
- WebP — An image format employing both lossy and lossless compression. It is currently developed by Google.
- AV1 Image File Format (AVIF) — Image format based on the AV1 video codec.
- High Efficiency Image File Format (HEIF) — Image format based on the HEVC video codec. Often in a HEIC container.
- JPEG XL — Royalty-free image format developed by the Joint Photographic Experts Group which aims for broad usage, capable of re-encoding JPEGs while avoiding generation loss.
See also Wikipedia:Comparison of video codecs.
|AV1||, (decode), (encode),|
|MPEG-4||Xvid ( )|
|VP8, VP9||, AUR|
- AV1 — AOMedia Video 1 (AV1) is a successor codec to Google's VP9, Mozilla's Daala, Cisco's Thor. aom is the reference implementation of both encoding and decoding. dav1d is the performance focused decoder. rav1e is performance focused encoder. Most benchmark show better performances with svt-av1 than rav1e.
- Daala — Research video codec under development by the Xiph.Org Foundation and sponsored by the Mozilla Foundation. The goal of the project is to provide a free to implement, use and distribute digital media format and reference implementation with technical performance superior to h.265.
- https://www.xiph.org/daala/ || AUR
- libde265 — Open source implementation of the h.265 video codec.
- libdv — The Quasar DV codec (libdv) is a software codec for DV video.
- libmpeg2 — Library for decoding MPEG-1 and MPEG-2 video streams.
- Schrödinger — Advanced royalty-free video compression format designed for a wide range of uses, from delivering low-resolution web content to broadcasting HD and beyond, to near-lossless studio editing.
- Theora — Open video codec developed by the Xiph.org.
- VP9 — High-quality, open video format for the web that's freely available to everyone. Improved version of earlier VP8 codec.
- x264 — Free library for encoding H264/AVC video streams.
- x265 — Open-source project and free application library for encoding video streams into the H.265/High Efficiency Video Coding (HEVC) format.
- Xvid — Open source MPEG-4 video codec.
Container format tools
- MKVToolNix — Set of tools to create, edit and inspect Matroska files.
- MP4Joiner — A collection of GUI tools to manipulate MP4 files (MP4Joiner, MP4Splitter).
- https://www.mp4joiner.org/ || AUR
- OGMtools — Information, extraction or creation for OGG media streams.
- GStreamer is a library for constructing graphs of media-handling components. The applications it supports range from simple Ogg/Vorbis playback, audio/video streaming to complex audio (mixing) and video (non-linear editing) processing.
Simply, GStreamer is a backend or framework utilized by many media applications. See GStreamer article.
- xine is a free multimedia player. It plays back CDs, DVDs, BluRays and VCDs. It also decodes multimedia files like AVI, MOV, WMV, and MP3 from local disk drives, and displays multimedia streamed over the Internet.
As an alternative to GStreamer, many media players can be configured to utilize the xine backend provided by.
Note that the xine project itself provides a capable video player,.
libavcodec is part of the FFmpeg project. It includes a large number of video and audio codecs. The libavcodec codecs are included with media players such as MPlayer and VLC, so you may not need to install the package itself.
Tips and tricks
No H264, mpg4 or Musepack (.mpc) in Totem Player
If you see the "The H264 plugin is missing" warning with Totem media player, install .
No H264 in Parole Player
If you see the "Parole needs H.264 decoder to play this file" warning with Parole media player, install .