easy-hevc
v1.0.15
Published
Easiest way to convert video files to hevc (H.265) using ffmpeg.
Readme
Easy HEVC
Easy HEVC is a command-line tool that helps you convert videos to HEVC (H.265) in bulk.
It scans folders recursively, converts supported video files with FFmpeg, and keeps your originals safe until you decide to finalize. It automatically detects already converted files and warns you if the output video is larger that input.
Use this tool to instantly cleanup massive storage space by converting large video files to a more effecient format. As the conversion is lossy, it is only recommended for archived videos (files you may only rarely need in future), unless you know what you're doing.
Why use it?
- Convert many videos in one run (including nested folders).
- Reduce storage usage with configurable quality settings.
- Review converted files before deleting originals.
- Preserve useful metadata so converted files can still be traced back to their source.
Prerequisites
Install FFmpeg (includes ffprobe) and make sure it is available in your PATH.
- macOS:
brew install ffmpeg - Ubuntu / Debian:
sudo apt install ffmpeg - Windows:
winget install ffmpeg
Installation
Install with Bun:
bun add -g easy-hevcQuick start
1) Convert videos
Run conversion on a file or directory:
easy-hevc -i /path/to/videosExample with custom quality and resolution:
easy-hevc -i . --crf 23 --resolution 720Process larger files first:
easy-hevc -i . --sort-by-size2) Review output
Check converted files and verify quality/size savings.
3) Finalize
Once you're happy, replace originals with converted files:
easy-hevc finalize -i /path/to/videosPreview finalize actions without making changes:
easy-hevc finalize -i /path/to/videos --dry-runCommands
convert (default)
Converts videos to HEVC/H.265.
-i, --input Input file or folder (required)
-s, --suffix Output suffix (default: _converted)
--resolution Output height (default: 1080)
choices: 2160|1440|1080|720|540|480|360
--crf Constant Rate Factor (default: 24)
--preset Encoder preset (default: medium)
choices: fast|medium|slow|veryslow
--delete-original Delete source if converted file is smaller
--preserve-dates Preserve modification timestamps (default: true)
--no-preserve-dates
--sort-by-size Convert largest files first
-h, --help Show helpfinalize
Deletes originals and renames converted files to replace them.
-i, --input Input folder (required)
-f, --force Skip confirmation prompts
-d, --dry-run Simulate actions only
-h, --help Show helpTypical workflow
- Run
easy-hevc -i <folder>. - Inspect results and spot-check playback quality.
- Run
easy-hevc finalize -i <folder> --dry-run. - Run
easy-hevc finalize -i <folder>when ready.
This two-step workflow helps avoid accidental data loss.
