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
- ALAC — Data compression method which reduces the size of audio files with no loss of information.
- https://alac.macosforge.org/ || AUR
- CELT — Compression algorithm for audio. Like MP3, Vorbis, and AAC it is suitable for transmitting music with high quality. Unlike these formats CELT imposes very little delay on the signal, even less than is typical for speech centric formats like Speex, GSM, or G.729.
- Daala — New video compression technology. The effort is a collaboration between Mozilla Foundation, Xiph.Org Foundation and other contributors. 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
- FAAC — Proprietary AAC audio encoder.
- FAAD2 — ISO AAC audio decoder.
- FLAC — Free Lossless Audio Codec.
- Fraunhofer FDK AAC — Complete, high-quality audio solution to Android (and Linux) users.
- JasPer — Software-based implementation of the codec specified in the emerging JPEG-2000 Part-1 standard.
- LAME — MP3 encoder and graphical frame analyzer.
- liba52 — Free library for decoding ATSC A/52 streams.
- libdca — Free library for decoding DTS Coherent Acoustics streams.
- libde265 — Open source implementation of the h.265 video codec.
- https://github.com/strukturag/libde265 || AUR AUR
- libdv — The Quasar DV codec (libdv) is a software codec for DV video.
- libmpeg2 — Library for decoding MPEG-1 and MPEG-2 video streams.
- MAD — High-quality MPEG audio decoder.
- Musepack — Audio compression format with a strong emphasis on high quality. It's not lossless, but it is designed for transparency, so that you won't be able to hear differences between the original wave file and the much smaller MPC file. It is based on the MPEG-1 Layer-2 / MP2 algorithms, but since 1997 it has rapidly developed and vastly improved and is now at an advanced stage in which it contains heavily optimized and patentless code.
- Nero AAC — AAC audio codec (decode/encode/tag) all-in-one.
- opencore-amr — Open source implementation of the Adaptive Multi Rate (AMR) speech codec.
- Opus — Totally open, royalty-free, highly versatile audio codec. Opus is unmatched for interactive speech and music transmission over the Internet, but is also intended for storage and streaming applications. It is standardized by the Internet Engineering Task Force (IETF) as RFC 6716 which incorporated technology from Skype's SILK codec and Xiph.Org's CELT codec.
- http://www.opus-codec.org/ || AUR
- 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.
- Speex — Patent-free audio compression format designed for speech.
- Theora — Open video codec developed by the Xiph.org.
- Vorbis — Completely open, patent-free, professional audio encoding and streaming technology.
- VP8 — High-quality, open video format for the web that's freely available to everyone.
- http://www.webmproject.org || AUR
- WavPack — Audio compression format with lossless, lossy, and hybrid compression modes.
- 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.
- http://x265.org/ || AUR
- Xvid — Open source MPEG-4 video codec.
- GStreamer is a library for constructing graphs of media-handling components. The applications 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 (gpl-licensed) high-performance, portable and reusable multimedia playback engine. xine itself is a shared library with an easy to use, yet powerful API which is used by many applications for smooth video playback and video processing purposes.
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
Install MPlayer binary codecs
As an ultimate solution, you can try to install MPlayer binary codecs.
If you are not able to play some files go to http://www.mplayerhq.hu/design7/dload.html, read the instructions and install the codec you need to play your files.
They can also be found in theAUR and AUR packages.
No H264, mpg4 or Musepack (.mpc) in Totem Player
If you see the "The H264 plugin is missing" warning with Totem media player, just install the Gstreamer libav library to fix it install.