v4ltages / Inception

A coub downloader and encoder that uses js, node, ffmpeg, ffprobe-client

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inception - a Coub downloader

A coub downloader (CLI) and dynamic encoder that uses JavaScript, Nodejs, Axios, FFmpeg, ffprobe-client.

GitHub npm npm GitHub

Table of Contents

Installation

Linux

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.

Dependencies: Nodejs, FFmpeg

  1. Clone the repo
git clone https://github.com/v4ltages/Inception.git
  1. Switch to the directory
cd Inception
  1. 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
  1. Installing npm dependencies
npm install axios ffprobe-client
  1. 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 or no such file or directory: output then make sure both directories exist in the programs directory.

mkdir output temp

Usage

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.

Example

usageexample

License

This project uses the MIT license.

Read the LICENSE.md file to learn more.

About

A coub downloader and encoder that uses js, node, ffmpeg, ffprobe-client

License:MIT License


Languages

Language:JavaScript 100.0%