如何知道mp3文件的位深度? [英] How to know the bit depth of a mp3 file?

查看:130
本文介绍了如何知道mp3文件的位深度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MP3文件头仅包含采样率和比特率,因此解码器无法从头中计算出比特深度.也许只能从比特率中猜测?但是比特率随帧而变化.

A MP3 file header only contain the sample rate and bit rate, so the decoder can't figure out the bit depth from the header. Maybe it can only guess from the bit rate? But the bit rate is varying from frame to frame.

这里是问这个问题的另一种方法:如果我将24位WAV编码为mp3,那么如何将24位信息存储在此mp3中?

Here is another way to ask this question: If I encoder an 24 bit WAV to mp3, so how does the 24-bit info stored in this mp3?

推荐答案

当压缩源WAV时,原始位深度信息将被丢弃".这是设计用于任何压缩的音频编解码器,因为重点是要使用尽可能少的位来存储相同"音频.

When the source WAV is compressed, the original bit depth information is "thrown away". This is by design in any compressed audio codec since the whole point is to use the least bits possible to store the "same" audio.

在内部,MP3使用霍夫曼符号存储处理后的音频数据.因此,没有要报告的真正位深度".

Internally, MP3 uses Huffman symbols to store the processed audio data. As such, there's no real "bit depth" to report.

这篇关于如何知道mp3文件的位深度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆