CLI Video Trimmer :)
A personal project to relearn programming without vibe coding <3
- Clone the repo:
git clone https://github.com/daethyra/vrimmer.git - Create/activate a virtual environment:
i.
virtualenv .venvii..venv/Scripts/activate(Windows) orsource .venv/bin/activate(Unix) - Install Python dependencies:
pip install -e . - Install ffmpeg (Instructions)
- Test the tool works by running as a module:
python -m vrimmer
- navigate to vrimmer TLD
- test it works w/
python -m vrimmer - trim
/resize/change fps ofyour video
Positional Arguments:
input_path: Target input file. Defaults to 'inputs/Sandbina_2_4k.mp4'
Optional Arguments
--start: Starting timestamp in seconds (e.g. 0)--end: Ending timestamp in seconds (e.g. 20)--start-frame: Frame to start at (e.g. 0)--end-frame: Frame to end at (e.g. 240)
# runs default options on the Sandbina sample input video
python -m vrimmer
# runs default options on a specified video
python -m vrimmer "inputs/Sandbina_2_4k.mp4"
# trims from frame 0 to frame 1000 on specified video
python -m vrimmer "inputs/Sandbina_2_4k.mp4" --end-frame 1000
# trims video to start at 2 seconds in, and end 4 seconds in
python -m vrimmer "chudma.webm" --start 2 --end 4- Trim video by frame or timestamp
- Resize video
- Convert between formats
- Batch processing
Find out more in DESIGN.md
