开发者

How to determine the codec of an audio file on Windows?

开发者 https://www.devze.com 2023-02-22 17:27 出处:网络
I need to find the codec of an audio file. How can I do this? Do I need to write code to do this or is there a simpler way?

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

Do I need to write code to do this or is there a simpler way?

P开发者_如何学Pythonlease help me. If possible share helpful links.


The good old file utility will reveal lots of information about audio files, sometimes including the codec:

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


@bhebsquines

"It is important to distinguish between a file format and an audio codec. A codec performs the encoding and decoding of the raw audio data while the data itself is stored in a file with a specific audio file format. Although most audio file formats support only one type of audio data (created with an audio coder), a multimedia container format (as Matroska or AVI) may support multiple types of audio and video data." - http://en.wikipedia.org/wiki/Audio_file_format

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

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

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


You can identify your codec by extenion name itself example file1audio.mp3 or fileaudio.avi, .mp3, .avi will be your file type or codec, you can use k-lite codec pack for your different type audio format. use this link http://www.free-codecs.com/download/k_lite_codec_pack.htm

0

精彩评论

暂无评论...
验证码 换一张
取 消