1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 09:49:20 +02:00

Run transcription after studio

This commit is contained in:
Chocobozzz 2024-07-11 11:29:46 +02:00
parent c5fa9fe70e
commit e99e4aa93c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
6 changed files with 92 additions and 22 deletions

View file

@ -11,6 +11,7 @@ import { VideoCaptionModel } from '@server/models/video/video-caption.js'
import { VideoJobInfoModel } from '@server/models/video/video-job-info.js'
import { VideoModel } from '@server/models/video/video.js'
import { MVideo, MVideoCaption, MVideoFullLight, MVideoUUID, MVideoUrl } from '@server/types/models/index.js'
import { MutexInterface } from 'async-mutex'
import { ensureDir, remove } from 'fs-extra/esm'
import { join } from 'path'
import { federateVideoIfNeeded } from './activitypub/videos/federate.js'
@ -18,7 +19,6 @@ import { JobQueue } from './job-queue/job-queue.js'
import { Notifier } from './notifier/notifier.js'
import { TranscriptionJobHandler } from './runners/index.js'
import { VideoPathManager } from './video-path-manager.js'
import { MutexInterface } from 'async-mutex'
const lTags = loggerTagsFactory('video-caption')