aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/helpers/ffmpeg-utils.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.ts
index 913a90905..f18b6bd9a 100644
--- a/server/helpers/ffmpeg-utils.ts
+++ b/server/helpers/ffmpeg-utils.ts
@@ -57,9 +57,10 @@ function transcode (options: TranscodeOptions) {
57 .videoCodec('libx264') 57 .videoCodec('libx264')
58 .outputOption('-threads ' + CONFIG.TRANSCODING.THREADS) 58 .outputOption('-threads ' + CONFIG.TRANSCODING.THREADS)
59 .outputOption('-movflags faststart') 59 .outputOption('-movflags faststart')
60 // .outputOption('-crf 18')
60 61
61 if (options.resolution !== undefined) { 62 if (options.resolution !== undefined) {
62 const size = `${options.resolution}x?` // '720x?' for example 63 const size = `?x${options.resolution}` // '?x720' for example
63 command = command.size(size) 64 command = command.size(size)
64 } 65 }
65 66