changed install instructions, add git repo to npm
This commit is contained in:
parent
e4d20d2768
commit
8dfee8bff9
3 changed files with 11 additions and 11 deletions
14
README.md
14
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!
|
||||
|
||||

|
||||
|
||||
|
@ -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\`.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue