The Video Transcoding API provides an agnostic API to transcode media assets across different cloud services. Currently, it supports the following providers:
With latest Go installed, make sure to export the follow environment variables:
For Bitmovin
export BITMOVIN_API_KEY=your.api.key
export BITMOVIN_AWS_ACCESS_KEY_ID=your.access.key.id
export BITMOVIN_AWS_SECRET_ACCESS_KEY=your.secret.access.key
export BITMOVIN_AWS_STORAGE_REGION=your.s3.region.such.as.US_EAST_1.or.EU_WEST_1
export BITMOVIN_GCS_ACCESS_KEY_ID=your.gcs.access.key.id
export BITMOVIN_GCS_SECRET_ACCESS_KEY=your.gcs.secret.access.key
export BITMOVIN_GCS_STORAGE_REGION=your.s3.region.such.as.US_EAST_1.or.EU_WEST_1
export BITMOVIN_DESTINATION=s3://your-s3-bucket
export BITMOVIN_ENCODING_REGION=your.provider.region.such.as.AWS_US_EAST_1.or.GOOGLE_EUROPE_WEST_1
export BITMOVIN_ENCODING_VERSION=STABLE.or.BETA
For Hybrik
export HYBRIK_URL=your.hybrik.api.endpoint.such.as.https://api_demo.hybrik.com/v1
export HYBRIK_COMPLIANCE_DATE=20170601
export HYBRIK_OAPI_KEY=your.hybrik.oapi.key
export HYBRIK_OAPI_SECRET=your.hybrik.oapi.secret
export HYBRIK_AUTH_KEY=your.hybrik.auth.key
export HYBRIK_AUTH_SECRET=your.hybrik.auth.secret
export HYBRIK_GCP_CREDENTIALS_KEY=your.hybrik.gcp.credentials.key
export HYBRIK_DESTINATION=s3://your-s3-bucket
export HYBRIK_PRESET_PATH=video-transcoding-api-presets
HYBRIK_PRESET_PATH
is optional and defines the folder presets will be
stored in. If not specified, it will default to
'video-transcoding-api-presets'.
For MediaConvert
export MEDIACONVERT_AWS_ACCESS_KEY_ID=your.access.key.id
export MEDIACONVERT_AWS_SECRET_ACCESS_KEY=your.secret.access.key
export MEDIACONVERT_AWS_REGION="us-east-1"
export MEDIACONVERT_ENDPOINT=your.mediaconvert.endpoint
export MEDIACONVERT_QUEUE_ARN=your.queue.arn
export MEDIACONVERT_PREFERRED_QUEUE_ARN=your.preferred.queue.arn
export MEDIACONVERT_ROLE_ARN=your.iam.role.arn
export MEDIACONVERT_DESTINATION=s3://your-s3-bucket
For Flock
export FLOCK_ENDPOINT=you.flock.endpoint
export FLOCK_CREDENTIAL=you.flock.auth.secret
In order to store preset maps and job statuses we need a Redis instance running. Learn how to setup and run a Redis here. With the Redis instance running, set its configuration variables:
export REDIS_ADDR=192.0.2.31
export REDIS_PASSWORD=p4ssw0rd.here
If you are running Redis in the same host of the API and on the default port (6379) the API will automatically find the instance and connect to it.
With all environment variables set and redis up and running, clone this repository and run:
$ git clone https://github.com/cbsinteractive/video-transcoding-api.git
$ make run
$ make test
- This code is under Apache 2.0 license.
- The video-transcoding-api logo is a variation on the Go gopher that was designed by Renee French and copyrighted under the Creative Commons Attribution 3.0 license.