Skip to content

Commit 642ebc4

Browse files
author
Max Holland
authored
Pass through reencode flag (#246)
* Pass through reencode flag Signed-off-by: Max Holland <max@livepeer.org> * fix Signed-off-by: Max Holland <max@livepeer.org> * debug Signed-off-by: Max Holland <max@livepeer.org> * Revert "debug" This reverts commit 8ff2290. * go mod tidy Signed-off-by: Max Holland <max@livepeer.org> --------- Signed-off-by: Max Holland <max@livepeer.org>
1 parent 43e1466 commit 642ebc4

5 files changed

Lines changed: 9 additions & 7 deletions

File tree

‎Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.19-buster as builder
1+
FROM golang:1.22-bookworm as builder
22

33
WORKDIR /app
44

@@ -15,7 +15,7 @@ COPY . .
1515

1616
RUN make "version=$version"
1717

18-
FROM debian:buster-slim
18+
FROM debian:bookworm-slim
1919

2020
RUN apt update \
2121
&& apt install -yqq ca-certificates \

‎clients/catalyst.go‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ type UploadVODRequest struct {
4646
Encryption *EncryptionPayload `json:"encryption,omitempty"`
4747
ClipStrategy ClipStrategy `json:"clip_strategy,omitempty"`
4848
C2PA bool `json:"c2pa,omitempty"`
49+
Reencode bool `json:"reencode_segmentation,omitempty"`
4950
}
5051

5152
type EncryptionPayload struct {

‎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.2.0
88
github.com/julienschmidt/httprouter v1.3.0
99
github.com/livepeer/catalyst-api v0.1.2-0.20230925142340-c311569665b4
10-
github.com/livepeer/go-api-client v0.4.23-0.20240522195759-00d172d35bbb
10+
github.com/livepeer/go-api-client v0.4.24-0.20260224172655-8553bc86db26
1111
github.com/livepeer/go-tools v0.3.2
1212
github.com/livepeer/livepeer-data v0.7.5-0.20230927031152-b938ac1dc665
1313
github.com/peterbourgon/ff v1.7.1

‎go.sum‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,8 @@ github.com/libp2p/go-netroute v0.2.0 h1:0FpsbsvuSnAhXFnCY0VLFbJOzaK0VnP0r1QT/o4n
281281
github.com/libp2p/go-openssl v0.1.0 h1:LBkKEcUv6vtZIQLVTegAil8jbNpJErQ9AnT+bWV+Ooo=
282282
github.com/livepeer/catalyst-api v0.1.2-0.20230925142340-c311569665b4 h1:UfiMdEDGa88yqYD9+i1+ldAex9Kf1+3jbq+wBrmZccM=
283283
github.com/livepeer/catalyst-api v0.1.2-0.20230925142340-c311569665b4/go.mod h1:Ybiub5AGDrDfvyh1MWdIa551LAwhx/6lSpbQlgb1W1Q=
284-
github.com/livepeer/go-api-client v0.4.19-0.20240311145302-1abd53df256c h1:KPGkwuKvAbHCADy3hssTCfJVh0wxYMlXVTehEikljCc=
285-
github.com/livepeer/go-api-client v0.4.19-0.20240311145302-1abd53df256c/go.mod h1:Jdb+RI7JyzEZOHd1GUuKofwFDKMO/btTa80SdpUpYQw=
286-
github.com/livepeer/go-api-client v0.4.23-0.20240522195759-00d172d35bbb h1:ddTY+V26KtCyGgJZTd51gWbU1GvoDaGnD4ksNzZw14M=
287-
github.com/livepeer/go-api-client v0.4.23-0.20240522195759-00d172d35bbb/go.mod h1:Jdb+RI7JyzEZOHd1GUuKofwFDKMO/btTa80SdpUpYQw=
284+
github.com/livepeer/go-api-client v0.4.24-0.20260224172655-8553bc86db26 h1:X90oDq7jngHQGEvCC2uGYGoBk3SFZ3cqYW1gK50p4j8=
285+
github.com/livepeer/go-api-client v0.4.24-0.20260224172655-8553bc86db26/go.mod h1:Jdb+RI7JyzEZOHd1GUuKofwFDKMO/btTa80SdpUpYQw=
288286
github.com/livepeer/go-tools v0.3.2 h1:5pOUrOmkkGbbcWnpCt2yrSD6cD85G4GcpO4B25NpMJM=
289287
github.com/livepeer/go-tools v0.3.2/go.mod h1:qs31y68b3PQPmSr8nR8l5WQiIWI623z6pqOccqebjos=
290288
github.com/livepeer/livepeer-data v0.7.5-0.20230927031152-b938ac1dc665 h1:EXlI922Fsv9lyIw1LQ7pZN6slCuYya8NQrCFWN8INg4=

‎task/upload.go‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ type handleUploadVODParams struct {
6161
catalystPipelineStrategy pipeline.Strategy
6262
clipStrategy clients.ClipStrategy
6363
c2pa bool
64+
reencode bool
6465
}
6566

6667
func handleUploadVOD(p handleUploadVODParams) (*TaskHandlerOutput, error) {
@@ -104,6 +105,7 @@ func handleUploadVOD(p handleUploadVODParams) (*TaskHandlerOutput, error) {
104105
TargetSegmentSizeSecs: p.targetSegmentSizeSecs,
105106
Encryption: encryption,
106107
C2PA: p.c2pa,
108+
Reencode: p.reencode,
107109
}
108110

109111
if p.profiles != nil {
@@ -261,6 +263,7 @@ func TaskTranscodeFile(tctx *TaskContext) (*TaskHandlerOutput, error) {
261263
targetSegmentSizeSecs: params.TargetSegmentSizeSecs,
262264
profiles: params.Profiles,
263265
c2pa: params.C2PA,
266+
reencode: params.Reencode,
264267
})
265268
}
266269

0 commit comments

Comments
 (0)