diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-04 15:29:34 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-05-09 08:57:34 +0200 |
commit | 5e47f6ab984a7d00782e4c7030afffa1ba480add (patch) | |
tree | 1ce586b591a8d71acbc301eba29b9a5e6490439e /shared/models/runners/runner-job-payload.model.ts | |
parent | 6a4905602636afd6650c9e6f4d0fcc2105d91100 (diff) | |
download | PeerTube-5e47f6ab984a7d00782e4c7030afffa1ba480add.tar.gz PeerTube-5e47f6ab984a7d00782e4c7030afffa1ba480add.tar.zst PeerTube-5e47f6ab984a7d00782e4c7030afffa1ba480add.zip |
Support studio transcoding in peertube runner
Diffstat (limited to 'shared/models/runners/runner-job-payload.model.ts')
-rw-r--r-- | shared/models/runners/runner-job-payload.model.ts | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/shared/models/runners/runner-job-payload.model.ts b/shared/models/runners/runner-job-payload.model.ts index 8f0c17135..9f0db0dc4 100644 --- a/shared/models/runners/runner-job-payload.model.ts +++ b/shared/models/runners/runner-job-payload.model.ts | |||
@@ -1,3 +1,5 @@ | |||
1 | import { VideoStudioTaskPayload } from '../server' | ||
2 | |||
1 | export type RunnerJobVODPayload = | 3 | export type RunnerJobVODPayload = |
2 | RunnerJobVODWebVideoTranscodingPayload | | 4 | RunnerJobVODWebVideoTranscodingPayload | |
3 | RunnerJobVODHLSTranscodingPayload | | 5 | RunnerJobVODHLSTranscodingPayload | |
@@ -5,7 +7,8 @@ export type RunnerJobVODPayload = | |||
5 | 7 | ||
6 | export type RunnerJobPayload = | 8 | export type RunnerJobPayload = |
7 | RunnerJobVODPayload | | 9 | RunnerJobVODPayload | |
8 | RunnerJobLiveRTMPHLSTranscodingPayload | 10 | RunnerJobLiveRTMPHLSTranscodingPayload | |
11 | RunnerJobVideoEditionTranscodingPayload | ||
9 | 12 | ||
10 | // --------------------------------------------------------------------------- | 13 | // --------------------------------------------------------------------------- |
11 | 14 | ||
@@ -43,6 +46,14 @@ export interface RunnerJobVODAudioMergeTranscodingPayload { | |||
43 | } | 46 | } |
44 | } | 47 | } |
45 | 48 | ||
49 | export interface RunnerJobVideoEditionTranscodingPayload { | ||
50 | input: { | ||
51 | videoFileUrl: string | ||
52 | } | ||
53 | |||
54 | tasks: VideoStudioTaskPayload[] | ||
55 | } | ||
56 | |||
46 | // --------------------------------------------------------------------------- | 57 | // --------------------------------------------------------------------------- |
47 | 58 | ||
48 | export function isAudioMergeTranscodingPayload (payload: RunnerJobPayload): payload is RunnerJobVODAudioMergeTranscodingPayload { | 59 | export function isAudioMergeTranscodingPayload (payload: RunnerJobPayload): payload is RunnerJobVODAudioMergeTranscodingPayload { |