1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

Add ability to disable storyboards

This commit is contained in:
Chocobozzz 2023-12-27 10:39:09 +01:00
parent 482223cc23
commit b9077c83fc
No known key found for this signature in database
GPG key ID: 583A612D890159BE
23 changed files with 131 additions and 60 deletions

View file

@ -16,6 +16,7 @@ import { buildFileMetadata } from '../video-file.js'
import { VideoPathManager } from '../video-path-manager.js'
import { buildFFmpegVOD } from './shared/index.js'
import { buildOriginalFileResolution } from './transcoding-resolutions.js'
import { buildStoryboardJobIfNeeded } from '../video.js'
// Optimize the original video file and replace it. The resolution is not changed.
export async function optimizeOriginalVideofile (options: {
@ -247,14 +248,7 @@ export async function onWebVideoFileTranscoding (options: {
video.VideoFiles = await video.$get('VideoFiles')
if (wasAudioFile) {
await JobQueue.Instance.createJob({
type: 'generate-video-storyboard' as 'generate-video-storyboard',
payload: {
videoUUID: video.uuid,
// No need to federate, we process these jobs sequentially
federate: false
}
})
await JobQueue.Instance.createJob(buildStoryboardJobIfNeeded({ video, federate: false }))
}
return { video, videoFile }