diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-28 09:37:26 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-28 15:55:39 +0100 |
commit | 529b37527cff5203a0689a15ce73dcee6e1eece2 (patch) | |
tree | 8ca9cbb725b59a8dfadf70526a0e470349c1c720 /scripts | |
parent | 923d3d5ad53cd23bf8107e936408e321f6175517 (diff) | |
download | PeerTube-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.ts | 4 |
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 | ||
4 | import * as program from 'commander' | 4 | import * as program from 'commander' |
5 | import * as ffmpeg from 'fluent-ffmpeg' | 5 | import * as ffmpeg from 'fluent-ffmpeg' |
6 | import { availableEncoders } from '@server/lib/video-transcoding-profiles' | ||
7 | import { buildx264VODCommand, runCommand, TranscodeOptions } from '@server/helpers/ffmpeg-utils' | 6 | import { buildx264VODCommand, runCommand, TranscodeOptions } from '@server/helpers/ffmpeg-utils' |
8 | import { exit } from 'process' | 7 | import { exit } from 'process' |
8 | import { VideoTranscodingProfilesManager } from '@server/lib/video-transcoding-profiles' | ||
9 | 9 | ||
10 | program | 10 | program |
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, |