Skip to content

Use AWS S3 on AVideo Platform

Daniel Neto edited this page Oct 7, 2026 · 7 revisions

How to configure the AWS_S3 plugin

The AWS_S3 plugin moves your video files to Amazon S3 (or an S3-compatible storage such as Wasabi) so they do not fill your server's disk. AWS_S3 is a paid add-on available from the AVideo plugin marketplace.

What it stores

  • MP4, WebM and MP3 files are uploaded to the bucket as soon as the Encoder delivers them. The local file is replaced by a tiny placeholder file (10 bytes) that AVideo needs; do not delete these placeholders.
  • HLS videos, images and thumbnails stay on your server. If you use VideoHLS, your disk still needs room for HLS files.
  • Files larger than 5 GB stay on your server.
  • When you delete a video in AVideo, its files are deleted from the bucket too.

1. Create the bucket and the access key

In the AWS console (other providers have similar screens):

  1. Open S3 and create a bucket. Write down the bucket name and its region code (for example us-west-2). You can keep public access blocked: AVideo uses signed links.
  2. Open IAM, create a user and give it access to S3. AmazonS3FullAccess is the simplest choice, but it opens all your buckets; a policy limited to this bucket is safer.
  3. Open the user, create an access key, and copy the Access key ID and the Secret access key. The secret is shown only once. Never publish it.

2. Configure the plugin

Open Admin Panel → Settings → S3, B2, FTP settings (or Plugins → AWS_S3 → Edit parameters), enable the plugin and fill in:

Setting What to enter
region The bucket region code, for example us-west-2
bucket_name The bucket name
key Access key ID
secret Secret access key
endpoint Leave empty for Amazon S3. For other providers, the full address starting with https://, for example https://s3.wasabisys.com
profile Leave empty
useS3DirectLink Keep checked (default): the player loads files straight from S3. If unchecked, your site redirects each request to S3, which needs Apache XSendFile
presignedRequestSecondsTimeout How long each signed link works, in seconds. Default 43200 (12 hours)
CDN_Link Optional. Address of a CDN in front of the bucket (for example CloudFront). Links then become this address plus the file name, without a signature, so the CDN must be able to read the bucket
makeMyFilesPublicRead Leave unchecked unless your bucket allows public files. When checked, files are uploaded as public and links do not expire. New AWS buckets block this by default and uploads would fail

Click Save changes.

3. Test

The AWS_S3 row in Plugins has three buttons:

  • Upload Test: uploads a small test file and shows the result and a link. Open the link; you should see the test file. An error here means the region, bucket, keys or endpoint are wrong.
  • Upload to S3: moves all MP4, WebM and MP3 files that are still on your server to the bucket. Use it only after a successful test.
  • Download from S3: in the current version this does not copy files back to your server.

Then upload a short video, wait until it is encoded, and play it while signed out. In the browser's developer tools (F12 → Network) the video file should come from your bucket.

Move a large existing library (Advanced (server access needed))

The Upload to S3 button runs inside the browser and can stop on large libraries. On the server, run the same transfer from a terminal (SSH):

cd /var/www/html/AVideo/plugin/AWS_S3
sudo -u www-data php transfer.php upload

It goes through every video and uploads its MP4, WebM and MP3 files. It can take hours; keep the terminal open. Progress is written to the AVideo log (Log file in the left menu). Make a backup first.

Other S3-compatible providers

For Wasabi and others you must fill endpoint and use the region of your bucket. See How do I use the AWS S3 plugin with Wasabi.

Common problems

Problem What to check
Upload Test shows an error Region, bucket name, key and secret. For non-AWS providers, endpoint must start with https://.
Upload fails only when makeMyFilesPublicRead is checked The bucket does not accept public files. Uncheck it.
Video does not play, the browser shows 403 from the bucket The server clock is wrong (signed links need the correct time), or CDN_Link points to a CDN that cannot read the bucket.
HLS videos still use local disk Normal: this plugin stores only MP4, WebM and MP3. Use CDN Storage, Backblaze B2 or YPTStorage for HLS.
Some files stayed on the server Files over 5 GB are not uploaded. Check the log.

Only one storage plugin should be enabled at a time; see Storage options.

Clone this wiki locally