- Convert Video to Static Images
- Convert Video to H265
- Ensure you have Python installed (version 3.8+ recommended).
- Install Poetry for dependency management.
- Install FFmpeg, as it is required for processing video files. Follow the instructions for your operating system:
- Linux:
sudo apt install ffmpeg
- macOS (Homebrew):
brew install ffmpeg
- Windows: Download from ffmpeg.org and add it to your
PATH
.
- Linux:
- Clone this repository:
git clone https://github.com/gibbok/video-utilities.git
- Navigate to the project folder:
cd video-utilities/converter
- Install dependencies:
poetry install
This project allows you to extract static images (screenshots) from a video file at regular intervals.
- Supports input videos in
.mkv
and other common formats. - Saves screenshots as sequentially numbered image files.
- Configurable screenshot intervals.
Run the script with the following arguments:
- Input video file: Path to the video file (e.g.,
/path/to/video.mkv
). - Output folder: Directory where screenshots will be saved (e.g.,
/path/to/output/folder
). - Interval (optional): Time in seconds between screenshots (default is 5 seconds). Example:
poetry run python extract_screenshots.py /path/to/video.mkv /path/to/output/folder --interval 5
The screenshots will be saved in the specified output folder as .png
files, named sequentially.
Compress a video to H265 format with medium settings.
Run the script with the following arguments:
- Input video file: Path to the video file (e.g.,
/path/to/video.mkv
). - Output folder: Directory where the final video will be saved (e.g.,
/output
).
Use as:
poetry run python compress_h265.py "/input.mkv" "/output"
Notes: the script will save the output in .mkv
format.
This project is licensed under the MIT License.