nixpkgs/pkgs
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
..
applications mpv, ffmpeg: use addOpenGLRunpath to fix CUDA-accelerated playback 2019-09-06 23:18:26 +00:00
build-support Merge branch 'master' into staging-next 2019-09-06 16:55:11 +02:00
common-updater
data Merge branch 'master' into staging-next 2019-09-06 03:20:09 +02:00
desktops Merge branch 'master' into staging-next 2019-09-06 16:55:11 +02:00
development mpv, ffmpeg: use addOpenGLRunpath to fix CUDA-accelerated playback 2019-09-06 23:18:26 +00:00
games
misc Merge staging into staging-next 2019-09-06 22:47:40 +02:00
os-specific Merge remote-tracking branch 'upstream/gcc8' into staging-next 2019-09-06 23:25:18 +02:00
servers Merge staging into staging-next 2019-09-06 22:47:40 +02:00
shells Merge branch 'master' into staging-next 2019-09-04 11:00:56 +02:00
stdenv Merge branch 'master' into staging 2019-09-02 23:25:24 +02:00
test
tools Merge remote-tracking branch 'upstream/gcc8' into staging-next 2019-09-06 23:25:18 +02:00
top-level Revert "pythonPackages.pyev: drop" 2019-09-06 23:33:32 +02:00