From 0984960345704c10256b40b78db1e4d9d7527e77 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Wed, 23 Dec 2020 03:38:38 +0100 Subject: add script printing command to generate a resolution for a given file --- server/helpers/ffmpeg-utils.ts | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) (limited to 'server/helpers/ffmpeg-utils.ts') diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts index bf6408d3e..1f5e8d8f6 100644 --- a/server/helpers/ffmpeg-utils.ts +++ b/server/helpers/ffmpeg-utils.ts @@ -311,22 +311,6 @@ function buildStreamSuffix (base: string, streamNum?: number) { return base } -// --------------------------------------------------------------------------- - -export { - getLiveTranscodingCommand, - getLiveMuxingCommand, - buildStreamSuffix, - convertWebPToJPG, - processGIF, - generateImageFromVideoFile, - TranscodeOptions, - TranscodeOptionsType, - transcode -} - -// --------------------------------------------------------------------------- - // --------------------------------------------------------------------------- // Default options // --------------------------------------------------------------------------- @@ -642,3 +626,21 @@ async function runCommand (command: ffmpeg.FfmpegCommand, onEnd?: Function) { command.run() }) } + +// --------------------------------------------------------------------------- + +export { + getLiveTranscodingCommand, + getLiveMuxingCommand, + buildStreamSuffix, + convertWebPToJPG, + processGIF, + generateImageFromVideoFile, + TranscodeOptions, + TranscodeOptionsType, + transcode, + runCommand, + + // builders + buildx264VODCommand +} -- cgit v1.2.3