changed install instructions, add git repo to npm

This commit is contained in:
Djkato 2022-05-07 23:33:13 +02:00
parent e4d20d2768
commit 8dfee8bff9
3 changed files with 11 additions and 11 deletions

View file

@ -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! # 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) ![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): How to install(Windows, Linux, MacOS):
1. get node.js from [here](https://nodejs.org) 1. get node.js from [here](https://nodejs.org)
2. get ffmpeg for your platform [here](https://ffmpeg.org/download.html), put into $PATH 2. get ffmpeg for your platform [here](https://ffmpeg.org/download.html), put into $PATH
3. clone repo into any folder you like. 3. run `npm install -g 8mb`
4. run `npm install --save` to get all dependencies 4. execute anywhere using the `8mb [optional: -preset {preset Index}] [file1] [file2] . . .` command!
5. run `npm install -g .`
6. execute anywhere using the `8mb [optional: -preset {preset Index}] [file1] [file2] . . .` command! *Known issues:*
*might have bugs - 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): >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\` >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\`. >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\`.

View file

@ -84,8 +84,8 @@ class UI {
async encodeFinished(barIndex) { async encodeFinished(barIndex) {
this.bars[barIndex].finished = true this.bars[barIndex].finished = true
//sets bar to 100% //sets bar to 100%
//const chunk = new Date(this.bars[barIndex].duration * 1000).toISOString().substr(11, 8) const chunk = new Date(this.bars[barIndex].duration * 1000).toISOString().substr(11, 8)
//this.updateBar(chunk, barIndex, this.bars[barIndex].isVideo) this.updateBar(chunk, barIndex, this.bars[barIndex].isVideo)
// if all are finished stop multibars and exit // if all are finished stop multibars and exit
for (let i = 0; i < this.bars.length; i++) { for (let i = 0; i < this.bars.length; i++) {
if (!this.bars[i].finished) return if (!this.bars[i].finished) return

View file

@ -1,11 +1,11 @@
{ {
"name": "8mb", "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", "description": "helps free discord users to send any media(image, video, audio) and not get limited by discords 8mb file limit",
"main": "index.js", "main": "index.js",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/your-user/repo-url.git" "url": "https://github.com/djkato/Discord-Media-Compressor-sub-8mb.git"
}, },
"bin": { "bin": {
"8mb": "bin/index.js" "8mb": "bin/index.js"