How to remove ID3 audio tag image (or metadata) from mp3 with ffmpeg

亡梦爱人 提交于 2019-11-30 12:13:08

The cover image/album art is treated as a video stream by ffmpeg. To omit it you can use the -vn or -map options.

Strip metadata and remove album art (no re-encoding)

In this example the audio is being stream copied (re-muxed) instead of being re-encoded. This is faster and will not degrade the quality:

ffmpeg -i tagged.mp3 -vn -codec:a copy -map_metadata -1 out.mp3

Same as above but using -map instead of -vn

Or you could use the -map option to explicitly choose the streams. Using -map 0:a tells ffmpeg to only select the audio stream(s) from input 0 (the first input and the only input in your case):

ffmpeg -i tagged.mp3 -map 0:a -codec:a copy -map_metadata -1 out.mp3

I prefer -map because it is very flexible.

I've tried to use codes provided by LordNeckbeard, none of them worked for my case. But this one worked:

ffmpeg -i tagged.mp3 -acodec copy -map 0 -map_metadata 0:s:0 notags.mp3

It shows now only one tag, 'TSSE' (means Encoder). Also, very recommend this article, if you want to manipulate ID3 tags using ffmpeg:

How To: Create/Write ID3 tags using ffmpeg

I try something like :

ffmpeg -i file.mp3 -ab 128k -ac 2 -ar 44100 -map 0:a -map_metadata -1 -sn -vn -y output.mp3

and have always cover on output.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!