Skip to content

Commit 2cd8604

Browse files
pavelfeldmanaslushnikov
authored andcommitted
fix(screencast): bump chromium video quality (#4146)
1 parent 5dce248 commit 2cd8604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/chromium/videoRecorder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class VideoRecorder {
5353
assert(!this._isRunning());
5454
const w = options.width;
5555
const h = options.height;
56-
const args = `-loglevel error -f image2pipe -c:v mjpeg -i - -y -an -r ${fps} -c:v vp8 -qmin 0 -qmax 50 -crf 8 -vf pad=${w}:${h}:0:0:gray,crop=${w}:${h}:0:0`.split(' ');
56+
const args = `-loglevel error -f image2pipe -c:v mjpeg -i - -y -an -r ${fps} -c:v vp8 -qmin 0 -qmax 50 -crf 8 -b:v 1M -vf pad=${w}:${h}:0:0:gray,crop=${w}:${h}:0:0`.split(' ');
5757
args.push(options.outputFile);
5858
const progress = this._progress;
5959

0 commit comments

Comments
 (0)