Conversation

Charlotte 🦝 therian

how the fuck do i convert a flac file to opus while preserving the album art?

  • ffmpeg -i file.flac -b:a 128k file.opus removes it
  • ffmpeg -i file.flac -b:a 128k -c:v copy file.opus removes it
  • ffmpeg -i file.flac -b:a 128k -c:v libtheora file.opus removes it
  • opusenc --cvbr --bitrate 128 file.flac file.opus keeps it, but in quite a number of files the thing gets bitcrushed to hell
4
0
1

@elr It’s for libvorbis, not libopus

1
0
0
@charlotte but, it works with libopus? could you test at least?
0
0
0

@charlotte i think i once solved a similar issue with -map 0, or -map 0:v -map 0:a (so it maps all streams)

0
0
0

Answer seems to be

  • ffmpeg -i file.flac -c:a libopus -b:a 128k -f ogg file.opus

except that it ruins the picture quality

2
0
1
@charlotte What happens if you add `-c:v copy`?
1
0
0

@erk unsupported codec id

0
0
0

Okay this works:

  • ffmpeg -i file.flac -c:a libopus -b:a 128k -c:v libtheora -qscale:v 10 -f ogg file.opus
0
0
2
Okay apparently the first one does have album art but not in ffmpeg or audacious
0
0
0