Tuesday, July 25, 2023

How to remove metadata from videos when converting them with ffmpeg

To strip metadata from mov videos when converting them, use:

ffmpeg -i in.mov -map_metadata -1 -dn out.webm

If not using also "-dn", some metadata will remain, like "Track UID" and "Tag Track UID".

The fields in the mov source file are:

exiftool macOS-screen-rec.mov | cut -d: -f1
ExifTool Version Number
File Name
Directory
File Size
File Modification Date/Time
File Access Date/Time
File Inode Change Date/Time
File Permissions
File Type
File Type Extension
MIME Type
Major Brand
Minor Version
Compatible Brands
Media Data Size
Media Data Offset
Movie Header Version
Create Date
Modify Date
Time Scale
Duration
Preferred Rate
Preferred Volume
Preview Time
Preview Duration
Poster Time
Selection Time
Selection Duration
Current Time
Next Track ID
Track Header Version
Track Create Date
Track Modify Date
Track ID
Track Duration
Track Layer
Track Volume
Matrix Structure
Image Width
Image Height
Clean Aperture Dimensions
Production Aperture Dimensions
Encoded Pixels Dimensions
Media Header Version
Media Create Date
Media Modify Date
Media Time Scale
Media Duration
Media Language Code
Graphics Mode
Op Color
Handler Class
Handler Vendor ID
Handler Description
Compressor ID
Source Image Width
Source Image Height
X Resolution
Y Resolution
Compressor Name
Bit Depth
Video Frame Rate
Pixeldensity
Handler Type
Make (und-US)
Model (und-US)
Software (und-US)
Creation Date (und-US)
Make
Model
Software
Creation Date
Image Size
Megapixels
Avg Bitrate
Rotation

Sources:

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.