all repos — auto-movie-tagger @ 9901b5c5bd9fbbb7dc4b3d51c734ab6f5450159a

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

Readme changes.
Prithu Goswami prithugoswami524@gmail.com
Tue, 09 May 2017 12:28:41 +0530
commit

9901b5c5bd9fbbb7dc4b3d51c734ab6f5450159a

parent

48c75a005b148f34762f4194878a5f1d2350e7d9

1 files changed, 16 insertions(+), 16 deletions(-)

jump to
M README.mdREADME.md

@@ -10,7 +10,7 @@

![first](/promo-images/first.png) ## Requirements -The script makes use of the following tool and python modules +The script makes use of the following tool and python modules. __Make sure to install them before you run the script.__ <ul> <li><a href="https://ffmpeg.org/">ffmpeg</a> - A cli-tool that can encode/decode media files</li> <li><a href="https://pypi.python.org/pypi/imdbpie">imdbpie</a> - A Python module for IMDb</li>

@@ -19,7 +19,7 @@ <li><a href="https://pypi.python.org/pypi/mutagen">mutagen</a> - Python module to handle media files' metadata</li>

</ul> ## Installing ffmpeg -You need to first download ffmpeg <a href="https://ffmpeg.org/download.html">(from here)</a> and add it to your PATH variable if on windows. +You need to first download ffmpeg <a href="https://ffmpeg.org/download.html">(from here)</a> and add it to your PATH variable. Here's a <a href="http://www.wikihow.com/Install-FFmpeg-on-Windows">wikiHow article on how to install ffmpeg on Windows</a> ## Installing Python module dependencies

@@ -32,25 +32,25 @@

## How to use <ol> <li>Move all the movie files you want to be tagged into one folder. Make sure that the filename is <strong>only</strong> the title of the movie</li> - <li>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).</li> + <li>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).</li> <li>Download the script (<a href="amt.py">amt.py</a>) and run it in that directory and sit back and relax till it ends executing. </li> </ol> -## Tooltips for Windows Users -![tooltip](/promo-images/tooltip.png) - -To make the tooltip show the movie's genre and IMDb rating and plot-outline, you will have to make some changes in the registry of your windows machine. -1. Fire up your Registry Editor. A quick way is to open the _Run_ window (Win + R) and type "regedit" -2. Head over to <strong>HKEY_CLASSES_ROOT\SystemFileAssociations\\.mp4</strong> -3. From the left pannel right click on the "<strong>InfoTip</strong>" value name and click "<strong>Modify...</strong>" -4. Under the "<strong>Value Data</strong>" 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 "<strong>Value Data</strong>" filed consists of deifferent attributes that appear in the tooltip. For example "System.Media.Duration" is the Duration of the media. These attributes are separted by ";" (semicolon). I would recommend adding the Genre and Comment attributes after "System.Media.Duration". - ## Notes <ul> - <li>This script only works for mp4 and mkv file types.</li> - <li>The final file is a mp4 file</li> - <li>Make sure if you are having an mkv file, it should not contain any type of picture based subtitles(hdmv-pgs/vobsub,etc). You can use <a href="https://mkvtoolnix.download/">MKVToolNix</a> 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.</li> - <li>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 as the movie file.</li> + <li>This script only works for mp4 and mkv file types as they are the mmost common file types for HD Movie files.</li> + <li>The final file is always a MP4 file.</li> + <li>Make sure if you are having a MKV file, it should not contain picture based subtitles (hdmv-pgs/vobsub,etc). You can use <a href="https://mkvtoolnix.download/">MKVToolNix</a> 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.</li> + <li>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.</li> <li>Although I have provided my own TMDb API key in the source, I would recommend you get you own from <a href="https://www.themoviedb.org/documentation/api">here</a></li> <li> Tip - When you sort your tagged movies according to the comment they get sorted by ascending/descending order of their IMDb rating.</li> </ul> + +## Tooltips for Windows Users +![tooltip](/promo-images/tooltip.png) + +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 <strong>HKEY_CLASSES_ROOT\SystemFileAssociations\\.mp4</strong> +3. From the left panel right click on the "<strong>InfoTip</strong>" value name and click "<strong>Modify...</strong>" +4. Under the "<strong>Value Data</strong>" 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 "<strong>Value Data</strong>" 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".