diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/ffmpeg-utils.ts | 7 | ||||
-rw-r--r-- | server/helpers/ffprobe-utils.ts | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts index 712ec757e..69defccc4 100644 --- a/server/helpers/ffmpeg-utils.ts +++ b/server/helpers/ffmpeg-utils.ts | |||
@@ -9,6 +9,13 @@ import { getAudioStream, getClosestFramerateStandard, getVideoFileFPS } from './ | |||
9 | import { processImage } from './image-utils' | 9 | import { processImage } from './image-utils' |
10 | import { logger } from './logger' | 10 | import { logger } from './logger' |
11 | 11 | ||
12 | /** | ||
13 | * | ||
14 | * Functions that run transcoding/muxing ffmpeg processes | ||
15 | * Mainly called by lib/video-transcoding.ts and lib/live-manager.ts | ||
16 | * | ||
17 | */ | ||
18 | |||
12 | // --------------------------------------------------------------------------- | 19 | // --------------------------------------------------------------------------- |
13 | // Encoder options | 20 | // Encoder options |
14 | // --------------------------------------------------------------------------- | 21 | // --------------------------------------------------------------------------- |
diff --git a/server/helpers/ffprobe-utils.ts b/server/helpers/ffprobe-utils.ts index d03ab91ac..16b295bbd 100644 --- a/server/helpers/ffprobe-utils.ts +++ b/server/helpers/ffprobe-utils.ts | |||
@@ -5,6 +5,12 @@ import { CONFIG } from '../initializers/config' | |||
5 | import { VIDEO_TRANSCODING_FPS } from '../initializers/constants' | 5 | import { VIDEO_TRANSCODING_FPS } from '../initializers/constants' |
6 | import { logger } from './logger' | 6 | import { logger } from './logger' |
7 | 7 | ||
8 | /** | ||
9 | * | ||
10 | * Helpers to run ffprobe and extract data from the JSON output | ||
11 | * | ||
12 | */ | ||
13 | |||
8 | function ffprobePromise (path: string) { | 14 | function ffprobePromise (path: string) { |
9 | return new Promise<ffmpeg.FfprobeData>((res, rej) => { | 15 | return new Promise<ffmpeg.FfprobeData>((res, rej) => { |
10 | ffmpeg.ffprobe(path, (err, data) => { | 16 | ffmpeg.ffprobe(path, (err, data) => { |