Skip to content

rockerrishabh/bun-hls-video-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Upload and HLS Conversion Server

This project sets up a web server using Bun and Hono that allows users to upload single or multiple video files, which are then processed and converted into HLS (HTTP Live Streaming) format. The server supports CORS and serves static files from a specified uploads directory.

Table of Contents

Features

  • Hndle routes using Hono.
  • Basic CORS support for cross-origin requests.
  • Serve static files from a specified uploads directory.
  • Upload single or multiple video files in various formats using Bun.
  • Convert uploaded videos to HLS format using ffmpeg.
  • Error handling for file uploads and conversions.

Requirements

  • Bun - A JavaScript runtime like Node.js.
  • Hono - A lightweight web framework for Bun.
  • ffmpeg - A command-line tool for video and audio processing.

Installation

  1. Clone the repository:

    git clone https://github.com/rockerrishabh/bun-hls-video-processor.git
    cd bun-hls-video-processor
  2. To install dependencies:

    bun install
  3. To run:

    bun run index.ts

This project was created using bun init in bun v1.1.33. Bun is a fast all-in-one JavaScript runtime.

About

Video Upload and HLS Conversion Server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published