diff --git a/README.md b/README.md index 3c83a71..3c961e1 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ For all those who want to post memes that are just too big and surpass the 8mb f # Automatically converts any video into webm, makes sure its 8mb or less! -Easy to use: Just drag a file on the executable and off it goes! ![multiencoding](https://user-images.githubusercontent.com/25299243/166849422-5a687ec5-c110-4de9-bbc3-1ded54bbeaa8.gif) @@ -12,17 +11,18 @@ Easy to use: Just drag a file on the executable and off it goes! How to install(Windows, Linux, MacOS): 1. get node.js from [here](https://nodejs.org) 2. get ffmpeg for your platform [here](https://ffmpeg.org/download.html), put into $PATH -3. clone repo into any folder you like. -4. run `npm install --save` to get all dependencies -5. run `npm install -g .` -6. execute anywhere using the `8mb [optional: -preset {preset Index}] [file1] [file2] . . .` command! -*might have bugs +3. run `npm install -g 8mb` +4. execute anywhere using the `8mb [optional: -preset {preset Index}] [file1] [file2] . . .` command! + +*Known issues:* + - videos with huge resolution (1080p+) and high framerate struggle to encode under 8mb even if less than a few minutes long + - really long videos fail to get under 8mb -*NOT WORKING RN, TERMKIT REFUSES TO BUILD* +>*NOT WORKING RN, TERMKIT REFUSES TO COMPILE* >How to install(Windows with binaries): >1. make a folder in `C:\Program Files` called "DMC", put release binaries and [ffmpeg windows full-build executables](https://github.com/GyanD/codexffmpeg/releases/) into `C:\Program Files\DMC\` >2. Add ffmpeg to PATH: `[Win BTN] + R`, type `SystemPropertiesAdvanced`, click `Environment Variables`, under "User variables for (user)" find variable Path, click on it and edit, in the now open window click `new`, and paste `C:\Program Files\DMC\`. diff --git a/lib/ui.js b/lib/ui.js index 3fef0f8..74cac90 100644 --- a/lib/ui.js +++ b/lib/ui.js @@ -84,8 +84,8 @@ class UI { async encodeFinished(barIndex) { this.bars[barIndex].finished = true //sets bar to 100% - //const chunk = new Date(this.bars[barIndex].duration * 1000).toISOString().substr(11, 8) - //this.updateBar(chunk, barIndex, this.bars[barIndex].isVideo) + const chunk = new Date(this.bars[barIndex].duration * 1000).toISOString().substr(11, 8) + this.updateBar(chunk, barIndex, this.bars[barIndex].isVideo) // if all are finished stop multibars and exit for (let i = 0; i < this.bars.length; i++) { if (!this.bars[i].finished) return diff --git a/package.json b/package.json index 04a6c17..653e065 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "8mb", - "version": "1.0.11", + "version": "1.0.12", "description": "helps free discord users to send any media(image, video, audio) and not get limited by discords 8mb file limit", "main": "index.js", "repository": { "type": "git", - "url": "https://github.com/your-user/repo-url.git" + "url": "https://github.com/djkato/Discord-Media-Compressor-sub-8mb.git" }, "bin": { "8mb": "bin/index.js"