https://github.com/djkato/n-mb
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!
https://github.com/djkato/n-mb
cli discord encoding ffmpeg
Last synced: 3 months ago
JSON representation
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!
- Host: GitHub
- URL: https://github.com/djkato/n-mb
- Owner: djkato
- Created: 2023-09-24T17:42:10.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2025-04-27T23:18:50.000Z (about 1 year ago)
- Last Synced: 2025-04-28T00:24:43.655Z (about 1 year ago)
- Topics: cli, discord, encoding, ffmpeg
- Language: Rust
- Homepage:
- Size: 15.6 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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 ~8mb~ ~25mb~ 10mb 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, x265 + opus, AV1 + opus
- image codec: vp8 .webp (for gifs too, but animated)
## ~~How to install Binary(Windows, Linux):~~
**Releases are no longer being kept uptodate, please follow [Source installation](#how-to-install-from-sourcewindows-linux-macos)**
1. ~~Download binary from [Releases](https://github.com/djkato/n-mb/releases), put into $PATH~~
2. ~~get ffmpeg for your platform [here](https://ffmpeg.org/download.html), put into $PATH~~
3. ~~execute anywhere using the `nmb --size/-s --codec/-c --files/-f=, . . .` command!~~
## How to install From Source(Windows, Linux, MacOS):
1. get rustup (cargo, rustc etc) from [here](https://www.rust-lang.org/tools/install)
2. get ffmpeg for your platform [here](https://ffmpeg.org/download.html), put into $PATH
3. run `cargo install n-mb` in your favourite terminal
4. execute anywhere using the `nmb --size/-s --codec/-c --files/-f=, . . .` 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