A proof of concept script to transcode video.
There are three parts.
A typescript script to programatically transcode video into:
- chunked into 4 second chunks
- available in multiple resolutions each with their own .m3u8 file
- a master .m3u8 file
A sample HTML file using Media Chrome and hls-video-element to stream and adapt resolution of the above transcoded video
A script to sync the output video files to Cloudflare R2. Currently this script is just rclone copy ./output/dbngin/ r2demo:streaming-video/dbngin
TODO. A worker to:
- Limit access to video files
- Enable CDN cache for the video chunks so it will be fast around the wold