How does it work?

Shinobi records videos either continuously or on event. When recording continuously, it will create 15-minute segments by default. Whenever a recording is completed and catalogued, Shinobi can automatically upload it to any S3-compatible storage – including MEGA S4.

More information about MEGA S4 Endpoints here https://help.mega.io/megas4/setup-guides/mega-s4-endpoint-urls

What you need to get going

Before configuring Shinobi, you need to set up MEGA S4:

  1. A MEGA Pro account (Pro Lite or higher – MEGA S4 is an add-on service)
  2. A bucket – the destination folder in MEGA's cloud
  3. Access Key ID and Secret Access Key – for API authentication
  4. Your region's S3 endpoint – the server address

How to get your MEGA S4 credentials

  1. Log into your MEGA account.
  2. Click Object storage on the left-hand panel.
  3. To create a bucket: Click Create bucket, name it, and click Create.
  4. To create access keys: Click Keys on the left-hand panel, then click Create key. Name the key and copy both the Access key and Secret key.
  5. Note your S3 endpoint from the list below (choose the region closest to your Shinobi server).

MEGA S4 Endpoints

For a list of all the endpoints, see the MEGA S4 settings at https://help.mega.io/megas4/setup-guides/mega-s4-endpoint-urls

Region Endpoint
Amsterdam, Netherlands s3.eu-amsterdam.megas4.com
Luxembourg, Luxembourg s3.eu-luxembourg.megas4.com
Montreal, Canada s3.ca-montreal.megas4.com
Vancouver, Canada s3.ca-vancouver.megas4.com

Enabling automatic upload of recordings

1. Click your username in the top left to reveal the main menu.

2. Open Settings and scroll down to the S3-Based Network Storage section.

3. Set the values using your MEGA S4 credentials:

Setting Value for MEGA S4
Endpoint Address Your chosen endpoint, e.g., s3.eu-amsterdam.megas4.com
Region Leave blank (the endpoint already specifies region)
Access Key ID Paste the Access key you copied from MEGA
Secret Access Key Paste the Secret key you copied from MEGA
Bucket Name The name of the bucket you created
Autosave Enable this – triggers upload upon video completion
Save Links to Database Optional – saves the cloud link in Shinobi's database for easy access
Save Directory Optional – a subfolder inside your bucket (e.g., shinobi-videos)

4. Click Save. Now any newly created videos will upload automatically to your MEGA S4 storage.

Troubleshooting

  • Connection failed? Try adding https:// before the endpoint (e.g., https://s3.eu-amsterdam.megas4.com).
  • Region field required? Some Shinobi versions need a dummy value; try eu-amsterdam or us-east-1.
  • Can't see my bucket? Confirm your MEGA plan includes MEGA S4 – it's separate from your standard MEGA Cloud Drive.
  • Uploads not starting? Make sure Autosave is checked and that you have completed a new recording segment after saving settings.

Important Note

MEGA S4 is S3-compatible, but it is not the same as your regular MEGA Cloud Drive (the one with folders like "Root"). Do not try to use your normal MEGA login credentials or folders – you must use the dedicated S4 Object Storage section in MEGA's interface.