Skip to content

Commit e7daa82

Browse files
fix>
1 parent f58eb65 commit e7daa82

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/commands/recordscreen.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const QUALITY_MAPPING = {
2727
photo: 100,
2828
};
2929

30-
const HARDWARE_ACCELERATION_PARAMETERS = {
30+
const HARDWARE_ACCELERATION_PARAMETERS = {
3131
videoToolbox: {
3232
hwaccel: 'videotoolbox',
3333
hwaccelOutputFormat: 'videotoolbox_vld',
@@ -88,13 +88,14 @@ export class ScreenRecorder {
8888
'-reconnect_delay_max',
8989
`${timeoutMs / 1000 + 1}`,
9090
];
91+
console.log('HW chose', hardwareAcceleration);
92+
console.log(HARDWARE_ACCELERATION_PARAMETERS[hardwareAcceleration]);
9193
const {
9294
hwaccel,
9395
hwaccelOutputFormat,
9496
scaleFilterHWAccel,
9597
videoTypeHWAccel
9698
} = HARDWARE_ACCELERATION_PARAMETERS[hardwareAcceleration];
97-
9899
if (hwaccel) {
99100
args.push('-hwaccel', hwaccel);
100101
args.push('-hwaccel_output_format', hwaccelOutputFormat);

0 commit comments

Comments
 (0)