And*_*rea 13 mp3 ogg-vorbis replaygain
我一直使用 FooBar2000 将 ReplayGain 标签添加到我的音乐库(由 .mp3 或 .ogg 文件组成)。在我的新电脑上,我不想只为这个任务安装 Wine。
是否有任何本机工具可以用于相同目的?
我不介意它们是否只是命令行,或者为 mp3 和 ogg 使用两个不同的程序,但我想绝对确定它们只写一个标签,否则不会弄乱原始文件,例如实际上以不同的音量重新编码。
N.N*_*.N. 10
有用于计算 ReplayGain 值和添加 ReplayGain 标签的命令行工具。要安装 mp3、ogg 和 FLAC 工具,请执行以下操作:
sudo apt-get install mp3gain vorbisgain flac
Run Code Online (Sandbox Code Playgroud)
然后要将 ReplayGain 标签添加到包含目录中所有文件的专辑,请对 mp3 执行以下操作:
mp3gain -a *.mp3
Run Code Online (Sandbox Code Playgroud)
对于专辑在 ogg vorbis 中的相同任务,请执行以下操作:
vorbisgain -a *.ogg
Run Code Online (Sandbox Code Playgroud)
对于专辑在 FLAC 文件中时的相同任务,请执行以下操作:
metaflac --add-replay-gain *.flac
Run Code Online (Sandbox Code Playgroud)
如果您想将 ReplayGain 标签添加到不是专辑的文件,请使用and-r选项(没有对应的选项):mp3gainvorbisgainmetaflac
mp3gain -r *.mp3
vorbisgain -r *.ogg
Run Code Online (Sandbox Code Playgroud)
所有工具也可用于移除 ReplayGain 标签。
与往常一样,在进行任何文件修改之前,请确保您有备份。这些工具我从来没有遇到过问题,但我不能保证它们是故障安全的(此外,您的计算机可能会崩溃,或者您可能会在此过程中途断电)。
与其“有点害怕”或点击不相关的链接,为什么不简单地阅读手册呢?
\n\n从man mp3gain:
mp3gain optionally writes gain adjustments directly into the encoded data. In this\n case, the adjustment works with all mp3 players, i.e. no support for a special tag\n is required. This mode is activated by any of the options -r, -a, -g, or -l.\n\n If none of the above options are given, the recommended gain change is instead writ\xe2\x80\x90\n ten to a special tag in the mp3 file. In this case, the adjustment only works with\n mp3 players that support this tag. Some mp3 players refer to this as ReplayGain.\n The tag is written either in APEv2 format (default) or in ID3v2 format (with -s i).\n If you only want to print the recommended gain change (and not modify the file at\n all) you may use the -s s (skip tag) option.\nRun Code Online (Sandbox Code Playgroud)\n\n因此,如果您告诉它,它只会修改音频流,否则它只会写入标签。
\n\n旁注:评论中发布的许多 URL 与 Ubuntu 中的当前版本无关mp3gain:它们要么非常过时,要么引用Windows版本。
每当对给定命令的工作方式有疑问时,请务必man先尝试。如果这还不够(或者没有可用的手册页),请使用正确的上游网站,可以在Ubuntu 的软件包页面中检查该网站。
| 归档时间: |
|
| 查看次数: |
11338 次 |
| 最近记录: |