How do I use TagLib to read/write coverart in different audio formats?

后端 未结 4 1970
温柔的废话
温柔的废话 2021-02-02 02:40

I would like to use TagLib to read/write coverart especially for mp3 AND ogg files, but I couldn\'t find any examples. Could someone point me to some examples? Where should I lo

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-02 03:14

    Here is a complete solution, including Ogg. The unofficial way of doing it has been to base64 encode the file and embed it in the metadata. There is now a proposed (better) way of base64 encoding a FLAC Picture block (which may include the image data, or a file:// URL).

    https://gist.github.com/1468279

提交回复
热议问题