diff options
author | Chocobozzz <me@florianbigard.com> | 2022-02-11 10:51:33 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-02-28 10:42:19 +0100 |
commit | c729caf6cc34630877a0e5a1bda1719384cd0c8a (patch) | |
tree | 1d2e13722e518c73d2c9e6f0969615e29d51cf8c /scripts | |
parent | a24bf4dc659cebb65d887862bf21d7a35e9ec791 (diff) | |
download | PeerTube-c729caf6cc34630877a0e5a1bda1719384cd0c8a.tar.gz PeerTube-c729caf6cc34630877a0e5a1bda1719384cd0c8a.tar.zst PeerTube-c729caf6cc34630877a0e5a1bda1719384cd0c8a.zip |
Add basic video editor support
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create-transcoding-job.ts | 2 | ||||
-rw-r--r-- | scripts/print-transcode-command.ts | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts index c4b376431..59fc84ad5 100755 --- a/scripts/create-transcoding-job.ts +++ b/scripts/create-transcoding-job.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { program } from 'commander' | 1 | import { program } from 'commander' |
2 | import { isUUIDValid, toCompleteUUID } from '@server/helpers/custom-validators/misc' | 2 | import { isUUIDValid, toCompleteUUID } from '@server/helpers/custom-validators/misc' |
3 | import { computeLowerResolutionsToTranscode } from '@server/helpers/ffprobe-utils' | 3 | import { computeLowerResolutionsToTranscode } from '@server/helpers/ffmpeg' |
4 | import { CONFIG } from '@server/initializers/config' | 4 | import { CONFIG } from '@server/initializers/config' |
5 | import { addTranscodingJob } from '@server/lib/video' | 5 | import { addTranscodingJob } from '@server/lib/video' |
6 | import { VideoState, VideoTranscodingPayload } from '@shared/models' | 6 | import { VideoState, VideoTranscodingPayload } from '@shared/models' |
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 @@ | |||
1 | import { program } from 'commander' | 1 | import { program } from 'commander' |
2 | import ffmpeg from 'fluent-ffmpeg' | 2 | import ffmpeg from 'fluent-ffmpeg' |
3 | import { exit } from 'process' | 3 | import { exit } from 'process' |
4 | import { buildx264VODCommand, runCommand, TranscodeOptions } from '@server/helpers/ffmpeg-utils' | 4 | import { buildVODCommand, runCommand, TranscodeVODOptions } from '@server/helpers/ffmpeg' |
5 | import { VideoTranscodingProfilesManager } from '@server/lib/transcoding/video-transcoding-profiles' | 5 | import { VideoTranscodingProfilesManager } from '@server/lib/transcoding/default-transcoding-profiles' |
6 | 6 | ||
7 | program | 7 | program |
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) |