An open API service indexing awesome lists of open source software.

https://github.com/schpet/cvthls

cvthls: Convert Video To HLS
https://github.com/schpet/cvthls

cli deno

Last synced: 2 months ago
JSON representation

cvthls: Convert Video To HLS

Awesome Lists containing this project

README

          

# cvthls: convert video to hls

cli to convert video files into HLS chunks and a playlist. upload them to
R2/S3/etc with rclone.

adapted from
[wesbos/R2-video-streaming](https://github.com/wesbos/R2-video-streaming)

> [!NOTE]
> project is very much WIP, mostly just an excuse to mess around with deno and
> jsr

## prerquisites

- ffmpeg
- rclone (if using rclone to upload to a storage system like R2)

## usage

```bash
# print help
deno run -A jsr:@schpet/cvthls

# convert video to hls
deno run -A jsr:@schpet/cvthls ./input/sample.mp4

# convert video to hls
deno run -A jsr:@schpet/cvthls ./input/sample.mp4

# convert video to hls and upload with rclone (https://rclone.org/) with a uuid
deno run -A jsr:@schpet/cvthls ./input/sample.mp4 --rclone-dest "r2files:streaming-video/cvthls" -u
```