Converting FLAC with images into OGG with ffmpeg/libvorbis creates corrupt files
2
votes
1
answer
1818
views
I have a [script](https://github.com/akerbos/scripts/blob/master/music2thumb.rb) that extracts a specified subset of my music collection. Most of my music is FLAC; since space (and supported formats) may be an issue on the target device (smartphon, car radio, ...) it can also convert "down" to OGG for MP3.
I figured out [a while ago](https://unix.stackexchange.com/a/176948/17409) how to convert FLAC to OGG so that meta data is kept:
ffmpeg -v quiet -y -i "${infile}" \
-codec:a libvorbis -qscale:a 6 -map_metadata 0 \
"${outfile}"
However, I noticed that the resulting file won't play in my Android app if the FLAC contained a cover image.
I did [some digging](https://github.com/akerbos/OGGvAMF) ; the short of it is, ffmpeg seems to create corrupt OGGs in this case.
Is this a bug, or do I have to pick different parameters?
Asked by Raphael
(2095 rep)
Feb 1, 2017, 10:20 PM
Last activity: Oct 22, 2023, 06:06 PM
Last activity: Oct 22, 2023, 06:06 PM