Created
December 15, 2016 20:09
-
-
Save flavioribeiro/d329f78707b6d02ea62ba47fd4c02c0c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git provider/provider.go provider/provider.go | |
| index dcaa9e6..05c5692 100644 | |
| --- provider/provider.go | |
| +++ provider/provider.go | |
| @@ -94,6 +94,7 @@ type OutputFile struct { | |
| VideoCodec string `json:"videoCodec"` | |
| Height int64 `json:"height"` | |
| Width int64 `json:"width"` | |
| + FileSize int64 `json:"fileSize"` | |
| } | |
| // SourceInfo contains information about media transcoded using the Transcoding | |
| diff --git provider/zencoder/zencoder.go provider/zencoder/zencoder.go | |
| index 6ad8159..74dd99e 100644 | |
| --- provider/zencoder/zencoder.go | |
| +++ provider/zencoder/zencoder.go | |
| @@ -329,6 +329,7 @@ func (z *zencoderProvider) getJobOutputs(job *db.Job, outputMediaFiles []*zencod | |
| VideoCodec: mediaFile.VideoCodec, | |
| Width: int64(mediaFile.Width), | |
| Height: int64(mediaFile.Height), | |
| + FileSize: int64(mediaFile.FileSizeInBytes), | |
| } | |
| if mediaFile.State == "finished" && mediaFile.Format == "" && strings.HasSuffix(mediaFile.Url, "m3u8") { | |
| file.Container = "m3u8" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment