@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stremio/stremio-video",
3
- "version": "0.0.80",
3
+ "version": "0.0.81",
4
4
  "description": "Abstraction layer on top of different media players",
5
5
  "author": "Smart Code OOD",
6
6
  "main": "src/index.js",
@@ -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]);