How to convert mp3 to wav without losing metadata?

0

How can I convert an mp3 file to wav without losing metadata in ffmpeg?

This happens whether I convert from mp3 or if I'm re-encoding a wav file, it doesn't make a difference.

I tried adding -map_metadata 0 -id3v2_version 3 to my command but to no avail. Please help.

(using ffmpeg-4.1-win64-static)

Emdosis

Posted 2019-01-01T17:25:25.720

Reputation: 5

1FFmpeg does not, at present, support writing id3 tags in WAVs. – Gyan – 2019-01-01T17:46:41.363

2WAV doesn't support ID3 tags at all - only RIFF tags are allowed, embedding ID3 tags inside them is not portable. – Eugen Rieck – 2019-01-01T18:03:23.620

@Eugen Rieck it worked in Foobar though, will it cause mp3-players with old firmware to crash due to a header discrepancy? (Not that I know what that is though (just heard that somewhere)) – Emdosis – 2019-01-01T18:47:22.943

BWAV or RF64 might be able to do something close to what you need [I'm no codec expert so this is a bit of a guess, based on my DAW's export info abilities.] – Tetsujin – 2019-01-01T19:20:44.850

@Emdosis Outdated MP3 Players will most likely either not play WAV at all or ignore RIFF tags. – Eugen Rieck – 2019-01-02T11:05:44.143

Answers

2

As others mentioned, it's currently not possible with FFmpeg, as there is no standard method for saving ID3(v2) metadata in WAV files. There are indeed some non-standard ways to save ID3 tags in RIFF chunks. You can find a bit more info here.

There is an open ticket for FFmpeg that I created for another user who had a similar problem.

slhck

Posted 2019-01-01T17:25:25.720

Reputation: 182 472