diff options
author | Chocobozzz <me@florianbigard.com> | 2022-04-21 09:06:52 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-04-21 11:47:57 +0200 |
commit | 4ec52d04dcc5d664612331f8e08d7d90da990415 (patch) | |
tree | 4b193f9f8f210caaf2dbe05ef3e37fa3a6fc28f0 /server/lib/transcoding | |
parent | 2024a3b9338d667640aa115da6071ea83d088c50 (diff) | |
download | PeerTube-4ec52d04dcc5d664612331f8e08d7d90da990415.tar.gz PeerTube-4ec52d04dcc5d664612331f8e08d7d90da990415.tar.zst PeerTube-4ec52d04dcc5d664612331f8e08d7d90da990415.zip |
Add ability to save replay of permanent lives
Diffstat (limited to 'server/lib/transcoding')
-rw-r--r-- | server/lib/transcoding/transcoding.ts | 10 |
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' | |||
3 | import { basename, extname as extnameUtil, join } from 'path' | 3 | import { basename, extname as extnameUtil, join } from 'path' |
4 | import { toEven } from '@server/helpers/core-utils' | 4 | import { toEven } from '@server/helpers/core-utils' |
5 | import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent' | 5 | import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent' |
6 | import { MStreamingPlaylistFilesVideo, MVideoFile, MVideoFullLight } from '@server/types/models' | 6 | import { MStreamingPlaylistFilesVideo, MVideo, MVideoFile, MVideoFullLight } from '@server/types/models' |
7 | import { VideoResolution, VideoStorage } from '../../../shared/models/videos' | 7 | import { VideoResolution, VideoStorage } from '../../../shared/models/videos' |
8 | import { VideoStreamingPlaylistType } from '../../../shared/models/videos/video-streaming-playlist.type' | 8 | import { VideoStreamingPlaylistType } from '../../../shared/models/videos/video-streaming-playlist.type' |
9 | import { | 9 | import { |
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 |
193 | async function generateHlsPlaylistResolutionFromTS (options: { | 193 | async 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 |
211 | function generateHlsPlaylistResolution (options: { | 211 | function 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 | ||
266 | async function generateHlsPlaylistCommon (options: { | 266 | async 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 |