3 stable releases
1.1.2 | Jul 27, 2024 |
---|---|
1.1.1 | Apr 19, 2024 |
#1614 in Command line utilities
50 downloads per month
1MB
671 lines
Automatically converts any media file and makes sure its under your limit!
For all those who want to post memes that are just too big and surpass the 25mb free upload limit on discord, this is the app for you!
This program outputs to following formats:
- audio codec: opus .ogg
- video codec: vp9 + opus .webm
- image codec: vp8 .webp (for gifs too)
How to install Binary(Windows, Linux):
Releases are no longer being kept uptodate, please follow Source installation
Download binary from Releases, put into $PATHget ffmpeg for your platform here, put into $PATHexecute anywhere using thenmb --size/-s <SIZE IN MB> --codec/-c <WEBM/HEVC> --files/-f=<FILE 1>,<FILE 2> . . .
command!
How to install From Source(Windows, Linux, MacOS):
- get rustup (cargo, rustc etc) from here
- get ffmpeg for your platform here, put into $PATH
- run
cargo install n-mb
in your favourite terminal - execute anywhere using the
nmb --size/-s <SIZE IN MB> --codec/-c <WEBM/HEVC> --files/-f=<FILE 1>,<FILE 2> . . .
command!
Thanks for an amazing read on how to optimize vp9 for file sizes deterenkelt, I recommend this read: https://codeberg.org/deterenkelt/Nadeshiko/wiki/Researches%E2%80%89%E2%80%93%E2%80%89VP9-and-overshooting
Dependencies
~7–16MB
~186K SLoC