{"id":15086031,"url":"https://github.com/protik111/video-upload-service","last_synced_at":"2026-01-03T07:41:13.455Z","repository":{"id":248109469,"uuid":"827780666","full_name":"Protik111/video-upload-service","owner":"Protik111","description":"A video upload service optimized the video file by ffmpeg tool.","archived":false,"fork":false,"pushed_at":"2024-08-30T06:48:02.000Z","size":89689,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-23T10:29:08.861Z","etag":null,"topics":["cloudinary","docker-compose","express-js","ffmpeg","nodejs","posgresql","prisma","reactjs","redis","typescript","videojs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Protik111.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-12T11:05:17.000Z","updated_at":"2024-08-30T06:48:06.000Z","dependencies_parsed_at":"2025-01-23T10:39:19.746Z","dependency_job_id":null,"html_url":"https://github.com/Protik111/video-upload-service","commit_stats":null,"previous_names":["protik111/video-upload-service"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Protik111%2Fvideo-upload-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Protik111%2Fvideo-upload-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Protik111%2Fvideo-upload-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Protik111%2Fvideo-upload-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Protik111","download_url":"https://codeload.github.com/Protik111/video-upload-service/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243955725,"owners_count":20374372,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudinary","docker-compose","express-js","ffmpeg","nodejs","posgresql","prisma","reactjs","redis","typescript","videojs"],"created_at":"2024-09-25T07:03:50.612Z","updated_at":"2026-01-03T07:41:13.430Z","avatar_url":"https://github.com/Protik111.png","language":"TypeScript","readme":"# Video Upload Service\n\nThis service allows users to upload videos, convert them into HLS format, and add a watermark before storing them in a cloud storage solution like Cloudinary. The service also provides an API to fetch and play these videos.\n\n## HLD\n\n![Video Upload Service Diagram](./hld/hld.png)\n\n# HLD Video\n\n[Watch the demo video](./videos/demo.mp4)\n\n## Features\n\n- **Video Upload**: Uploads videos and converts them into HLS format with segment files (`.ts`) and a playlist file (`.m3u8`).\n- **Watermarking**: Adds a dynamic, animated watermark (e.g., an email) to the video.\n- **Cloud Storage**: Uploads the HLS files to Cloudinary for easy access and streaming.\n- **Video Playback**: Provides an API to retrieve the video for playback in a React application.\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/Protik111/video-upload-service.git\n   ```\n\n2. Install Dependencies for API server:\n\n   ```bash\n   yarn install\n   ```\n\n3. Install Dependencies for client (After changing directory to client):\n\n   ```bash\n   yarn install\n   ```\n\n4. Create a `.env` file in the root directory with the following variables:\n\n   ```env\n   NODE_ENV=development\n   PORT=5000\n   DATABASE_URL=\"\"\n   JWT_SECRET=''\n   JWT_REFRESH_SECRET=''\n   JWT_EXPIRES_IN=1d\n   JWT_REFRESH_EXPIRES_IN=365d\n   VIDEO_COMPRESSED_DIR='http://localhost:5000/uploads/compressed'\n   CLOUDINARY_CLOUD_NAME=''\n   CLOUDINARY_API_KEY=''\n   CLOUDINARY_API_SECRET=''\n   REDIS_URL='redis://localhost:6379'\n   REDIS_EXPIRATION_TIME=846000\n   ```\n\n## Usage Example\n\n- **React Frontend**: Use the provided HLS URL to play the video in a React application using the hls.js library.\n\n## Dependencies\n\n- **TypeScript**\n- **Node.js**\n- **Express.js**\n- **Prisma**\n- **Cloudinary**\n- **Multer**\n- **FFMPEG**\n- **REDIS**\n- **Video.js**\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotik111%2Fvideo-upload-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprotik111%2Fvideo-upload-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprotik111%2Fvideo-upload-service/lists"}