mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Use a profile manager for transcoding
This commit is contained in:
parent
923d3d5ad5
commit
529b37527c
6 changed files with 116 additions and 52 deletions
|
@ -3,9 +3,9 @@ registerTSPaths()
|
|||
|
||||
import * as program from 'commander'
|
||||
import * as ffmpeg from 'fluent-ffmpeg'
|
||||
import { availableEncoders } from '@server/lib/video-transcoding-profiles'
|
||||
import { buildx264VODCommand, runCommand, TranscodeOptions } from '@server/helpers/ffmpeg-utils'
|
||||
import { exit } from 'process'
|
||||
import { VideoTranscodingProfilesManager } from '@server/lib/video-transcoding-profiles'
|
||||
|
||||
program
|
||||
.arguments('<path>')
|
||||
|
@ -31,7 +31,7 @@ async function run (path: string, cmd: any) {
|
|||
inputPath: path,
|
||||
outputPath: '/dev/null',
|
||||
|
||||
availableEncoders,
|
||||
availableEncoders: VideoTranscodingProfilesManager.Instance.getAvailableEncoders(),
|
||||
profile: 'default',
|
||||
|
||||
resolution: +cmd.resolution,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue