An open API service indexing awesome lists of open source software.

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

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:

![terminal](./assets/terminal.png)
![movie 1](./assets/1.png)
![movie 2](./assets/2.png)

## 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

![environment variables tab](/assets/environment-variables-tab.png)
6. In that new tab click `new` and paste this path `C:\Program Files\metadata-editor`, click ok, Done 🎉

![new-environment-variable](/assets/new-environment-variable.png)

## 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