Skip to content

Commit

Permalink
adding mov support
Browse files Browse the repository at this point in the history
  • Loading branch information
James Yeh committed Jan 3, 2018
1 parent 5f064e6 commit 0449ec6
Show file tree
Hide file tree
Showing 13 changed files with 509 additions and 195 deletions.
205 changes: 22 additions & 183 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

[[constraint]]
name = "github.com/bitmovin/bitmovin-go"
version = "1.5.2"
version = "1.5.3"

[[constraint]]
branch = "master"
Expand Down
20 changes: 19 additions & 1 deletion provider/bitmovin/bitmovin.go
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,24 @@ func (p *bitmovinProvider) Transcode(job *db.Job) (*provider.JobStatus, error) {
if videoMuxingResp.Status == bitmovinAPIErrorMsg {
return nil, errors.New("Error in adding MP4 Muxing")
}
} else if container == "mov" {
videoMuxingOutput := models.Output{
OutputID: s3OSResponse.Data.Result.ID,
ACL: acl,
OutputPath: stringToPtr(filepath.Dir(output.FileName)),
}
videoMuxing := &models.ProgressiveMOVMuxing{
Filename: stringToPtr(filepath.Base(output.FileName)),
Outputs: []models.Output{videoMuxingOutput},
Streams: []models.StreamItem{videoMuxingStream, audioMuxingStream},
}
videoMuxingResp, vmErr := encodingS.AddProgressiveMOVMuxing(*encodingResp.Data.Result.ID, videoMuxing)
if err != nil {
return nil, vmErr
}
if videoMuxingResp.Status == bitmovinAPIErrorMsg {
return nil, errors.New("Error in adding MP4 Muxing")
}
} else {
return nil, errors.New("unknown container format")
}
Expand Down Expand Up @@ -999,7 +1017,7 @@ func (p *bitmovinProvider) Healthcheck() error {
func (p *bitmovinProvider) Capabilities() provider.Capabilities {
return provider.Capabilities{
InputFormats: []string{"prores", "h264"},
OutputFormats: []string{"mp4", "hls", "webm"},
OutputFormats: []string{"mp4", "mov", "hls", "webm"},
Destinations: []string{"s3"},
}
}
Expand Down
Loading

0 comments on commit 0449ec6

Please sign in to comment.