We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f58eb65 commit e7daa82Copy full SHA for e7daa82
lib/commands/recordscreen.js
@@ -27,7 +27,7 @@ const QUALITY_MAPPING = {
27
photo: 100,
28
};
29
30
-const HARDWARE_ACCELERATION_PARAMETERS = {
+ const HARDWARE_ACCELERATION_PARAMETERS = {
31
videoToolbox: {
32
hwaccel: 'videotoolbox',
33
hwaccelOutputFormat: 'videotoolbox_vld',
@@ -88,13 +88,14 @@ export class ScreenRecorder {
88
'-reconnect_delay_max',
89
`${timeoutMs / 1000 + 1}`,
90
];
91
+ console.log('HW chose', hardwareAcceleration);
92
+ console.log(HARDWARE_ACCELERATION_PARAMETERS[hardwareAcceleration]);
93
const {
94
hwaccel,
95
hwaccelOutputFormat,
96
scaleFilterHWAccel,
97
videoTypeHWAccel
98
} = HARDWARE_ACCELERATION_PARAMETERS[hardwareAcceleration];
-
99
if (hwaccel) {
100
args.push('-hwaccel', hwaccel);
101
args.push('-hwaccel_output_format', hwaccelOutputFormat);
0 commit comments