1.0.9 • Published 1 year ago

supabase-video-optimiser v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Supabase Video Optimiser

A script for optimising videos kept in Supabase storage.

It compresses .mp4 files and creates and uploads .m3u8 variants of each video. It was written to compress videos to be used in mobile apps.

Usage

Run the script with:

npx supabase-video-optimiser --url <PROJECT-URL> --key <SERVICE-ROLE-KEY> --bucket videos --folder public

This will compress video files and re-upload them to Supabase, along with HLS versions.

You can check the results of the compression by looking in the ./videos folder.

The following command line arguments are available.

ArgumentDescription
--urlA Supabase project URL.
--keyA Supabase service role key.
--bucketThe Supabase bucket where your videos are kept.
--folderA folder within the bucket where your videos are kept.
--dryRun without actually uploading anything to Supabase.
--max nLimit the conversion to the first n unconverted videos.