From 1b3bd2d38883c6877ab4f658b43e4c83843f09c1 Mon Sep 17 00:00:00 2001 From: James Yeh Date: Wed, 25 Jan 2017 12:05:04 -0800 Subject: [PATCH] adding Bitmovin to readme --- README.md | 9 +++++++++ provider/bitmovin/bitmovin.go | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4d22ae53..4e74307f 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ providers: - [Encoding.com](http://encoding.com) - [Amazon Elastic Transcoder](https://aws.amazon.com/elastictranscoder/) - [Zencoder](http://zencoder.com) +- [Bitmovin](http://bitmovin.com) ## Setting Up @@ -58,6 +59,14 @@ export ZENCODER_API_KEY=your.api.key export ZENCODER_DESTINATION=http://access.key.id:secret.access.key@your-s3-bucket.s3.amazonaws.com/ ``` +#### For [Bitmovin](http://bitmovin.com) + +``` +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 +``` + Please notice that for Elastic Transcoder you don't specify the destination bucket, as it is [defined in the Elastic Transcoder diff --git a/provider/bitmovin/bitmovin.go b/provider/bitmovin/bitmovin.go index 1697ccc6..026b4729 100644 --- a/provider/bitmovin/bitmovin.go +++ b/provider/bitmovin/bitmovin.go @@ -433,7 +433,7 @@ func (p *bitmovinProvider) Transcode(job *db.Job) (*provider.JobStatus, error) { encoding := &models.Encoding{ Name: stringToPtr("encoding"), CustomData: customData, - CloudRegion: bitmovintypes.CloudRegionGoogleEuropeWest1, + CloudRegion: bitmovintypes.CloudRegionGoogleUSEast1, } // fmt.Println("second spew") // fmt.Println("first dump") @@ -819,7 +819,7 @@ func parseS3URL(input string) (bucketName string, path string, fileName string, fileName = splitTruncatedInput[len(splitTruncatedInput)-1] truncatedInput = strings.TrimPrefix(truncatedInput, bucketName+"/") path = strings.TrimSuffix(truncatedInput, fileName) - cloudRegion = bitmovintypes.AWSCloudRegionEUWest1 + cloudRegion = bitmovintypes.AWSCloudRegionUSEast1 return } return "", "", "", bitmovintypes.AWSCloudRegion(""), errors.New("")