3

I have a number of FLAC files that I'm converting into MP3 files with the following:

flac -cd file.flac | lame ... - file.mp3

Is there a utility which will copy Vorbis (FLAC and OGG) metadata, convert it to appropriate ID3 tags, and tag an MP3 with the same tags as the FLAC file?

3
  • You can use avconv for the conversion and have it copy the metadata. ("Trivial answer converted to comment" -- why, thank you SE!)
    – Raphael
    Jan 2, 2015 at 6:02
  • I'm trying to piece something together with mutagen to translate and copy the tags. I'm a purist and like to deal with the actual flac and lame binaries ;) Jan 2, 2015 at 6:05
  • Happy tinkering then; from my reading, there's no clean method but "read all tags with tool A and write them with tool B" since the tag formats are incompatible. See here, for instance. (Note that avconv uses flac and lame internally.)
    – Raphael
    Jan 2, 2015 at 6:10

2 Answers 2

1

FFmpeg can do this

ffmpeg -i infile.flac -c copy outfile.mp3

Example

0
1

Quod Libet comes with a command line tool called operon that does this and more:

operon copy song.flac song.mp3

Since Quod Libet is built on Mutagen, it knows about a bunch of obscure tags and how to translate them among the various tagging formats, which is important for some workflows. The only quirk I noticed is that it doesn't copy tags with empty values, but that doesn't bother me.

1
  • 1
    ffmpeg overwrites "Encoding settings", while operon preserves them. That's exactly what I needed. Thank you! Jul 1, 2023 at 18:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .