Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要任意音频格式(mp3、wav、acc、flac、opus、ogg 等)的位深度
为此我尝试了
AVStream.codecpar.bits_per_raw_sample;
并且
AVStream.codec.bits_per_raw_sample;
但除了 flac 都返回 0。
ffprobe 也不输出位深度,只输出样本格式(s16、fltp 等)。
如何获得位深度?
还是我必须从样本格式中“导出”它?