# Video Compress

Two small scripts around FFmpeg for long screen and session recordings: a compressor that encodes on the graphics card to HEVC and a subtitle burner. The compressor has a quick test mode that judges the settings on a short slice, and the burner has a single-frame preview and a check of the subtitle file before the long encode.

- **Facts:** 2026, Personal project, Completed, role: Sole developer
- **What I did:** I wrote both scripts alone, for my own use on long session recordings.
- **Domain:** media
- **Stack:** Python, FFmpeg, Claude Code
- **Page:** https://sergey-petrinich.vercel.app/work/video-compress

Capabilities:

- GPU HEVC encoding tuned for file size, with one quality option
- Test mode: a two-minute slice from the middle and a projected size for the full file
- Frame mode that keeps sound in step on variable frame rate recordings
- Result written to a new file with sizes before and after
- Drag and drop launcher that keeps the window open
- Single-frame preview at any second, with the nearest line named when the second is a pause
- Subtitle file checked for broken timestamps and overlaps before encoding
- Audio copied untouched, with a stricter quality target for the second encode
- Output duration compared with the source after the run

Back to the [work archive](https://sergey-petrinich.vercel.app/work.md) · [CV](https://sergey-petrinich.vercel.app/cv.md) · [all of it in one file](https://sergey-petrinich.vercel.app/llms-full.txt)
