Skip to content

Code used to automatically compress all .mp4 files with the text "trim" in their name in a particular folder. This is to automatically reduce video clips to a pre-determined value for filesize for sharing on social media platforms.

Notifications You must be signed in to change notification settings

james-kc/video_compressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Compressor Project

This project compresses .mp4 files with the word "trim" in the filename, renames them sequentially (e.g., Clip (1), Clip (2)), and moves them to the clips_folder.

Requirements

  1. Docker
  2. Python (for local development)

How to Run the Project in Docker

  1. Clone the repository.

  2. Build the Docker image: docker build -t video_compressor

  3. Run the Docker container with folder bindings: docker run -v /path/to/input_folder:/input_folder -v /path/to/clips_folder:/clips_folder video_compressor

Folder Structure

  • input_folder/: Drop .mp4 files here to be processed.
  • clips_folder/: Processed and compressed video files will be saved here.

About

Code used to automatically compress all .mp4 files with the text "trim" in their name in a particular folder. This is to automatically reduce video clips to a pre-determined value for filesize for sharing on social media platforms.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages