Skip to content

Piyabordee/simple-video-resizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฌ Simple Video Resizer

Version Python Windows FFmpeg License

The Easiest Way to Reduce Video Size

Smart Compression โ€ข Selectable Ratio (1/2, 1/3, 1/4) โ€ข Manual Size Input โ€ข ETA Display


๐Ÿš€ Overview

Simple Video Resizer is a lightweight tool designed to quickly reduce video file sizes without the headache of complex settings.

Main Interface

Originally designed for Discord users (to hit that 10MB limit), it has evolved into a versatile tool where YOU controls the size. Whether you want to reduce a video to half its size to save space, or fit a specific MB limit, this tool does the math for you.

Note: This project is the next evolution of discord-video-compressor, expanding beyond fixed-limit compression to offer full user control.


โœจ Key Features

Feature Description
๐Ÿ“‰ Flexible Compression Choose to resize to 1/2, 1/3, or 1/4 of original size with one click.
๐ŸŽฏ Manual Target Size Need exactly 25MB? Just type it in. The app calculates the bitrate automatically.
โฑ๏ธ Live ETA & Progress See exactly how long remains with real-time ETA and percentage tracking.
Progress
๐Ÿ›ก๏ธ Quality Safety Check Warns you if the calculated bitrate is too low preventing unwatchable pixelated videos.
โš–๏ธ Live Size Estimation See the predicted output file size before you even start processing.
โšก optimized Performance Uses optimized FFmpeg presets (faster) for quick processing.

๐Ÿ› ๏ธ Installation

๐Ÿ’ฟ Option 1: Download Installer (Recommended)

  1. Download the latest installer from Releases.
  2. Run the installer.
  3. Done! You can now launch it from Desktop.

๐Ÿ“ฆ Option 2: Portable Executable

Download VideoResizer.exe and place it in a folder. Note: You must have ffmpeg.exe and ffprobe.exe next to it.

๐Ÿ Option 3: Run from Source

# 1. Clone the repository
git clone https://github.com/yourusername/simple-video-resizer.git
cd simple-video-resizer

# 2. Install dependencies
pip install -r Requirements.txt

# 3. Download FFmpeg
# Place ffmpeg.exe and ffprobe.exe in the same folder as app.py

# 4. Run
python app.py

Important

FFmpeg binaries are NOT included in this repository. Download them from ffmpeg.org and place ffmpeg.exe and ffprobe.exe in the project folder.


๐ŸŽฎ Usage Guide

๐Ÿ–ฅ๏ธ Method 1: The GUI

  1. Select Input: Choose your video file.
  2. Select Ratio:
    • 1/2: Reduces size by 50% (Good quality)
    • 1/3: Reduces size by 67% (Average quality)
    • 1/4: Reduces size by 75% (Low quality / High compression)
    • Manual: Type your desired size in MB (e.g. 50).
  3. Check Estimate: Look at the "Estimated Output Size" label.
  4. Start: Click "Start Compress".

๐Ÿ’ป Method 2: Command Line (CLI)

The tool also supports basic CLI usage (defaults to 1/2 compression):

app.exe "C:\path\to\video.mp4"

โš™๏ธ How It Works

The program uses the formula: Target Bitrate = (Target SizeInBits / Duration) - AudioBitrate

It then instructs FFmpeg to encode the video using libx264 variable bitrate (VBR) mode to hit that target average bitrate, ensuring the file size is as close to your request as possible.


๐Ÿ“‚ Project Structure

SimpleVideoResizer/
โ”œโ”€โ”€ app.py                    # ๐Ÿ Main Application Source
โ”œโ”€โ”€ Requirements.txt          # ๐Ÿ“‹ Python Dependencies
โ”œโ”€โ”€ VideoResizer.spec         # ๐Ÿ”ง PyInstaller Spec File
โ”œโ”€โ”€ setup_script.iss          # ๐Ÿ“ฆ Inno Setup Script
โ”œโ”€โ”€ .gitignore                # ๐Ÿšซ Git Ignore Rules
โ””โ”€โ”€ README.md                 # ๐Ÿ“– Documentation

๐Ÿ”ง Build from Source

๐Ÿ”จ Create Executable

pyinstaller VideoResizer.spec

๐Ÿ“ฆ Create Installer

Open setup_script.iss with Inno Setup Compiler and build.


๐Ÿ“œ License

Distributed under the MIT License.

About

A user-friendly tool to resize videos to specific ratios (1/2, 1/3, 1/4) or exact target sizes (MB). Build with Python & FFmpeg for Windows.

Topics

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors