aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/transcoding/transcoding.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/transcoding/transcoding.ts')
-rw-r--r--server/lib/transcoding/transcoding.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/lib/transcoding/transcoding.ts b/server/lib/transcoding/transcoding.ts
index d55364e25..9a15f8613 100644
--- a/server/lib/transcoding/transcoding.ts
+++ b/server/lib/transcoding/transcoding.ts
@@ -3,13 +3,13 @@ import { copyFile, ensureDir, move, remove, stat } from 'fs-extra'
3import { basename, extname as extnameUtil, join } from 'path' 3import { basename, extname as extnameUtil, join } from 'path'
4import { toEven } from '@server/helpers/core-utils' 4import { toEven } from '@server/helpers/core-utils'
5import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent' 5import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent'
6import { MStreamingPlaylistFilesVideo, MVideoFile, MVideoFullLight } from '@server/types/models' 6import { MStreamingPlaylistFilesVideo, MVideo, MVideoFile, MVideoFullLight } from '@server/types/models'
7import { VideoResolution, VideoStorage } from '../../../shared/models/videos' 7import { VideoResolution, VideoStorage } from '../../../shared/models/videos'
8import { VideoStreamingPlaylistType } from '../../../shared/models/videos/video-streaming-playlist.type' 8import { VideoStreamingPlaylistType } from '../../../shared/models/videos/video-streaming-playlist.type'
9import { 9import {
10 buildFileMetadata,
10 canDoQuickTranscode, 11 canDoQuickTranscode,
11 getVideoStreamDuration, 12 getVideoStreamDuration,
12 buildFileMetadata,
13 getVideoStreamFPS, 13 getVideoStreamFPS,
14 transcodeVOD, 14 transcodeVOD,
15 TranscodeVODOptions, 15 TranscodeVODOptions,
@@ -191,7 +191,7 @@ function mergeAudioVideofile (video: MVideoFullLight, resolution: VideoResolutio
191 191
192// Concat TS segments from a live video to a fragmented mp4 HLS playlist 192// Concat TS segments from a live video to a fragmented mp4 HLS playlist
193async function generateHlsPlaylistResolutionFromTS (options: { 193async function generateHlsPlaylistResolutionFromTS (options: {
194 video: MVideoFullLight 194 video: MVideo
195 concatenatedTsFilePath: string 195 concatenatedTsFilePath: string
196 resolution: VideoResolution 196 resolution: VideoResolution
197 isPortraitMode: boolean 197 isPortraitMode: boolean
@@ -209,7 +209,7 @@ async function generateHlsPlaylistResolutionFromTS (options: {
209 209
210// Generate an HLS playlist from an input file, and update the master playlist 210// Generate an HLS playlist from an input file, and update the master playlist
211function generateHlsPlaylistResolution (options: { 211function generateHlsPlaylistResolution (options: {
212 video: MVideoFullLight 212 video: MVideo
213 videoInputPath: string 213 videoInputPath: string
214 resolution: VideoResolution 214 resolution: VideoResolution
215 copyCodecs: boolean 215 copyCodecs: boolean
@@ -265,7 +265,7 @@ async function onWebTorrentVideoFileTranscoding (
265 265
266async function generateHlsPlaylistCommon (options: { 266async function generateHlsPlaylistCommon (options: {
267 type: 'hls' | 'hls-from-ts' 267 type: 'hls' | 'hls-from-ts'
268 video: MVideoFullLight 268 video: MVideo
269 inputPath: string 269 inputPath: string
270 resolution: VideoResolution 270 resolution: VideoResolution
271 copyCodecs?: boolean 271 copyCodecs?: boolean