aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/print-transcode-command.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/print-transcode-command.ts')
-rw-r--r--scripts/print-transcode-command.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/print-transcode-command.ts b/scripts/print-transcode-command.ts
index 21667f544..ef671c0aa 100644
--- a/scripts/print-transcode-command.ts
+++ b/scripts/print-transcode-command.ts
@@ -1,8 +1,8 @@
1import { program } from 'commander' 1import { program } from 'commander'
2import ffmpeg from 'fluent-ffmpeg' 2import ffmpeg from 'fluent-ffmpeg'
3import { exit } from 'process' 3import { exit } from 'process'
4import { buildx264VODCommand, runCommand, TranscodeOptions } from '@server/helpers/ffmpeg-utils' 4import { buildVODCommand, runCommand, TranscodeVODOptions } from '@server/helpers/ffmpeg'
5import { VideoTranscodingProfilesManager } from '@server/lib/transcoding/video-transcoding-profiles' 5import { VideoTranscodingProfilesManager } from '@server/lib/transcoding/default-transcoding-profiles'
6 6
7program 7program
8 .arguments('<path>') 8 .arguments('<path>')
@@ -33,12 +33,12 @@ async function run (path: string, cmd: any) {
33 33
34 resolution: +cmd.resolution, 34 resolution: +cmd.resolution,
35 isPortraitMode: false 35 isPortraitMode: false
36 } as TranscodeOptions 36 } as TranscodeVODOptions
37 37
38 let command = ffmpeg(options.inputPath) 38 let command = ffmpeg(options.inputPath)
39 .output(options.outputPath) 39 .output(options.outputPath)
40 40
41 command = await buildx264VODCommand(command, options) 41 command = await buildVODCommand(command, options)
42 42
43 command.on('start', (cmdline) => { 43 command.on('start', (cmdline) => {
44 console.log(cmdline) 44 console.log(cmdline)