Skip to content

Commit e2660f6

Browse files
authored
Generate always MP4 output for recordings (#192)
1 parent 1c98ca4 commit e2660f6

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ require (
77
github.com/golang/glog v1.1.1
88
github.com/julienschmidt/httprouter v1.3.0
99
github.com/livepeer/catalyst-api v0.0.13-0.20230412092340-584bd5df0143
10-
github.com/livepeer/go-api-client v0.4.6
10+
github.com/livepeer/go-api-client v0.4.7
1111
github.com/livepeer/go-tools v0.2.11
1212
github.com/livepeer/joy4 v0.1.2-0.20220210094601-95e4d28f5f07
1313
github.com/livepeer/livepeer-data v0.6.5

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,10 @@ github.com/livepeer/catalyst-api v0.0.13-0.20230412092340-584bd5df0143 h1:x3qnBj
380380
github.com/livepeer/catalyst-api v0.0.13-0.20230412092340-584bd5df0143/go.mod h1:RXmOHwq1ZpQHf2KiVNP95g+kEAVYMMRgfSoKhYYd0so=
381381
github.com/livepeer/go-api-client v0.4.6 h1:Eo9mq5k9gnu8fgclbT7ibQdTgBV7a/NDIBIuYXHMzV0=
382382
github.com/livepeer/go-api-client v0.4.6/go.mod h1:Jdb+RI7JyzEZOHd1GUuKofwFDKMO/btTa80SdpUpYQw=
383+
github.com/livepeer/go-api-client v0.4.7-0.20230505075842-c7753b235c92 h1:7NtWLs2xmQV7/+D9kEuWofxdN9YQ8XwkrOAf3qEQ2HE=
384+
github.com/livepeer/go-api-client v0.4.7-0.20230505075842-c7753b235c92/go.mod h1:Jdb+RI7JyzEZOHd1GUuKofwFDKMO/btTa80SdpUpYQw=
385+
github.com/livepeer/go-api-client v0.4.7 h1:pJd0Ba7TtDJDUEOiPBx9KmLm+fIB8GRbAurd3lsZUVY=
386+
github.com/livepeer/go-api-client v0.4.7/go.mod h1:Jdb+RI7JyzEZOHd1GUuKofwFDKMO/btTa80SdpUpYQw=
383387
github.com/livepeer/go-tools v0.2.11 h1:LEW08kXsjswIn3YtZiCZydI2sZ3WI5FtleoD8pBwVSE=
384388
github.com/livepeer/go-tools v0.2.11/go.mod h1:/aZ+20XYLdeebFA3CrQTkHUf7DmiGBzh6Bs8JkbelUA=
385389
github.com/livepeer/joy4 v0.1.2-0.20220210094601-95e4d28f5f07 h1:ISkFQYYDgfnM6Go+VyemF66DKFc8kNoI9SwMv7GC9sM=

task/upload.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,11 @@ func removeCredentials(metadata *clients.CatalystCallback) *clients.CatalystCall
553553
func uploadTaskOutputLocations(tctx *TaskContext) ([]OutputName, []clients.OutputLocation, error) {
554554
playbackId := tctx.OutputAsset.PlaybackID
555555
outURL := tctx.OutputOSObj.URL
556-
outputNames, outputLocations, err := outputLocations(outURL, OUTPUT_ENABLED, playbackId, OUTPUT_ONLY_SHORT, playbackId)
556+
var mp4 = OUTPUT_ONLY_SHORT
557+
if tctx.OutputAsset.Source.Type == "recording" {
558+
mp4 = OUTPUT_ENABLED
559+
}
560+
outputNames, outputLocations, err := outputLocations(outURL, OUTPUT_ENABLED, playbackId, mp4, playbackId)
557561
if err != nil {
558562
return nil, nil, err
559563
}

0 commit comments

Comments
 (0)