Chạy command bên dưới để build
build.bat
Sau khi build thì vào folder dist
và chạy file Compress Video.exe
để sử dụng
Có thể pin file này vào taskbar để dễ sử dụng, chỉ cần pin một lần duy nhất. Sau đó chỉ cần build lại là được
The Video Processing Tool with FFmpeg is a user-friendly desktop application designed to simplify and enhance the video compression process using the powerful FFmpeg library. This application is ideal for users who want to reduce the file size of their videos for better storage efficiency, sharing, or playback on mobile devices.
-
📁 Easy File Selection:
- Effortlessly select video files through an intuitive file selection dialog.
-
ℹ️ File Information Display:
- View detailed information about the selected video file, including file name, size, and duration.
-
⚙️ Customizable Compression:
- Compress videos by scaling down the resolution with customizable settings for frame size, codec, and audio bitrate.
-
🔄 Real-time Progress Updates:
- Monitor the compression progress with a real-time progress bar and percentage indicator.
-
📂 Output File Management:
- Automatically generate compressed video files with a user-defined prefix. Overwrite existing files or move them to the recycle bin based on user preferences.
-
🚨 Error Handling:
- Access informative logs, including any errors that may occur during the compression process.
-
🖥️ User-Friendly Interface:
- Navigate the graphical user interface with ease, designed for simplicity and efficiency.
-
🔧 Multi-Platform Compatibility:
- Run the application on various platforms, including Windows, macOS, and Linux.
-
📦 Open Source Foundation:
- Leverage the FFmpeg library, ensuring a robust and open-source foundation with continuous improvements.
-
FFmpeg must be installed on your system.
-
The Video Processing Tool with FFmpeg requires Python 3.7.7 or later. Here's how you can check the Python version on your system:
python3 --version
Regarding the FFmpeg version, you've provided the information. Here's the excerpt from your message:
ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9.3.1 (GCC) 20200523 ...
So, you have FFmpeg version 4.2.3 installed on your system. If you encounter any issues related to Python or FFmpeg versions, you may need to update or install the required versions accordingly.
-
Open a command prompt as an administrator. Right-click on the Start menu and select "Command Prompt (Admin)".
-
Install Chocolatey by running the following command:
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
-
Install FFmpeg with Chocolatey:
choco install ffmpeg
-
Download and install ChocolateyGUI from the official website: ChocolateyGUI.
-
Open ChocolateyGUI, search for "ffmpeg," and click the "Install" button next to the FFmpeg package.
-
Open Terminal. If you haven't installed Homebrew, install it by running:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
-
Install FFmpeg with Homebrew:
brew install ffmpeg
-
Download and install Homebrew Bundle from the official website: Homebrew Bundle.
-
Create a
Brewfile
containing the following line:tap "homebrew/bundle" brew "ffmpeg"
-
Run the following command in the directory containing the
Brewfile
:brew bundle
These methods should provide users, even those less familiar with the command line, with straightforward ways to install FFmpeg on both Windows and macOS. Users can choose the method that best fits their comfort level with the command line or graphical interfaces.
-
Clone the repository:
git clone https://github.com/mrluaf/Compress-Video-With-FFmpeg.git
-
Navigate to the project directory:
cd Compress-Video-With-FFmpeg
-
Open a command prompt and navigate to your project directory.
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
.\venv\Scripts\activate
-
Open Terminal and navigate to your project directory.
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
source venv/bin/activate
pip install -r requirements.txt
python main.py
These methods should provide users, even those less familiar with the command line, with straightforward ways to install FFmpeg on both Windows and macOS. Users can choose the method that best fits their comfort level with the command line or graphical interfaces.
- Update File Info:
- Click on the "Update File Info" button to fetch and display information about the selected video file.
- The information includes the video length and size.
- Process Video:
- After updating the file information, click on the "Process Video" button to initiate the compression process.
- Wait for the process to complete.
- A popup message saying "Video Processing Complete" will appear when the process is finished.
- The standard output of the process is displayed in the text area.
- Exit Application:
- If you want to exit the application, click on the "Exit" button.
- This will close the application.
That's it! Following these simple steps should allow you to update file information, compress videos, and exit the application when you're done.
We welcome contributions from the community! If you'd like to contribute to this project, please follow our contribution guidelines.
This project is licensed under the MIT License.
- The application is built on the foundation of the FFmpeg library.