Skip to content

This python script removes all metadata from mp4 and mkv files and sets the title and year tag from the file name in batch

License

Notifications You must be signed in to change notification settings

Tetrax-10/batch-metadata-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batch metadata editor

This python script removes all metadata from mp4 and mkv files and sets the title and year tag from the file name in batch.

Thanks to POPE3909 for sponsoring this project

Need a website, tool, or script that you've always dreamed of having? contact me and I will create it for you.

Message me on reddit - u/Raghavan_Rave10 (or) Send friend request to @tetrax10 on Discord, I will get in touch ASAP.

Video file naming conventions:

  1. Blade Runner 2049 2160p [2017]
  2. Kill Bill: Vol. 1 720p [2003]
  3. Titanic EXTENDED 1080p [1997]
  4. Fall DC 1080p [2022]
  5. Moby Dick UNRATED 720p [1998]
  6. The Good, the Bad and the Ugly REMASTERED 1080p [1966]

Output:

terminal movie 1 movie 2

Installation

  1. Install python, make sure "Add python 3.xx to PATH" is checked while installing else it wont work.
  2. Download the latest version of this script (zip file)
  3. Extract the zip and copy the metadata-editor folder to C:\Program Files
  4. Now open start menu and search for "Edit environment variables for your account" and click the first result
  5. Now select path and click edit, a new tab should open
    environment variables tab
  6. In that new tab click new and paste this path C:\Program Files\metadata-editor, click ok, Done 🎉
    new-environment-variable

How to run it?

  1. Open terminal and run
python "C:\Program Files\metadata-editor\script.py"
  1. It will ask for path, so give the file or folder path as the input.
    • for batch metadata editing give folder path. example: D:\Media\movies
    • for single file metadata editing give video file path (mp4 or mkv). example: D:\Media\movies\Oldboy 2160p DC [2003].mkv

Credits

  1. MKVToolNix for editing MKV metadata
  2. AtomicParsley for editing MP4 metadata

About

This python script removes all metadata from mp4 and mkv files and sets the title and year tag from the file name in batch

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages