A coub downloader (CLI) and dynamic encoder that uses JavaScript, Nodejs, Axios, FFmpeg, ffprobe-client.
This was made for Ubuntu/Debian based distributions in mind, but any other distributions should also work if they have the FFmpeg and NodeJS packages available.
- Clone the repo
git clone https://github.com/v4ltages/Inception.git
- Switch to the directory
cd Inception
- Check if nodejs is installed and up to date with either the LTS (Long Term Support) version or the latest version
node -v
v14.7.0
- Installing npm dependencies
npm install axios ffprobe-client
- Making the temp and output directory
Notes:
Currently the program dosen't have a check if both output and temp directory exists so you will need to make the directories yourself. If you get
no such file or directory: temp
orno such file or directory: output
then make sure both directories exist in the programs directory.
mkdir output temp
To use the program type
node .
Output would look like this
Insert a Coub ID:
The program only takes the ID of the Coub and not the full link. This feature will be added in the future.See commit d1eb2f6
Insert a Coub ID: 2hg87j
Video duration: 7.480000 and audio duration: 59.872653
Average framerate is: 25
Will loop around 8 times
There is around 187 frames
Will output information about the video duration, audio duration, average framerate and frames. It will use this information to calculate the amount of times the video will be looped.
This project uses the MIT license.
Read the LICENSE.md file to learn more.