Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove ALL metadata using ffmpeg?

Tags:

I have input file: infile.mp3
This file contains metadata (artist, genre, etc.)
I try remove all metadata to output a .wav file.

Yes! I found option:

-map_metadata -1

But output is unexpected to me...

$ ffmpeg -i infile.mp3 -acodec pcm_s16le -ac 2 \
                -ar 44100 -map_metadata -1 ./outfile.wav

OK!

$ ffprobe outfile.wav
Input #0, wav, from 'inp.wav':
  Metadata:
    encoder         : Lavf56.25.101
  Duration: 00:04:00.47, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s

You see? encoder metadata exists!

And in the wav header after "subchunk1_id" with "fmt " value I expect in "subchunk2_id" is the "data" value (clear expected example):

$ strings outfile.wav | more
RIFFFB
WAVEfmt
data

But it is not (LIST, INFOISFT, etc):

$ strings outfile.wav | more
RIFFFB
WAVEfmt 
LIST
INFOISFT
Lavf56.25.101
data

Well.. How to really remove all metadata from the output file?

like image 974
Deep Avatar asked Aug 16 '16 00:08

Deep


People also ask

How do I remove metadata from a video?

Right-click on the file. View its Properties. If there is metadata that you would like to remove, select the Details tab. Click Remove Properties and Personal Information.

How do I edit metadata in FFmpeg?

Just add use the -metadata in FFmpeg to add any metadata tag, replace the KEY with the name of the metadata value that you'd like to use and the VALUE with that metadata value. Look at the tags for these files with mkvinfo, mediainfo, and ffprobe. You can also add metadata specifically to certain tracks.

How do I remove metadata from ExifTool?

To remove the data with ExifTool, all you need to do is type exiftool -all= path_to_file . ExifTool will strip out all the Exif data from your photo and create a new file leaving the original photo untouched.


1 Answers

-fflags +bitexact -flags:v +bitexact -flags:a +bitexact
like image 59
mzs Avatar answered Oct 09 '22 12:10

mzs