supabase-video-optimiser

1.0.9 • Public • Published

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.

Argument Description
--url A Supabase project URL.
--key A Supabase service role key.
--bucket The Supabase bucket where your videos are kept.
--folder A folder within the bucket where your videos are kept.
--dry Run without actually uploading anything to Supabase.
--max n Limit the conversion to the first n unconverted videos.

Readme

Keywords

none

Package Sidebar

Install

npm i supabase-video-optimiser

Weekly Downloads

0

Version

1.0.9

License

MIT

Unpacked Size

12 kB

Total Files

13

Last publish

Collaborators

  • alexmendes