Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Edit MP4 Metadata with exiftool

Tags:

exiftool

I have an MP4 file with Title metadata:

exiftool movie.mp4

Which gives:

Audio Bits Per Sample           : 16
Audio Sample Rate               : 48000
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Title                           : Movie Title

I want to completely remove this Title metadata. I have tried overwriting the title:

exiftool -Title="" movie.mp4
exiftool -Title= movie.mp4
exiftool -Title="" -overwrite_original movie.mp4

The command takes awhile to execute, but exits with:

0 image files updated
1 image files unchanged

What am I doing incorrectly? How can I view what the exiftool error is? How can I remove the Title attribute? According to the man page, MP4 seems to be a supported file type.

Thanks so much for your help!

like image 681
James Taylor Avatar asked Jan 11 '17 00:01

James Taylor


People also ask

Can you change the metadata of a MP4?

Step 3 Edit MP4 metadata.You can change it by clicking the drop-down button for Type. If you select TV Shows, you can edit Season and Episode beside Type option. 2. For video language, genre, comment rating and definition, you can select a proper option from the drop-down list.

Does ExifTool work on video?

Exiftool is an open source software program that allows you to analyze, edit, and clear metadata. While it's capable of handling multiple file types (images, videos, audio, text, etc.), it isn't exceptionally capable of removing or overwriting metadata from files other than simple image formats.

How do I add metadata to ExifTool?

The basic syntax to add or modify EXIF tags is simple. You just need to type exiftool and then the name (prepended by a dash) and value of each EXIF tag to write. By default a separate copy of the original file is saved with the “_original” suffix. Several options allow recursive operations inside directory trees.


1 Answers

Since the time of the original question, exiftool, as of ver 11.39, has gained the ability to create/edit a larger range of MP4/MOV metadata tags (see Quicktime tags page). To remove the Title tag from a video the original commands that @James Taylor used will work:

exiftool -Title= movie.mp4

Or in batch with

exiftool -Title= /path/to/files/

These commands creates backup files. Add -overwrite_original to suppress the creation of backup files. Add -r to recurse into subdirectories.

You can also use ffmpeg with a command similar to this, based upon this StackOverflow answer

ffmpeg -i InputFile -c copy -metadata title= OutputFile

But as is, I believe this command will remove all metadata. I think that -map_metadata 0 needs to be added to the command to keep the remaining metadata, but unsure of where.

like image 69
StarGeek Avatar answered Sep 24 '22 00:09

StarGeek