1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 10:19:35 +02:00

Add basic video editor support

This commit is contained in:
Chocobozzz 2022-02-11 10:51:33 +01:00 committed by Chocobozzz
parent a24bf4dc65
commit c729caf6cc
130 changed files with 3969 additions and 1353 deletions

View file

@ -1,8 +1,8 @@
import { program } from 'commander'
import ffmpeg from 'fluent-ffmpeg'
import { exit } from 'process'
import { buildx264VODCommand, runCommand, TranscodeOptions } from '@server/helpers/ffmpeg-utils'
import { VideoTranscodingProfilesManager } from '@server/lib/transcoding/video-transcoding-profiles'
import { buildVODCommand, runCommand, TranscodeVODOptions } from '@server/helpers/ffmpeg'
import { VideoTranscodingProfilesManager } from '@server/lib/transcoding/default-transcoding-profiles'
program
.arguments('<path>')
@ -33,12 +33,12 @@ async function run (path: string, cmd: any) {
resolution: +cmd.resolution,
isPortraitMode: false
} as TranscodeOptions
} as TranscodeVODOptions
let command = ffmpeg(options.inputPath)
.output(options.outputPath)
command = await buildx264VODCommand(command, options)
command = await buildVODCommand(command, options)
command.on('start', (cmdline) => {
console.log(cmdline)