Giter Site home page Giter Site logo

djkato / n-mb Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 15.92 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!

Rust 100.00%
cli discord encoding ffmpeg

n-mb's Introduction

Buy Me a Coffee at ko-fi.com

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!

nbm usage

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

  1. Download binary from Releases, put into $PATH
  2. get ffmpeg for your platform here, put into $PATH
  3. execute anywhere using the nmb --size/-s <SIZE IN MB> --codec/-c <WEBM/HEVC> --files/-f=<FILE 1>,<FILE 2> . . . command!

How to install From Source(Windows, Linux, MacOS):

  1. get rustup (cargo, rustc etc) from here
  2. get ffmpeg for your platform here, put into $PATH
  3. run cargo install n-mb in your favourite terminal
  4. 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

n-mb's People

Contributors

djkato avatar

Stargazers

accuwau avatar

Watchers

 avatar

n-mb's Issues

latest ffmpeg broke progress tracking

▉ test.mp4: Encoding (Pass 1/2) [00:00:00/00:00:00(eta)] ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░       0/183     (ms)                                                                                                                                        [src/main.rs:159:17] &line = "frame=0"
[src/main.rs:159:17] &line = "fps=0.00"
[src/main.rs:159:17] &line = "stream_0_0_q=0.0"
[src/main.rs:159:17] &line = "bitrate=N/A"
[src/main.rs:159:17] &line = "total_size=897"
[src/main.rs:159:17] &line = "out_time_us=N/A"
[src/main.rs:159:17] &line = "out_time_ms=N/A"
[src/main.rs:159:17] &line = "out_time=N/A"
▎ test.mp4: Encoding (Pass 1/2) [00:00:02/00:00:00(eta)] ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░       0/183     (ms)            
[breaks]                                                                                                                            

"Error: Missing resolution" after running

Heyo, not sure if you're still wanting to work on this, but when i run any command as such. I get the exact same error.

❯ ./nmb -s=580 -f=walkthrough.webm
Error: Missing resolution

any help is appreciated B)
I understand if you're no longer wanting to work on this though, I've abandoned quite a few projects myself

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.