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

1364 questions
-1
votes
1 answer

How to save bytes to file as binary mode

I have a bytes-like object something like: aa = b'abc\u6df7\u5408def.mp3' I want to save it into a file in binary mode. the codes are below, but not work well if __name__=="__main__": aa = b'abc\u6df7\u5408def.mp3' …
-1
votes
1 answer

Unity - Video codec for older mobile devices

I am searching for a video codec for Unity that will run on older mobile devices. I have tried H264 and VP8, but I have not been successful. Below IOS 10 is where I experience the issue. Do you have any suggestions? Thank you.
-1
votes
1 answer

Parsing Opus TOC Byte

For working with the Opus audio codec, I need to parse a TOC byte from a char buffer and extract the config, s and c segments, each representing a number. I would need to store these numbers into separate variables for further use and am wondering…
A Coder
  • 17
  • 6
-1
votes
1 answer

JPEG2000 : Can number of tiles in X direction be zero?

According to JPEG2000 specs, Number of tiles in X and Y directions is calculated by following formula: numXtiles =  (Xsiz − XTOsiz)/ XTsiz & numYtiles =  (Ysiz − YTOsiz)/ YTsiz But it is not mentioned about the range of numXtiles or…
-1
votes
1 answer

FFmpeg transcoding mpeg2 to H264 and compare frames

I have the following mpeg2 source file: Stream #0:0[0x900]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 16:15 DAR 4:3], 4540 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc And transcoding it to H264 with the…
Ivan Kolesnikov
  • 1,659
  • 1
  • 18
  • 41
-1
votes
1 answer

what is the rtp payload value for amr-nb codec?

I found Rtp payload values for PCMU=0 and G729=18 etc.But I cant find value for AMR.I search in this link Rtp_parameters
Nidhin
  • 1,668
  • 19
  • 20
-1
votes
1 answer

Incorrect Codec Parameters While using '-acodec' option while Working with FFMPEG

I am working with FFMPEG Library. I am capturing streams in particular compression codes to the destination file with the specified format with the following command: ffmpeg -i rtsp://username:password@server-ip/filename -acodec adpcm_ms -t 10 -f…
Bilal Ahmed Yaseen
  • 1,914
  • 1
  • 19
  • 39
-1
votes
1 answer

What choices do I have if I want to play video file android MediaPlayer can not play?

I am writing a video player, then I find that android.media.MediaPlayer just cannot play the video because it cannot decode the video file. The amazing thing is that I tried to play a mp4 file in my device for many times, it didn't succed, then I…
roger
  • 6,477
  • 13
  • 55
  • 102
-1
votes
1 answer

Then QFiledialog without 'DontUseNativeDialog' occurs messy code

I build a QT project on CentOS 7.I have changed the /etc/locale.conf to 'zh_CN.gb2312'. when I open QFiledialog without 'DontUseNativeDialog' to chose a file , the file name displays in the dialog occurs messy code, even I add these following code…
cyberpunker
  • 39
  • 1
  • 1
  • 7
-1
votes
5 answers

Colon operator in C/C++

I'm trying to implement a decoder for a codec, and while reading the whitepaper I stumbled across this Variable > 96000 ? 4 : 2; what does the question mark ? and the colon : between those two numbers do? I've never seen this before (although I…
user4302383
-1
votes
1 answer

How do I add org.apache.commons.codec.binary.Base64 to my JDK

I got this error while compiling a program. I have downloaded the codec needed, i just need to know which folder to add it to. package org.apache.commons.codec.binary does not exist I am compiling the program from console.
Samson Akanbi
  • 33
  • 2
  • 6
-1
votes
1 answer

Codec addition In android application

I have developed an application for void calling using SIP protocol .Currently I am using GSM codec which is provided by android by default.But now I want to use G729 codec and I don't have any idea how to use that codec .So can any one give me some…
Bansal_Sneha
  • 1,039
  • 12
  • 36
-1
votes
2 answers

Pure Java G.722 Implementation

I'm creating a VoIP softphone written in Java, and currently I have the G.711 codec implemented (all through Java, no native code). I want to expand the codecs available, though everywhere I look, such as with projects like Jitsi, instead of writing…
hotforfeature
  • 2,468
  • 1
  • 13
  • 24
-1
votes
1 answer

Transcoding from H.264/AVC to HEVC in Asterisk 11

Is it possible to develop a H.264 to HEVC transcoder for asterisk as it doesn't have native support for H.265/HEVC ? If so, how would I put my transcoder into use?
Hari
  • 1,511
  • 15
  • 34
-2
votes
1 answer

UnicodeEncodeError: 'latin-1' codec can't encode character when running exe program

I am attempting to run an existing program on a computer while overseas. When I click to run the .exe program it states to see the log file. When viewing the logfile it says: Traceback (most recent call last): File "itchycats.py", line 1249, in…
1 2 3
90
91