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 look to find more information about this?
相关问题
- Sorting 3 numbers without branching [closed]
- How to compile C++ code in GDB?
- Why does const allow implicit conversion of refere
- thread_local variables initialization
- What uses more memory in c++? An 2 ints or 2 funct
相关文章
- Class layout in C++: Why are members sometimes ord
- How to mock methods return object with deleted cop
- Which is the best way to multiply a large and spar
- C++ default constructor does not initialize pointe
- Selecting only the first few characters in a strin
- What exactly do pointers store? (C++)
- Converting glm::lookat matrix to quaternion and ba
- What is the correct way to declare and use a FILE
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
Here is a version for mp3 and m4a.
I got it to work for mp3 files. See if you can adapt it for ogg
Good luck.
PS::This tagging stuff is way harder than it should be. We need to find another lib.
Ogg Vorbis tags are text-only (and as such don't support cover art). For MP3s, this is somewhat cleaner than the other solution suggested: