Coder Social home page Coder Social logo

jmonkfish / vtt-creator-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prajilshresthaiw/vtt-creator-backend

0.0 0.0 0.0 171 KB

The backend part of a tool for creating and editing Web Video Text Track (WebVTT) files in your browser.

JavaScript 99.14% Dockerfile 0.86%

vtt-creator-backend's Introduction

VTT Creator Backend

The backend part of a tool for creating and editing Web Video Text Track (WebVTT) files in your browser.

Check out the demo here.

The frontend app is currently more interesting. Check it out here.

Development

To get started, you'll need to create a file in the project root called .env.dev. This file needs to contain the following environment variables:

PORT=3001
NODE_ENV=development
GOOGLE_APPLICATION_CREDENTIALS=gcp_credentials.json

The PORT variable specifies what port the app will listen for requests on. If you set it to PORT=3002 for example, you can make requests to http://localhost:3002. Whatever you set this to, make sure the API_URL env var in the frontend application is pointing to the matching port.

The GOOGLE_APPLICATION_CREDENTIALS variable specifies the path to your Google Cloud Provider credentials file. If you plan to use Cloud Speech-to-Text to extract the text for your captions (which is kind of the point of the backend app), you'll need to create this file, put it somewhere in this project (root is a great spot ;)), and point this variable at it.

Once your environment is good to go, open a terminal window and navigate to the project root. Install dependencies with:

yarn

To run the app, run:

yarn start

Useful ffmpeg commands:

Extract first 6.5 seconds from an audio clip (https://stackoverflow.com/questions/7945747/how-can-you-only-extract-30-seconds-of-audio-using-ffmpeg)

ffmpeg -ss 0 -t 6.5 -i volvo_1.wav volvo_1_short.wav

Extract audio from video (https://ffmpeg.org/ffmpeg.html#Audio-Options)

ffmpeg -i "Volvo - Use the Code.mp4" -f wav -ar 44100 -ac 1 -sample_fmt s16 -vn volvo_1.wav

vtt-creator-backend's People

Contributors

dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.