aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-10-17 17:58:21 +0200
committerChocobozzz <me@florianbigard.com>2018-10-17 17:58:21 +0200
commit28e51e831bd121f063600a597d7b02f8fd846de9 (patch)
tree34e927a5ecf61f5271b62726604bb918fefd6193 /server/helpers
parent0229b014e0101844df028342b8d4dd9ae4e887a4 (diff)
downloadPeerTube-28e51e831bd121f063600a597d7b02f8fd846de9.tar.gz
PeerTube-28e51e831bd121f063600a597d7b02f8fd846de9.tar.zst
PeerTube-28e51e831bd121f063600a597d7b02f8fd846de9.zip
Oup's
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/ffmpeg-utils.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index a53a7bae4..037bf703a 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -118,13 +118,13 @@ function transcode (options: TranscodeOptions) {
118 return new Promise<void>(async (res, rej) => { 118 return new Promise<void>(async (res, rej) => {
119 let fps = await getVideoFileFPS(options.inputPath) 119 let fps = await getVideoFileFPS(options.inputPath)
120 // On small/medium resolutions, limit FPS 120 // On small/medium resolutions, limit FPS
121 // if ( 121 if (
122 // options.resolution !== undefined && 122 options.resolution !== undefined &&
123 // options.resolution < VIDEO_TRANSCODING_FPS.KEEP_ORIGIN_FPS_RESOLUTION_MIN && 123 options.resolution < VIDEO_TRANSCODING_FPS.KEEP_ORIGIN_FPS_RESOLUTION_MIN &&
124 // fps > VIDEO_TRANSCODING_FPS.AVERAGE 124 fps > VIDEO_TRANSCODING_FPS.AVERAGE
125 // ) { 125 ) {
126 // fps = VIDEO_TRANSCODING_FPS.AVERAGE 126 fps = VIDEO_TRANSCODING_FPS.AVERAGE
127 // } 127 }
128 128
129 let command = ffmpeg(options.inputPath, { niceness: FFMPEG_NICE.TRANSCODING }) 129 let command = ffmpeg(options.inputPath, { niceness: FFMPEG_NICE.TRANSCODING })
130 .output(options.outputPath) 130 .output(options.outputPath)