How to determine the audio codec of a file in Windows?

I need to find the codec of the audio file. How can i do this?

Do I need to write code for this or is there an easier way?

Please help me. Share useful links if possible.

+4
source share
3 answers

A good old file utility will show a lot of information about audio files, sometimes including a codec:

 $ file X.wav X.wav: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, mono 16000 Hz 
+7
source

@bhebsquines

“It is important to distinguish between the file format and the audio codec. The codec encodes and decodes the raw audio data, while the data itself is stored in a file with a specific audio file format. Although most audio files support only one type of audio data (created using an audio encoder), the format of the multimedia container ( like Matroska or AVI) can support several types of audio and video data. " - http://en.wikipedia.org/wiki/Audio_file_format

The gspot application does a good job of extracting codecs from audio and video files.

http://www.headbands.com/gspot/

run it and drag the file into the window. It will pull all the data from there. Please note that some audio files will not display the codec as they are made from the "Raw" sound.

+3
source

You can define your codec by the example extenion file1audio.mp3 or fileaudio.avi, .mp3, .avi will be your file type or codec, you can use the keclite codec for your other audio format. use this link http://www.free-codecs.com/download/k_lite_codec_pack.htm

-4
source

Source: https://habr.com/ru/post/1346716/


All Articles