Skip to main content

Select a media in S3 and make a local Proxy

Goal

Our goal is to select a file in a S3 Bucket and to make a proxy in a local storage and display it.

Components used

Register media
FFMPEG

What do you need before starting?

  • A S3 bucket with the necessary credentials
  • A File Connector configured to access the S3 Bucket
  • A File Connector configured to access the proxy's storage.

Solution Overview

main The sequence will let you select a media in your bucket then we will create a local proxy from the source in S3 by streaming the content with a presigned_url. Then the proxy player will allow you to play it. The proxy will remain unchanged until the sequence is deleted.

Select media form

The select media form is the first step of our sequence. It should contain at least a media_selector object. You may add necessary form object needed for your project.

Media selector form object

The media selector lets you browse a S3 Bucket, a directory, an AVID Media Central Hierarchy, a SFTP server with the same user experience.

When validated this form will add to your context a smart_path named with the media_selector key name describing the file and the connector used. It contains the presigned_url of the media selected in S3.

Prepare proxy workflow

Our proxy workflow will use the Register media task to prepare and register the proxy created by FFMPEG task.

Register media task

FFMPEG task

Show Proxy

This form will display a media player amongst other form element of your choice.

Registered media player