An audio codec is a component that contains a set of algorithms that allow audio data to be encoded and decoded. This means that the number of bits occupied by the audio file is reduced.
These codecs are used to compress signals or audio files with a data stream to achieve good quality and reproduce or process them in a more suitable format.
Compression is applied using software or hardware. There is currently a wide variety of audio codecs.
Although audio codecs are more complex and have additional features, perceptual encoders are divided into four groups as auditory threshold, temporal and frequency masking depending on the method of encoding or reducing the bitrate.
Video codec is a type of codec that enables you to compress and decompress digital video. Compression algorithms normally used can cause information loss.
The biggest problem with codecs is that they take up too much space on a typical storage media such as a hard disk, CD or DVD.
This is why it was preferred to create and use these compression algorithms in real time. The goal of these algorithms is to achieve significantly less video size.
In this case, information is compressed when saved to a file and decompressed in real time during viewing.
There is a difficult balance in video quality between the amount of data, the complexity of encoding and decoding algorithms, robustness against data loss and errors, ease of editing, the ability to directly access frames, and other factors.