Compress MP4

Overview

This script is meant to create a .bat file that will compress an mp4 video file.

Algorithm

  1. Find the path to the parent directory

  2. List the movie files

  3. Deconstruct the movie name into parts

  4. Create a database to help organize and differentiate the movies in the folder

  5. Import the ffmpeg_script module

  6. Open a file and write the appropriate ffmpeg command

Usage

  1. Be sure to copy both python scripts into the folder with the movie(s).

  2. A .bat file should be generated.

  3. Open a CMD window to run the .bat file OR,

  4. double click the .bat file directly in the folder.

Script

compress_mp4.py