All Projects → prithugoswami → auto-movie-tagger

prithugoswami / auto-movie-tagger

Licence: MIT license
A Python script that auto tags and adds poster to mkv or mp4 movie files.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to auto-movie-tagger

tmdb-api
This Kotlin Multiplatform library is for accessing the TMDB API to get movie and TV show content. Using for Android, iOS, and JS projects.
Stars: ✭ 31 (-36.73%)
Mutual labels:  movie, tmdb, tmdb-api
MovieCards
React App that uses TMDb API to display movie data. Try it out! ->
Stars: ✭ 38 (-22.45%)
Mutual labels:  movie, tmdb, tmdb-api
Api
PHP 7.3+ API Wrapper for The Movie Database
Stars: ✭ 317 (+546.94%)
Mutual labels:  movie, tmdb
Awesome It Films
📺 A curated list of awesome films about IT & geek people.
Stars: ✭ 722 (+1373.47%)
Mutual labels:  movie, imdb
Movie
🎥 Movie web implemented by React/Redux and TMDB API
Stars: ✭ 31 (-36.73%)
Mutual labels:  movie, tmdb
movie-trailer
🎥 Fetch movie trailers: "Crash" ➔ http://path/to/trailer
Stars: ✭ 19 (-61.22%)
Mutual labels:  movie, tmdb
angular-movies
🚀 A progressive web apps of movies built with @angular 7 and the API TMDB
Stars: ✭ 58 (+18.37%)
Mutual labels:  movie, tmdb-api
Flox
Self Hosted Movie, Series and Anime Watch List
Stars: ✭ 901 (+1738.78%)
Mutual labels:  movie, tmdb
inventum
Android client for TMDb
Stars: ✭ 22 (-55.1%)
Mutual labels:  movie, tmdb
flask-movie-app
A watch-list app with Flask using the TMDB API with CRUD and user authentication.
Stars: ✭ 26 (-46.94%)
Mutual labels:  tmdb, tmdb-api
Imdb Party
IMDB client using the IMDB API that their iPhone app uses
Stars: ✭ 115 (+134.69%)
Mutual labels:  movie, imdb
php4dvd
php4dvd is an open source php/mysql powered movie database. Catalog your video collection with ease. Automatic update of information and images.
Stars: ✭ 70 (+42.86%)
Mutual labels:  imdb, movie-collection
BESTV
Android TV App powered by TMDb. It is a easy way to find the best TV content, the top movies, series... all of that in your TV.
Stars: ✭ 49 (+0%)
Mutual labels:  movie, tmdb
react-movie
🎬 Modern fast movie database web app with React using The Movie DB API.
Stars: ✭ 45 (-8.16%)
Mutual labels:  movie, imdb
Gmdb
GMDB is the ultra-simple, cross-platform Movie Library with Features (Search, Take Note, Watch Later, Like, Import, Learn, Instantly Torrent Magnet Watch)
Stars: ✭ 189 (+285.71%)
Mutual labels:  movie, imdb
Imdbpy
IMDbPY is a Python package useful to retrieve and manage the data of the IMDb movie database about movies, people, characters and companies
Stars: ✭ 792 (+1516.33%)
Mutual labels:  movie, imdb
doubanIMDb
IMDb + Rotten Tomatoes + Wikipedia on Douban Movie
Stars: ✭ 93 (+89.8%)
Mutual labels:  movie, imdb
IMDb-Rating-Lookup
A python script that lets you check the IMDb rating, genre, cast etc of a movie with one click, without opening the browser.
Stars: ✭ 16 (-67.35%)
Mutual labels:  movie, imdb
Iwatched
Track movies or tv shows you watched.
Stars: ✭ 64 (+30.61%)
Mutual labels:  movie, imdb
Subify
Subify - Download subtitles for your favorite TV shows and movies
Stars: ✭ 135 (+175.51%)
Mutual labels:  movie, subtitle

Auto Movie Tagger

A Python script that auto tags and adds poster to MKV or MP4 movie files.
Also adds subtitles if provided.

The metadata it adds:

  • Genre - Movie's genres
  • Year - The release year of the movie
  • Comment - IMDb Rating and the movie's plot-outline.

first

Requirements

  • python 3.x
  • ffmpeg - A cli-tool that can encode/decode media files
  • imdbpie - A Python module for IMDb
  • tmdbsimple - A Python module which is a wrapper for The Movie Database API v3
  • mutagen - Python module to handle media files' metadata

Note for installing python 3 dependencies

This script is compatible for python3 only. If you are on Ubuntu or any other distro/OS with python2.x and python3.x both installed, make sure you use 'pip3' command to install the python modules. On Ubuntu/Debian-based distros you can run:

sudo apt-get install pip3
and then install the dependencies:
pip3 install <module>

Installing ffmpeg

You can download ffmpeg for your platform from here. Most of the linux distributions come with it ffmpeg pre-installed, or you can always look for the package in your distro's package repository.
Compilation Guide for ffmpeg
Here's a wikiHow article on how to install ffmpeg on Windows

Installing Python module dependencies

pip install imdbpie tmdbsimple mutagen

How to use

  1. Move all the movie files you want to be tagged into one folder. Make sure that the filename is the correct title of the movie. Year of the title can also be included.
  2. If you want subtitles to be embedded into the movie file(s) then add a subtitle file (.srt only) in the same folder named exactly the same as the movie file(s).
  3. Download the script (amt.py) and run it in that directory and sit back and relax till it ends executing. How to run the script in that directory? Copy the script in the directory and run it using the command:
    python amt.py
    Ubuntu users with python2.x and python3.x both installed, make sure the depedences are installed using pip3 install <module> and then run the script using:
    python3 amt.py

Notes

  • This script only works for mp4 and mkv file types.
  • The final file is always a MP4 file.
  • Make sure if you are having a MKV file, it should not contain picture based subtitles (hdmv-pgs/vobsub,etc) as MP4 files do not support picture based subtitles. You can use MKVToolNix or any other similar GUI utility to quickly remove the picture based subtitles or you can use ffmpeg to this as well. If the file already has an SRT subtitle then the script will just copy it.
  • If you would like to use your own poster image then add an image file (jpg only) in the same folder and rename it to the same name as the movie file.
  • Although I have provided my own TMDb API key in the source, I would recommend you get you own from here
  • Tip - When you sort your tagged movies according to the comment they get sorted by ascending/descending order of their IMDb rating.

Tooltips for Windows Users

tooltip

To make the tooltip show the movie's genre and IMDb rating and plot-outline like in the screenshot, you will have to make some changes in the registry of your windows machine.

  1. Fire up your Registry Editor. Open the Run window (Win + R) and type "regedit"
  2. Head over to HKEY_CLASSES_ROOT\SystemFileAssociations\.mp4
  3. From the left panel right click on the "InfoTip" value name and click "Modify..."
  4. Under the "Value Data" field add the attributes, "System.Music.Genre" and "System.Comment" anywhere you like depending how you would like the metadata to show in the tool tip. The "Value Data" filed consists of different attributes that appear in the tooltip. For example "System.Media.Duration" is the Duration of the media. These attributes are separated by ";" (semicolon). I would recommend adding the Genre and Comment attributes after "System.Media.Duration".
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].