Needs to be something for Linux
@LilaHexe every time I do this I whip out a custom ffmpeg invocation… probably something like this could work (didn’t test, use with caution)
find '.' -name '*.flac' -type f -exec ffmpeg -i {} -acodec libopus -b:a 192k {}.opus \;
and then another pass to rename all .flac.opus files into .opus
@LilaHexe i would add echo before ffmpeg, and then | parallel at the end
i’m like 45% sure this will just work, you have to check, i’m not good at GNU parallel XD
@domi @LilaHexe @fogti ogg+opus absolutely allows for embedded album art. attached is an opus file containing music I made with the album art set to a dankpods screenshot (in png format, no clue if other formats do or don’t work). I set it in picard, and it shows for me in mpv and deadbeef.
I don’t know anything about the rest tho, including how to set album art in ffmpeg, sorry
@domi @LilaHexe @fogti actually, I just remembered that I solved this myself a couple years ago. sorry! memory bad
here’s the relevant code I used to embed youtube thumbnails into opus files using ffmpeg: https://github.com/RiedleroD/RYTD/blob/9fa6a0750e7171ed2c1f97a1e66fc5324a6289e9/rytd.py#L76
to save you the search: the resulting base64 string gets passed to ffmpeg using -metadata metadata_block_picture=<base64img>
the code is pretty shit, but it does work. It’s also hardcoded to 128x128 quantized png, but I don’t see a reason why other stuff wouldn’t work. idk, it’s been ages since I touched this. I hope it can be useful to you anyway
@_r @domi @LilaHexe https://superuser.com/questions/1708793/how-to-add-an-art-cover-in-ogg-audio-file/1816195#1816195 mentions similar info.
the python code I linked should be easily adaptable to work in the general case.
@domi @LilaHexe while looking this up I came across https://superuser.com/questions/1385109/add-album-art-cover-to-an-ogg-opus-file-from-the-command-line and https://unix.stackexchange.com/questions/495382/how-do-i-embed-a-jpg-thumbnail-to-a-ogg-opus-audio-file-with-a-script/671204 (which furthermore links to https://github.com/ytdl-org/youtube-dl/pull/28894/changes)
so it doesn't look impossible, but seems to follow an not-yet universally adopted standard https://wiki.xiph.org/VorbisComment#METADATA_BLOCK_PICTURE