Skip to content

Commit 37b4e84

Browse files
committed
feat(ShellVideo): support hardware decoding
1 parent 95caeb5 commit 37b4e84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ShellVideo/ShellVideo.js

+4
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,10 @@ function ShellVideo(options) {
334334

335335
ipc.send('mpv-set-prop', ['no-sub-ass']);
336336

337+
// Hardware decoding
338+
var hwdecValue = commandArgs.hardwareDecoding ? 'auto-copy' : 'no';
339+
ipc.send('mpv-set-prop', ['hwdec', hwdecValue]);
340+
337341
// opengl-cb is an alias for the new name "libmpv", as shown in mpv's video/out/vo.c aliases
338342
// opengl is an alias for the new name "gpu"
339343
// When on Windows we use d3d for the rendering in separate window

0 commit comments

Comments
 (0)