Questions tagged [codec]

Codec is an implementation of compression and decompression of digital data streams and signals in different scales. Digital data like audio, video and electronic documents are been compressed and decompressed using codecs.

A codec can consist of two components: an encoder and a decoder. The encoder performs the compression (encoding) function and the decoder performs the decompression (decoding) function. Some codecs include both of these components and some codecs only include one of them.

There is mainly two kind of data compression technique.

  1. Lossless
  2. Lossy

Lossless Data Compression
Lossless data compression allows the exact original data to be reconstructed from the compressed data.

Lossy Data Compression
Lossy compression is a data encoding method that compresses data by discarding (losing) some of it. The procedure aims to minimize the amount of data that need to be held, handled.

List of Different Codecs
Wikipedia Codec List According to Catagory

FAQs
FAQ about Codecs by Microsoft
Codec Guide FAQ

Other Useful Links
Microsoft codec programming guide
ffmpeg codec programming
Codecguide

1497 questions
9
votes
4 answers

Create video from images

Is there a way to create a video from a series of images on android? Maybe a way to extend the MediaRecorder and being able to take images as input. I try to really create the video and store it (as an mpeg4 file for instance). Thanks for any…
HiddenDev
  • 183
  • 4
  • 9
9
votes
2 answers

How to open a HEIF (.heic) image?

For a c++ project, I need to open and show a HEIF (.heic) image. What I know (if I'm right) is that the HEIF images are based on the ffmpeg standard, and requires a H265 codec to be read. I found several open-source H265 codecs: OpenHEVC…
Jean-Milost Reymond
  • 1,833
  • 1
  • 15
  • 36
9
votes
5 answers

MongoDB: Register codecs (Java)

I've been trying for about an hour now to register a codec I made for one of my classes in a game I am working on. The class is called Item. I tried the code and suggestions from these 3…
vedi0boy
  • 1,030
  • 4
  • 11
  • 32
9
votes
2 answers

How to know the bit depth of a mp3 file?

A MP3 file header only contain the sample rate and bit rate, so the decoder can't figure out the bit depth from the header. Maybe it can only guess from the bit rate? But the bit rate is varying from frame to frame. Here is another way to ask this…
user991800
  • 385
  • 2
  • 5
  • 13
9
votes
1 answer

Android Media Codec video decoding

This is my first question so please let me know if I missed anything! Using Android API 16's new Media Codec implementation to try and decode a video so that I can send frames to be applied as a texture (the texture part is already done). So I have…
James
  • 93
  • 1
  • 1
  • 5
9
votes
2 answers

OPUS Audio codec encoding for iPhone

Can the recently released OPUS Audio codec (libopus?) be compiled to run on mobile devices (read iPhone/Android)? I've searched and came to the conclusion that te documentation states it runs on ARM devices but after trying to compile the library it…
Agah PT
  • 130
  • 1
  • 9
8
votes
4 answers

How to get video codec properties of video?

I need to extract the codec properties like bit rate frames resolution file format of video captures from camcorder.
RanjitRock
  • 1,421
  • 5
  • 20
  • 36
8
votes
1 answer

MediaRecorder captured on Chrome not playable on Mobile or Safari

Goal: use MediaRecorder (or else) api to produce video files that are viewable cross platforms. Fail: current api falls back to container/codec on google chrome which is only viewable on chrome and advanced desktop media players but not on Safari or…
David Ben Ari
  • 2,259
  • 3
  • 21
  • 40
8
votes
1 answer

Pandas: UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 0-1: invalid continuation byte

community. I want to open a CSV using pandas and perform analysis on it. Please, help as I am not able to open the CSV itself. I tried opening it with UTF-8, Latin-1, and ISO-8859-1 encoding. It didn't work.…
Sezal Chug
  • 81
  • 1
  • 1
  • 3
8
votes
3 answers

Is the leading structure in MP3 file a real frame?

I'm now doing some work with decoding MP3 files, but just have some basic knowledge about the MP3 file. I implement a simple decoder for MP3 these days. When comparing the decoded result with that of Maaate decoder, I encounter this problem. My…
Summer_More_More_Tea
  • 12,740
  • 12
  • 51
  • 83
8
votes
3 answers

How to determine the codec of an audio file on Windows?

I need to find the codec of an audio file. How can I do this? Do I need to write code to do this or is there a simpler way? Please help me. If possible share helpful links.
stinepike
  • 54,068
  • 14
  • 92
  • 112
8
votes
1 answer

Convert isom to mp42

How do I convert a video from ISOM to MP42? Using FFMPEG in particular? There is no such an option to specify that. General Complete name : C:\wamp\www\tree.mp4 Format : MPEG-4 Format…
Jeffrey.K.
  • 127
  • 1
  • 2
  • 7
8
votes
1 answer

FFMpeg - How to copy codec ( video and audio ) from 'mp4' container to 'ts' container

i have this ffmpeg command ffmpeg -i c:\input.mp4 -vcodec copy -acodec copy -vbsf h264_mp4toannexb c:\output.ts. The above command successfully converts input.mp4 to output.ts. I need to implement the same functionality via code (using the ffmpeg…
Febin
  • 105
  • 1
  • 2
  • 7
8
votes
1 answer

Open() and codecs.open() in Python 2.7 behave strangely different

I have a text file with first line of unicode characters and all other lines in ASCII. I try to read the first line as one variable, and all other lines as another. However, when I use the following code: # -*- coding: utf-8 -*- import codecs import…
Kriattiffer
  • 617
  • 2
  • 8
  • 20
8
votes
2 answers

AAC ADTS raw data strange header

I got some ADTS AAC raw data from somewhere(actually it is extracted from a demuxed file) and in theory it should be corrected encoded. it looks like this: Frame1: 21 19 94 ED A1 09 45 58 09 40 02 CA AA 85 D4 E5 C5 58 A9 73 00 0C 75 1C 5D A7 4E 52…
user991800
  • 385
  • 2
  • 5
  • 13