A Python script to convert videos to HD (1080p) or 2K (1440p) using FFmpeg in WSL2.
This code is "vibe coded" - it's a casual, hackable script written for personal use. Not intended for production, may have bugs, and is meant to be forked and customized.
This script is tailored for WSL2 environments to process video files stored on Windows drives. It accesses Windows files via mounted paths like /mnt/d/, allowing seamless conversion of large video libraries without moving files.
The source directory is hardcoded as /mnt/d/media/google drive space cleanup/ - update this path in the script to match your Windows video folder.
The script is a straightforward, interactive tool that prioritizes user control and metadata preservation. It extracts filming timestamps from video metadata for accurate reporting, handles existing files gracefully, and provides per-file decision-making.
It's intentionally simple and hackable - feel free to fork, modify, or build your own version to suit your needs. The code encourages experimentation with FFmpeg parameters, resolution options, or additional metadata handling.
- Python 3
- FFmpeg
- Update
current_dirin the script to your video folder. - Run
python3 video_converter.py - Choose HD, 2K, or SKIP for each new file.
- Videos in HD/ or 2K/ subdirs.
- Report saved as
conversion_report.tsv.