项目作者: v4ltages

项目描述 :
A coub downloader and encoder that uses js, node, ffmpeg, ffprobe-client
高级语言: JavaScript
项目地址: git://github.com/v4ltages/Inception.git
创建时间: 2020-05-14T18:59:24Z
项目社区:https://github.com/v4ltages/Inception

开源协议:MIT License

下载


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
  1. git clone https://github.com/v4ltages/Inception.git
  1. Switch to the directory
    1. cd Inception
  2. Check if nodejs is installed and up to date with either the LTS (Long Term Support) version or the latest version
    1. node -v
    2. v14.7.0
  3. Installing npm dependencies
    1. npm install axios ffprobe-client
  4. 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.

  1. mkdir output temp

Usage

To use the program type

  1. node .

Output would look like this

  1. 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

  1. Insert a Coub ID: 2hg87j
  2. Video duration: 7.480000 and audio duration: 59.872653
  3. Average framerate is: 25
  4. Will loop around 8 times
  5. 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.