/

Modify Cloudstorage Plugin Properties File


Modify Cloudstorage Plugin Properties File

Edit the {red5pro}/conf/cloudstorage-plugin.properties file:

# Cloudstorage Plugin Properties
#
# JetS3t library configuration option info: http://jets3t.s3.amazonaws.com/toolkit/configuration.html
#

# Plugin Services
services=
# for AWS S3 cloudstorage
#services=com.red5pro.media.storage.s3.S3Uploader,com.red5pro.media.storage.s3.S3BucketLister
# for Google Cloud storage
#services=com.red5pro.media.storage.gstorage.GStorageUploader,com.red5pro.media.storage.gstorage.GStorageBucketLister
# for DO S3 cloudstorage
#services=com.red5pro.media.storage.digitalocean.DOUploader,com.red5pro.media.storage.digitalocean.DOBucketLister
# Path
# Path
streams.dir=/tmp/
# Full path to the ffmpeg executable
ffmpeg.path=/usr/bin/ffmpeg

# Time
max.transcode.minutes=5

# FFMpeg command line for transcoding flv to mp4
## add the '-report' parameter after '-y' to get a log for debugging if problems occur
## Variables: 0=replaced with ffmpeg path, 1=input file path, 2=output file path

### LGPL command template
#ffmpeg.template=%s -y -async 1 -i %s -acodec aac -b:a 128k -ar 44100 -strict -2 -vcodec libopenh264 -pix_fmt yuv420p -profile:v baseline -level 3.0 %s

### GPL command template
ffmpeg.template=%s -y -async 1 -i %s -acodec aac -b:a 128k -ar 44100 -strict -2 -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -level 3.0 %s

# AWS Configuration
aws.access.key=YOUR_AWS_ACCESS_KEY
aws.secret.access.key=YOUR_AWS_SECRET_ACCESS_KEY
# Bucket name
aws.bucket.name=red5provod
# Valid locations are: US for United States, EU for Europe, and AS for Asia
aws.bucket.location=US

# Google Storage Configuration
gs.access.key=YOUR_GOOGLE_STORAGE_ACCESS_KEY
gs.secret.access.key=YOUR_GOOGLE_STORAGE_SECRET_ACCESS_KEY
# Bucket name
gs.bucket.name=red5provod

#DigitalOcean Space Configuration
do.access.key=YOUR_DO_ACCESS_KEY
do.secret.access.key=YOUR_DO_SECRET_ACCESS_KEY
do.endpoint=digitaloceanspaces.com
# Bucket name
do.bucket.name=red5provod
# Valid locations are: sfo2, nyc3, sgp1, fra1
do.bucket.location=YOUR_DO_DROPLETS_REGION

Cloudstorage Plugin Properties - AWS

Plugin Properties to modify

  • services = make sure that the following are uncommented: com.red5pro.media.storage.s3.S3Uploader,com.red5pro.media.storage.s3.S3BucketLister
  • ffmpeg.path = Full path to the FFMpeg executable (for orientation post-processor only).
  • max.transcode.minutes = Maximum time in minutes allotted for transcoding to run per file.
  • aws.access.key = Your AWS access key.
  • aws.secret.access.key = Your AWS secret access key.
  • aws.bucket.name = The S3 bucket in which files will be stored.
  • aws.bucket.location = Geographic location of the S3 bucket.

Cloudstorage Plugin Properties - GCP

Plugin Properties to modify

  • services = make sure that the following are uncommented: com.red5pro.media.storage.gstorage.GStorageUploader,com.red5pro.media.storage.gstorage.GStorageBucketLister
  • ffmpeg.path = Full path to the FFMpeg executable (for orientation post-processor only).
  • max.transcode.minutes = Maximum time in minutes allotted for transcoding to run per file.
  • gs.access.key = Your Google storage access key
  • gs.secret.access.key = Your Google storage secret access key
  • gs.bucket.name = The GCP storage bucket in which files will be stored.

Cloudstorage Plugin Properties - Digital Ocean

  • services - make sure that the following are uncommented: com.red5pro.media.storage.digitalocean.DOUploader,com.red5pro.media.storage.digitalocean.DOBucketLister
  • ffmpeg.path = Full path to the FFMpeg executable (for orientation post-processor only).
  • max.transcode.minutes = Maximum time in minutes allotted for transcoding to run per file.
  • do.access.key= Your Digital Ocean key from above
  • do.secret.access.key= The secret key associated with the key
  • do.endpoint leave as the default digitaloceanspaces.com
  • do.bucket.name= your space name
  • do.bucket.location= the region where your space was created (Valid locations are: sfo2, nyc3, sgp1, fra1)

Plugin Properties to modify