1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-03 17:59:37 +02:00

add script printing command to generate a resolution for a given file

This commit is contained in:
Rigel Kent 2020-12-23 03:38:38 +01:00 committed by Chocobozzz
parent 1ea7da819e
commit 0984960345
3 changed files with 71 additions and 16 deletions

View file

@ -311,22 +311,6 @@ function buildStreamSuffix (base: string, streamNum?: number) {
return base
}
// ---------------------------------------------------------------------------
export {
getLiveTranscodingCommand,
getLiveMuxingCommand,
buildStreamSuffix,
convertWebPToJPG,
processGIF,
generateImageFromVideoFile,
TranscodeOptions,
TranscodeOptionsType,
transcode
}
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// Default options
// ---------------------------------------------------------------------------
@ -642,3 +626,21 @@ async function runCommand (command: ffmpeg.FfmpegCommand, onEnd?: Function) {
command.run()
})
}
// ---------------------------------------------------------------------------
export {
getLiveTranscodingCommand,
getLiveMuxingCommand,
buildStreamSuffix,
convertWebPToJPG,
processGIF,
generateImageFromVideoFile,
TranscodeOptions,
TranscodeOptionsType,
transcode,
runCommand,
// builders
buildx264VODCommand
}