Skip to content

Commit

Permalink
adding Bitmovin to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
James Yeh committed Jan 25, 2017
1 parent ccb4321 commit 1b3bd2d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand 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
Expand Down
4 changes: 2 additions & 2 deletions provider/bitmovin/bitmovin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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("")
Expand Down

0 comments on commit 1b3bd2d

Please sign in to comment.