@stremio/stremio-video 0.0.80 → 0.0.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -410,10 +410,18 @@ function ShellVideo(options) {
|
|
|
410
410
|
var subAssOverride = commandArgs.assSubtitlesStyling ? 'strip' : 'no';
|
|
411
411
|
ipc.send('mpv-set-prop', ['sub-ass-override', subAssOverride]);
|
|
412
412
|
|
|
413
|
+
var gpuProcessing = !!commandArgs.gpuVideoProcessing &&
|
|
414
|
+
!!commandArgs.hardwareDecoding;
|
|
415
|
+
|
|
413
416
|
// Hardware decoding
|
|
414
|
-
var hwdecValue = commandArgs.hardwareDecoding ? 'auto-copy' : 'no';
|
|
417
|
+
var hwdecValue = commandArgs.hardwareDecoding ? (gpuProcessing ? 'd3d11va' : 'auto-copy') : 'no';
|
|
415
418
|
ipc.send('mpv-set-prop', ['hwdec', hwdecValue]);
|
|
416
419
|
|
|
420
|
+
// GPU video processing
|
|
421
|
+
if (typeof commandArgs.gpuVideoProcessing === 'boolean') {
|
|
422
|
+
ipc.send('mpv-set-gpu-video-processing', gpuProcessing);
|
|
423
|
+
}
|
|
424
|
+
|
|
417
425
|
// Video output
|
|
418
426
|
var videoOutput = commandArgs.platform === 'windows' ? (commandArgs.videoMode === null ? 'gpu-next' : 'gpu') : 'libmpv';
|
|
419
427
|
ipc.send('mpv-set-prop', ['vo', videoOutput]);
|