ActivityPub-federated video streaming platform using P2P directly in your web browser
fix automatic bitrate adjustment
Rigel Kente1d7b98bc762
diff --git a/server/helpers/ffmpeg-utils.ts b/server/helpers/ffmpeg-utils.tsindex 8e44711733..a964abdd43 100644--- a/server/helpers/ffmpeg-utils.ts+++ b/server/helpers/ffmpeg-utils.ts@@ -152,7 +152,7 @@ function transcode (options: TranscodeOptions) {// https://slhck.info/video/2017/03/01/rate-control.html// https://trac.ffmpeg.org/wiki/Limiting%20the%20output%20bitrateconst targetBitrate = getTargetBitrate(options.resolution, fps, VIDEO_TRANSCODING_FPS)- command.outputOptions([`-b:v ${ targetBitrate }`, `-maxrate ${ targetBitrate }`, `-bufsize ${ targetBitrate * 2 }`])+ command.outputOptions([`-maxrate ${ targetBitrate }`, `-bufsize ${ targetBitrate * 2 }`])command.on('error', (err, stdout, stderr) => {