nixpkgs/pkgs/applications
Ivan Kozik 46cbb8453a mpv, ffmpeg: use addOpenGLRunpath to fix CUDA-accelerated playback
This fixes #67780.

Currently, using `mpv --hwdec=nvdec --msg-level=vd=debug` on NVIDIA results in:

```
[vd] Opening decoder hevc
[vd] Looking at hwdec hevc-nvdec...
Cannot load libcuda.so.1
[vd] Could not create device.
[vd] No hardware decoding available for this codec.
```

With just mpv patched, ffmpeg cannot load libnvcuvid.so.1:

```
[vd] Opening decoder hevc
[vd] Looking at hwdec hevc-nvdec...
[vd] Trying hardware decoding via hevc-nvdec.
[vd] Selected codec: hevc (HEVC (High Efficiency Video Coding))
[vd] Pixel formats supported by decoder: vaapi_vld cuda yuv420p10le
[vd] Codec profile: Main 10 (0x2)
[vd] Requesting pixfmt 'cuda' from decoder.
[ffmpeg/video] hevc: Cannot load libnvcuvid.so.1
[ffmpeg/video] hevc: Failed loading nvcuvid.
[ffmpeg/video] hevc: Failed setup for format cuda: hwaccel initialisation returned error.
```

With both mpv and ffmpeg patched, it works:

```
[vd] Opening decoder hevc
[vd] Looking at hwdec hevc-nvdec...
[vd] Trying hardware decoding via hevc-nvdec.
[vd] Selected codec: hevc (HEVC (High Efficiency Video Coding))
[vd] Pixel formats supported by decoder: vaapi_vld cuda yuv420p10le
[vd] Codec profile: Main 10 (0x2)
[vd] Requesting pixfmt 'cuda' from decoder.
Using hardware decoding (nvdec).
[vd] Decoder format: 3840x2160 cuda[p010] bt.2020-ncl/bt.2020/pq/limited/auto SP=10.000000 CL=unknown (auto 0.000000/0.000000/0.000000)
```
2019-09-06 23:18:26 +00:00
..
accessibility/mousetweaks mousetweaks: init at 3.32.0 2019-04-28 14:23:20 -04:00
audio Merge branch 'master' into staging-next 2019-09-06 16:55:11 +02:00
backup Merge branch 'master' into staging 2019-09-02 23:25:24 +02:00
blockchains Merge master into staging-next 2019-09-06 22:46:05 +02:00
display-managers Merge branch 'master' into staging-next 2019-09-04 11:00:56 +02:00
editors Merge master into staging-next 2019-09-06 22:46:05 +02:00
gis treewide: name -> pname (#67513) 2019-08-31 07:41:22 -04:00
graphics Merge master into staging-next 2019-09-06 22:46:05 +02:00
kde Merge staging-next into staging 2019-08-28 08:26:42 +02:00
misc Merge master into staging-next 2019-09-06 22:46:05 +02:00
networking Merge master into staging-next 2019-09-06 22:46:05 +02:00
office Merge master into staging-next 2019-09-06 22:46:05 +02:00
radio Merge staging-next into staging 2019-08-31 10:04:20 +02:00
science Merge master into staging-next 2019-09-06 22:46:05 +02:00
search Merge branch 'master' into staging-next 2019-09-06 03:20:09 +02:00
version-management Merge branch 'master' into staging-next 2019-09-04 11:00:56 +02:00
video mpv, ffmpeg: use addOpenGLRunpath to fix CUDA-accelerated playback 2019-09-06 23:18:26 +00:00
virtualization Merge master into staging-next 2019-09-06 22:46:05 +02:00
window-managers Merge branch 'master' into staging-next 2019-09-06 03:20:09 +02:00