如何使用 LAME 编码器对 mp3 进行 unicode 注释

发布于 2024-10-06 04:36:34 字数 175 浏览 0 评论 0原文

我想在我的 mp3 中添加一些评论,但我的评论都是非拉丁字符,例如阿拉伯语。 我编写了一个 shell 程序来获取 Windows 中用户的评论,但由于 LAME.exe 是一个控制台程序,我不知道如何将这些非拉丁字符转换为对 LAME 有意义的字符。 那么有什么方法可以使用 LAME.exe 添加此类注释吗?

问候。

I want to add some comments to my mp3s but my comments all are in non-latin characters like arabic.
I have written a shell program to get the comments from user in windows but since LAME.exe is a console program I don't know how to convert these non-latin character to something meaningful for LAME.
so is there any way to add these kind of comments using LAME.exe?

regards.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泅渡 2024-10-13 04:36:34

我认为在 Windows 命令行上执行此操作会遇到真正的麻烦,因为所有内容都将在系统默认代码页 (ANSI) 而不是 Unicode 中工作。除非您安装的是阿拉伯语 Windows(ANSI=代码页 1256;可在区域选项中设置),否则您根本无法使用阿拉伯语,即使如此,我也不确定它实际上会使用正确的编码。

无论如何,lame.exe 都不是编辑标签的好选择,因为它是一个音频编码器,会对 MP3 进行解码和重新编码,从而导致质量损失。

有许多图形应用程序可以批量重新标记 MP3。如果您想要一个可编写脚本的解决方案,您可能最好使用比 Windows 命令行/bat 文件更好地支持 Unicode 的高级语言/库(例如 Python + Mutagen,但有很多可能性,具体取决于您使用的语言)熟悉)。

I think you're going to have real trouble doing it on the Windows command line, as everything will be working in the system default code page (ANSI) and not Unicode. You won't be able to use Arabic at all unless you're on an Arabic Windows install (ANSI=code page 1256; settable in the region options), and even then I'm not sure it'll actually use the right encoding.

In any case lame.exe is not a good choice for editing tags, as it's an audio encoder, which will decode and re-encode the MP3, causing quality loss.

There are many graphical apps that will batch re-tag MP3s. If you want a scriptable solution you're probably better off with a higher-level language/library that supports Unicode better than the Windows command line/bat files (eg Python + Mutagen, but there are many possibilities depending on what languages you're familiar with).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文