Sar*_*abo 5 java tags metadata opus
我对编写文件元数据感兴趣.opus,但到目前为止我看到的所有帖子都是针对更主流的格式,例如 .ogg 或 .mp3。我不确定 ID3 标签是否适用于 .opus 文件,并且我找不到任何说明它们是否适用的资源。我在(如何将元数据添加到 WAV 文件? )中看到了类似的内容。
如何将标题、作者等元数据写入 .opus 文件?
我认为libopus启用的ffmpeg将能够做到这一点,但从文档来看,我不清楚如何做到这一点。
使用 just 的解决方案ffmpeg是首选,但任何开源 Java 库也应该没问题。
如果您要将现有音频文件编码为 opus,那么使用opusenc很容易做到:
opusenc input.wav out.opus --title "This is a title" --artist "The Beatles"
有几个元数据选项
--title title Set track title
--artist artist Set artist or author, may be used multiple times
--album album Set album or collection
--genre genre Set genre, may be used multiple times
--date YYYY-MM-DD Set date of track (YYYY, YYYY-MM, or YYYY-MM-DD)
--comment tag=val Add the given string as an extra comment
This may be used multiple times
--picture file Attach album art (see --help-picture)
Run Code Online (Sandbox Code Playgroud)