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:
parent
1ea7da819e
commit
0984960345
3 changed files with 71 additions and 16 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue