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
-2
votes
0 answers

ffmpeg 2 pass encoding- understand the statistics in the output .log file

I am using 2 pass encoder to encode my input video with a target bitrate. I want to get the encoder (x264) statistics from the first pass- these statistics are written to ffmpeg2pass.log the output for each frame looks like that: in:2 out:2 type:B…
Yaelvi
  • 1
-2
votes
1 answer

python openCV codec info

Let's say there are some mov files. I want to know what codec each mov is using. Can anyone help me? I need to get "h264" as in the image, not Input(AVC1). import cv2 import glob mov_files = glob.glob('*.mp4') for eachFile in mov_files: cap =…
J.Shim
  • 71
  • 4
-2
votes
1 answer

Firefox video support

I want to play html5 videos in my page but there are certain videos that cannot be played in firefox or edge, but can be played in chrome. Firefox says "Video can't be played because the file is corrupt." and edge just doesn't play it, no error or…
-2
votes
1 answer

How to add a new audio (not mixing) into a videos using ffmpeg (Batch Processing)?

I'm looking for a solution to add a new audio (not mixing) into a multiple videos using ffmpeg. I have 3 directories: 1. videos (contains *.mp4 videos) 2. audio (contains single audio.mp3 file) 3. ready (output folder) For single video processing…
Kris
  • 85
  • 6
-2
votes
1 answer

Can't read a line in a file: UnicodeDecodeError

I am reading lines from a text file. The lines has two fields separated by the special character . The code: result = open("myresult"+now.strftime("%d%m%Y-%H%M%S")+".txt","a") inFile = open("test.txt","r") x=1 for i in inFile: …
None
  • 241
  • 3
  • 12
-2
votes
2 answers

Reinterpret cast in c

I have some operation like this C++ code that I want to convert in C89: return reinterpret_cast(stream.buffer) - buffer; How can I replace the reinterpret cast in C?
richerarc
  • 220
  • 1
  • 8
-2
votes
1 answer

ffmpeg formats which allow freq above 18khz

Can anyone suggest me what audio and video codecs allows me to retain frequencies above 18khz till 22050hz in the resultant mp4 or avi video with out any filters. No limit for size and HD is preferred.
-2
votes
1 answer

ffmpeg giving two parameters to vcodec

Below is the ffmpeg command to convert still images into video with the delay of 5 seconds to each image. ffmpeg -f image2 -r 1/5 -i img%03d.png -vcodec libx264 out.mp4 This command is working fine. I just wanted to know, whether it is possible to…
Narendra Singh
  • 4,513
  • 5
  • 30
  • 75
-2
votes
2 answers

Reading h.246 NAL header info

Looking for more detailed info on how to read the NAL header and more specifically the SPS (sequence parameter set) NAL unit. Here are two…
Tony
  • 6,524
  • 7
  • 27
  • 40
-4
votes
2 answers

OpenCV capture doesn't work gets this problem MFVideoFormat_RGB24(codec not found),how can i solve?

I am making a python app i need openCV library here is my code: # importing the required modules import cv2 import numpy as np # capturing from the first camera attached cap = cv2.VideoCapture(0) # will continue to capture until 'q' key is…
-4
votes
1 answer

PCM stream real-time music compression

How can I compress a 44.1kHz sampled, 16-bit PCM real-time music data stream to reduce its size and send it over an AXI4 Stream interconnect in a Zynq Z7020? Can anyone suggest a codec for such a use-case and maybe links to its implementation?
Alex P
  • 436
  • 2
  • 9
-4
votes
1 answer

I have to describe the functioning of HEVC in few words

It works by comparing different parts of a video frame in order to find the ones that are redundant within the subsequent frames. These areas are replaced with a short information, describing the original pixels. Is this correct? How would you…
-4
votes
1 answer

Fixed point to floating point data

I recive 24 bits fixed-point data from a CODEC (ADC) by TDM transmission. Then data is stored into a int buffer (32 bits). I want to convert this to float data. I tried: g_analog_input_chL_mean = (((float)(*rx_block_pointer[buffer_cntr] << 8)) *…
-4
votes
2 answers

AMR codec Native Support in Windows phone 8.1

Is there any way to Support Amr Codec, As of now for research, using WASAPI and XAudio2 APIs i didn't able to find anything most intesting that is telling Amr supported. but microsoft supported codec seen below link…
1 2 3
90
91