diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-04 15:55:51 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-05-09 08:57:34 +0200 |
commit | ab14f0e0dca878dbaccc8f6a895a68e4269c9873 (patch) | |
tree | 078247f8620ee1f3260b8c3e3336059863273eb8 /server/lib/video-studio.ts | |
parent | 5e47f6ab984a7d00782e4c7030afffa1ba480add (diff) | |
download | PeerTube-ab14f0e0dca878dbaccc8f6a895a68e4269c9873.tar.gz PeerTube-ab14f0e0dca878dbaccc8f6a895a68e4269c9873.tar.zst PeerTube-ab14f0e0dca878dbaccc8f6a895a68e4269c9873.zip |
Prefer video studio instead of video edition
Clearer and easier to find in the project
Diffstat (limited to 'server/lib/video-studio.ts')
-rw-r--r-- | server/lib/video-studio.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/lib/video-studio.ts b/server/lib/video-studio.ts index 2c993faeb..0d3db8f60 100644 --- a/server/lib/video-studio.ts +++ b/server/lib/video-studio.ts | |||
@@ -9,13 +9,13 @@ import { getVideoStreamDuration } from '@shared/ffmpeg' | |||
9 | import { VideoStudioEditionPayload, VideoStudioTask, VideoStudioTaskPayload } from '@shared/models' | 9 | import { VideoStudioEditionPayload, VideoStudioTask, VideoStudioTaskPayload } from '@shared/models' |
10 | import { federateVideoIfNeeded } from './activitypub/videos' | 10 | import { federateVideoIfNeeded } from './activitypub/videos' |
11 | import { JobQueue } from './job-queue' | 11 | import { JobQueue } from './job-queue' |
12 | import { VideoEditionTranscodingJobHandler } from './runners' | 12 | import { VideoStudioTranscodingJobHandler } from './runners' |
13 | import { createOptimizeOrMergeAudioJobs } from './transcoding/create-transcoding-job' | 13 | import { createOptimizeOrMergeAudioJobs } from './transcoding/create-transcoding-job' |
14 | import { getTranscodingJobPriority } from './transcoding/transcoding-priority' | 14 | import { getTranscodingJobPriority } from './transcoding/transcoding-priority' |
15 | import { buildNewFile, removeHLSPlaylist, removeWebTorrentFile } from './video-file' | 15 | import { buildNewFile, removeHLSPlaylist, removeWebTorrentFile } from './video-file' |
16 | import { VideoPathManager } from './video-path-manager' | 16 | import { VideoPathManager } from './video-path-manager' |
17 | 17 | ||
18 | const lTags = loggerTagsFactory('video-edition') | 18 | const lTags = loggerTagsFactory('video-studio') |
19 | 19 | ||
20 | export function buildTaskFileFieldname (indice: number, fieldName = 'file') { | 20 | export function buildTaskFileFieldname (indice: number, fieldName = 'file') { |
21 | return `tasks[${indice}][options][${fieldName}]` | 21 | return `tasks[${indice}][options][${fieldName}]` |
@@ -78,14 +78,14 @@ export async function createVideoStudioJob (options: { | |||
78 | const priority = await getTranscodingJobPriority({ user, type: 'studio', fallback: 0 }) | 78 | const priority = await getTranscodingJobPriority({ user, type: 'studio', fallback: 0 }) |
79 | 79 | ||
80 | if (CONFIG.VIDEO_STUDIO.REMOTE_RUNNERS.ENABLED) { | 80 | if (CONFIG.VIDEO_STUDIO.REMOTE_RUNNERS.ENABLED) { |
81 | await new VideoEditionTranscodingJobHandler().create({ video, tasks: payload.tasks, priority }) | 81 | await new VideoStudioTranscodingJobHandler().create({ video, tasks: payload.tasks, priority }) |
82 | return | 82 | return |
83 | } | 83 | } |
84 | 84 | ||
85 | await JobQueue.Instance.createJob({ type: 'video-studio-edition', payload, priority }) | 85 | await JobQueue.Instance.createJob({ type: 'video-studio-edition', payload, priority }) |
86 | } | 86 | } |
87 | 87 | ||
88 | export async function onVideoEditionEnded (options: { | 88 | export async function onVideoStudioEnded (options: { |
89 | editionResultPath: string | 89 | editionResultPath: string |
90 | tasks: VideoStudioTaskPayload[] | 90 | tasks: VideoStudioTaskPayload[] |
91 | video: MVideoFullLight | 91 | video: MVideoFullLight |