mp3gain - 从命令行获取信息


mp3gain - getting information from the commandline

我正在从命令行使用 mp3gain ( http://mp3gain.sourceforge.net/),并希望获取单轨文件的音量级别

我想:

-- 使用一些我无法解决的标志,它只会返回音量

-- 弄清楚如何使用 shellscript 或 php 解析 -o 标志输出,以便我可以可靠地提取该数字

啪!

在 2022 年 8 月,mp3gain输出不包括音量。以下是我使用-x开关拍摄我最喜欢的歌曲 foo 时的内容:

foo.mp3
Recommended "Track" dB change: -11.390000        
Recommended "Track" mp3 gain change: -8
Max PCM sample at current gain: 82207.601562
Max mp3 global gain field: 189
Min mp3 global gain field: 133
Recommended "Album" dB change for all files: -11.390000
Recommended "Album" mp3 gain change for all files: -8

也许mp3全局增益场可以解释为音量?