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

FFMPEG h264_amf encoder crashes on high resolutions

I have an AMD GPU (R7 370) and trying to change resolution of videos using GPU. While using h264 codec which utilizes CPU it can change resolution of videos however when i try using h264_amf encoder to utilize GPU instead of CPU it crashes and gives…
BT_02
  • 1
  • 1
-1
votes
0 answers

I want deploy my project but facing issue?

I want to deployment of my react project and as usually I did first step npm run build and its success but next step I run npm i serve its failed and I cant able to do further process its shows me error .. I have tried everything but its not…
-1
votes
1 answer

Play each frame once at fixed rate in ffmpeg

I have a bunch of videos at various frame rates, some with variable frame rate. First, I wish to play back every frame only once, at 24 fps, no exceptions. I do not want any extra frames or dropped frames. I know that the play length may well…
Wei Hong
  • 13
  • 5
-1
votes
1 answer

Visual Studio (Python) Unicode Decode Error x

I am trying to run a code on a friend's PC. The same code runs perfectly fine on my PC. But, is generating the following error on my friend's PC: 'utf-8' codec can't decode byte 0xd4 in position 2523: invalid continuation byte File…
user11427018
  • 129
  • 1
  • 6
-1
votes
1 answer

Custom h.264 streams broken in some hardware decoders

I've been banging my head against a wall on this one. I'm working on a mechanism to code data into a valid h.264 stream. I've gotten it working and it plays back with tools like mplayer, celluloid, and vlc (software, VA-API and VA-API with DRM),…
Charles Lohr
  • 695
  • 1
  • 8
  • 23
-1
votes
2 answers

Why am I getting this UnicodeDecodeError during a Mysql SELECT query?

I'm running a pretty basic script that is querying a MySQL table, but I'm running into an error that I can't find online. I see a lot of charmap/codec related issues online, but all have to do with reading text or data. This error is happening when…
DobotJr
  • 3,929
  • 9
  • 36
  • 49
-1
votes
1 answer

Python 2.7.5: UnicodeEncodeError: 'ascii' codec can't encode character u'\xa3' in position 570: ordinal not in range(128)

I have the following line of code inside a loop that goes through the records of a database table and print out the comment field: output_file.write("\nTimesheet comment: {}".encode('utf-8').format(timesheet.comments)) it gives the following…
Dino
  • 1,307
  • 2
  • 16
  • 47
-1
votes
3 answers

FLAC or OGG Online Media player

Is there a way to make an audio/video player in Java that can play on a website? I searched around but I don't understand enough yet for this. We are going to setup a server that can stream OGG and FLAC audio files. We need a player that can play…
Mechlar
  • 4,946
  • 12
  • 58
  • 83
-1
votes
1 answer

how to decode h264 data from rtsp stream directively to BGR24 pixel format for cv::Mat or cv::cuda::GpuMat with ffmpeg c lib on NVIDIA GPU?

I want decode h264 dirctively to cv::Mat or cv::cuda::GpuMat without sws_scale to saving CPUs. So is there any way to make it realized? thanks in advance.
Wussup
  • 17
  • 5
-1
votes
1 answer

I am trying to decode a compressed rtp packet to evs and make it into a wav file

I am trying to decode a compressed rtp packet to evs and make it into a wav file. I use C language in Redhat 6.8 64bit environment. I have rtp packet dump ( evs ) I used EVS_dec in 3GPP TS 26.443 V15.1.0. C source code. rtp packet -> g.192 format…
-1
votes
1 answer

Open online txt file using python codecs.open

I am trying to open an online txt file using codecs.open. The code I have now is: url = r'https://www.sec.gov/Archives/edgar/data/20/0000893220-96-000500.txt' soup = BeautifulSoup(codecs.open(url, 'r',encoding='utf-8'), "lxml") However, Python…
dara wong
  • 37
  • 5
-1
votes
1 answer

Video Encoding with Java

How do I encode video in Java? Should it be OGG or any other open format?
-1
votes
2 answers

FFmpeg check channels of a 7.1 audio for silence

This is a follow-up question from my previous question asked here, where I needed to look for silence within a specific audio track. Here is the ffmpeg life-saver solution where helps to get some metadata: ffmpeg -i file -map 0:a:1 -af astats -f…
Tina J
  • 4,983
  • 13
  • 59
  • 125
-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.