aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-12-23 03:38:38 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-01-13 09:13:31 +0100
commit0984960345704c10256b40b78db1e4d9d7527e77 (patch)
tree6cafd4dbfb089bcb3997daa56c5ac55f290ef378 /server
parent1ea7da819e5bfae7b443ed722c18c4165d101439 (diff)
downloadPeerTube-0984960345704c10256b40b78db1e4d9d7527e77.tar.gz
PeerTube-0984960345704c10256b40b78db1e4d9d7527e77.tar.zst
PeerTube-0984960345704c10256b40b78db1e4d9d7527e77.zip
add script printing command to generate a resolution for a given file
Diffstat (limited to 'server')
-rw-r--r--server/helpers/ffmpeg-utils.ts34
1 files changed, 18 insertions, 16 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index bf6408d3e..1f5e8d8f6 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -312,22 +312,6 @@ function buildStreamSuffix (base: string, streamNum?: number) {
312} 312}
313 313
314// --------------------------------------------------------------------------- 314// ---------------------------------------------------------------------------
315
316export {
317 getLiveTranscodingCommand,
318 getLiveMuxingCommand,
319 buildStreamSuffix,
320 convertWebPToJPG,
321 processGIF,
322 generateImageFromVideoFile,
323 TranscodeOptions,
324 TranscodeOptionsType,
325 transcode
326}
327
328// ---------------------------------------------------------------------------
329
330// ---------------------------------------------------------------------------
331// Default options 315// Default options
332// --------------------------------------------------------------------------- 316// ---------------------------------------------------------------------------
333 317
@@ -642,3 +626,21 @@ async function runCommand (command: ffmpeg.FfmpegCommand, onEnd?: Function) {
642 command.run() 626 command.run()
643 }) 627 })
644} 628}
629
630// ---------------------------------------------------------------------------
631
632export {
633 getLiveTranscodingCommand,
634 getLiveMuxingCommand,
635 buildStreamSuffix,
636 convertWebPToJPG,
637 processGIF,
638 generateImageFromVideoFile,
639 TranscodeOptions,
640 TranscodeOptionsType,
641 transcode,
642 runCommand,
643
644 // builders
645 buildx264VODCommand
646}