寻找支持图片的mp3和ogg的命令行标注工具

dde*_*eke 10 command-line mp3 images ogg vorbis

我正在搜索支持 ogg 和 mp3 标记并允许向标记添加图片的命令行标记工具。

目前我使用lltag但不支持图片。dagger是我之前使用的工具,但它也缺乏图片支持。

And*_*més 8

对于 MP3,请尝试在SO 答案中找到的eyeD3

  --add-image=IMG_PATH:TYPE[:DESCRIPTION]
                      Add an image to the tag.  The description and type
                      optional, but when used, both ':' delimiters must be
                      present.  The type MUST be an string that corresponds
                      to one given with --list-image-types. If the IMG_PATH
                      value is empty the APIC frame with TYPE is removed.
Run Code Online (Sandbox Code Playgroud)

对于 Ogg,有vorbiscomment。它不支持开箱即用地加载图像文件,但 Vorbis 中的封面艺术标签只是一个以 base64 编码的图像文件,存储在 COVERART 标签中,其 mimetype 存储在 COVERARTMIME 中 - 类似于

coverart=$(base64 $jpegfile)
vorbiscomment -a -t 'COVERART=$coverart' -t 'COVERARTMIME=image/jpeg' $infile $outfile
Run Code Online (Sandbox Code Playgroud)