[FFmpeg-user] Exclude ALL Metadata?
Francesco Turco
fturco at fastmail.fm
Thu Jun 16 20:43:20 CEST 2011
> I'm attempting to strip ALL TAGS (metadata) off of an MP3. While I have
> found
> other tools to do this, I naturally thought of FFMPEG first. I was sure
> FFMPEG
> could easily extract ONLY the AUDIO stream from an MP3 file and ignore
> everything else (ex. tags).
>
> The closest FFMPEG command I could come up with to attempt this was
> "ffmpeg -i
> original.mp3 -acodec copy -map_metadata 0:-1 notags.mp3". But with this
> command, FFMPEG still writes an ID3v2.4 header with a "TSSE" tag set to
> "Lavf53.2.0" to the "notags.mp3" file. Are there any other FFMPEG
> options I
> could specify to have it NOT create the ID3 header?
I'm not sure it will work, but you can try with the following command:
ffmpeg -i original.mp3 -acodec copy -map_metadata -1,g:-1,g
-map_metadata -1,s0:-1,s0 notags.mp3
This tells ffmpeg to strip both global (g) metadata and metadata for the
first stream (s0).
More information about the ffmpeg-user
mailing list