ActivityPub-federated video streaming platform using P2P directly in your web browser
Don't use min FPS, throw instead
Chocobozzzf7bb2bb5a753
diff --git a/server/helpers/ffprobe-utils.ts b/server/helpers/ffprobe-utils.tsindex 8381dee84f..767f37f9ca 100644--- a/server/helpers/ffprobe-utils.ts+++ b/server/helpers/ffprobe-utils.ts@@ -302,7 +302,10 @@ function computeFPS (fpsArg: number, resolution: VideoResolution) {// Hard FPS limitsif (fps > VIDEO_TRANSCODING_FPS.MAX) fps = getClosestFramerateStandard(fps, 'HD_STANDARD')- else if (fps < VIDEO_TRANSCODING_FPS.MIN) fps = VIDEO_TRANSCODING_FPS.MIN++ if (fps < VIDEO_TRANSCODING_FPS.MIN) {+ throw new Error(`Cannot compute FPS because ${fps} is lower than our minimum value ${VIDEO_TRANSCODING_FPS.MIN}`)+ }return fps}diff --git a/server/initializers/constants.ts b/server/initializers/constants.tsindex 2fa0aa7bfb..facd3b721f 100644--- a/server/initializers/constants.ts+++ b/server/initializers/constants.ts@@ -346,7 +346,7 @@ const VIEW_LIFETIME = {let CONTACT_FORM_LIFETIME = 60000 * 60 // 1 hourconst VIDEO_TRANSCODING_FPS: VideoTranscodingFPS = {- MIN: 10,+ MIN: 1,STANDARD: [ 24, 25, 30 ],HD_STANDARD: [ 50, 60 ],AVERAGE: 30,