This Node.js API allows you to perform video processing tasks, including uploading video chunks, concatenating videos, and transcribing the concatenated.
- Upload video chunks.
- Concatenate uploaded video chunks.
- Transcribe the concatenated video.
- Retrieve video and transcription information.
Follow the steps below to set up and run the API.
Before you begin, ensure you have the following installed:
- Node.js
- npm (Node Package Manager)
- Express
- Body-parser
- Path
- Multer
- Fluent-ffmpeg
- Deepgram SDK
- Fs
- UUID
- Dotenv
git clone https://github.com/DimTony/HNGtask5-Extension.git
cd HNGtask5-Extension
npm install
This installs the packages in the package.json file.
Create a .env file in the root directory and specify your environment variables, including your Deepgram API Key and preferred port
- PORT= The port on which the API will run (default is 3000)
- DEEPGRAM_API_KEY= The API Key to your Deepgram instance.
Sample:
PORT=3000
DEEPGRAM_API_KEY=YOUR_DEEPGRAM_API_KEY_HERE
To start the API, run the following command:
npm start
The API will start and be available at http://localhost:3000 (or the port you specified in the .env file)
Use an API client (e.g., Postman) to interact with the following endpoints
- Start Video:
POST /api/start
- Upload, Concatenate & Transcribe Video:
POST /api/uploadFile
- Retrieve Video Information:
GET /api/getVideo/:id
- A good internet connection is required when running the API as it involves video manipulations.
This API is hosted on Render at the following address: Live URL
Contributions are welcomed! Feel free to open issues or submit pull requests or reach out through email via: MyEmail.