https://github.com/tetrax-10/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
https://github.com/tetrax-10/batch-metadata-editor
batch-metadata-editor batch-processing metadata metadata-editor python-script
Last synced: 11 months ago
JSON representation
This python script removes all metadata from mp4 and mkv files and sets the title and year tag from the file name in batch
- Host: GitHub
- URL: https://github.com/tetrax-10/batch-metadata-editor
- Owner: Tetrax-10
- License: mit
- Created: 2023-12-24T08:51:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-13T17:29:02.000Z (11 months ago)
- Last Synced: 2025-04-13T18:36:42.139Z (11 months ago)
- Topics: batch-metadata-editor, batch-processing, metadata, metadata-editor, python-script
- Language: Python
- Homepage:
- Size: 1.36 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://xdaforums.com/m/pope3909.5120701/) 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/Send friend request to [@tetrax10](https://discord.com/users/1040249560418750536) 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:



## Installation
1. Install [python](https://www.python.org/downloads/), make sure "Add python 3.xx to PATH" is checked while installing else it wont work.
2. Download the [latest version](https://github.com/Tetrax-10/batch-metadata-editor/releases/latest) 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

6. In that new tab click `new` and paste this path `C:\Program Files\metadata-editor`, click ok, Done 🎉

## How to run it?
1. Open terminal and run
```sh
python "C:\Program Files\metadata-editor\script.py"
```
2. 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](https://mkvtoolnix.download/) for editing MKV metadata
2. [AtomicParsley](https://github.com/wez/atomicparsley) for editing MP4 metadata