aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-28 09:37:26 +0100
committerChocobozzz <me@florianbigard.com>2021-01-28 15:55:39 +0100
commit529b37527cff5203a0689a15ce73dcee6e1eece2 (patch)
tree8ca9cbb725b59a8dfadf70526a0e470349c1c720 /scripts
parent923d3d5ad53cd23bf8107e936408e321f6175517 (diff)
downloadPeerTube-529b37527cff5203a0689a15ce73dcee6e1eece2.tar.gz
PeerTube-529b37527cff5203a0689a15ce73dcee6e1eece2.tar.zst
PeerTube-529b37527cff5203a0689a15ce73dcee6e1eece2.zip
Use a profile manager for transcoding
Diffstat (limited to 'scripts')
-rw-r--r--scripts/print-transcode-command.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/print-transcode-command.ts b/scripts/print-transcode-command.ts
index b75b711a4..f3b169b32 100644
--- a/scripts/print-transcode-command.ts
+++ b/scripts/print-transcode-command.ts
@@ -3,9 +3,9 @@ registerTSPaths()
3 3
4import * as program from 'commander' 4import * as program from 'commander'
5import * as ffmpeg from 'fluent-ffmpeg' 5import * as ffmpeg from 'fluent-ffmpeg'
6import { availableEncoders } from '@server/lib/video-transcoding-profiles'
7import { buildx264VODCommand, runCommand, TranscodeOptions } from '@server/helpers/ffmpeg-utils' 6import { buildx264VODCommand, runCommand, TranscodeOptions } from '@server/helpers/ffmpeg-utils'
8import { exit } from 'process' 7import { exit } from 'process'
8import { VideoTranscodingProfilesManager } from '@server/lib/video-transcoding-profiles'
9 9
10program 10program
11 .arguments('<path>') 11 .arguments('<path>')
@@ -31,7 +31,7 @@ async function run (path: string, cmd: any) {
31 inputPath: path, 31 inputPath: path,
32 outputPath: '/dev/null', 32 outputPath: '/dev/null',
33 33
34 availableEncoders, 34 availableEncoders: VideoTranscodingProfilesManager.Instance.getAvailableEncoders(),
35 profile: 'default', 35 profile: 'default',
36 36
37 resolution: +cmd.resolution, 37 resolution: +cmd.resolution,