Skip to main content
Version: 2.14

Record Streams To Google Cloud Storage

Google Cloud is another cloud provider that is preferred by many Ant Media Server users. You could integrate your Google Cloud cloud instance easily with S3 cloud storage. Let’s see how it can be done with a few steps!

  1. Firstly, you need to create a Bucket. Just click the Create button and fill in the blanks. You should choose the access level to be Fine-grained

  1. Go to the bucket and create a folder named streams

  1. Go to the Settings on the left and select Interoperability tab. On the User Account HMAC section, choose the default project for interoperability access.

  1. Create an access key for the user account

  2. Log in to the Ant media server, enable the Record Live Streams as MP4 and Enable S3 Recording options, enter your S3 credentials, and save the changes. Pay attention that enter auto for Region Name and https://storage.googleapis.com for Endpoint

Congratz, your MP4 files and preview files will be uploaded to your Google Cloud Storage Bucket automatically.

Enable HTTP Forwarding for Playback

After uploading to Google Cloud Storage, your files will no longer be available in the Ant Media Server local storage. If you try to access them using an AMS URL, you may encounter a 404 Not Found error.

To resolve this, enable HTTP Forwarding so Ant Media Server automatically redirects requests to your OVH Object Storage.

Steps to Enable HTTP Forwarding

  1. Log in to the Ant Media Server Management Panel

  2. Navigate to your application (e.g., live) and go to Application Settings → Advanced Settings.

  3. Set the following properties:

    httpForwardingExtension: mp4,m3u8  
    httpForwardingBaseURL: https://storage.googleapis.com/{bucket-name}

    Example:

    httpForwardingExtension: mp4,m3u8  
    httpForwardingBaseURL: https://storage.googleapis.com/mybucket
  4. Save your settings

Playback

Once forwarding is configured, your VOD files stored in Google Cloud Storage can be played directly using AMS URLs.
The media will be served from Google Cloud, while viewers continue to use your Ant Media Server domain.

Now, when you access:

https://your-domain:5443/live/streams/recording.mp4  

Ant Media Server will forward the request to:

https://storage.googleapis.com/mybucket/streams/recording.mp4