nixpkgs/pkgs/applications/video
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
..
aegisub treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
avidemux Merge master into staging-next 2019-08-18 12:53:44 +02:00
avxsynth treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
bino3d treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
bombono treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
bomi treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
byzanz treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
ccextractor ccextractor: init at 0.88 2019-07-27 21:09:12 -04:00
celluloid tree-wide: s/GTK+/GTK/g 2019-09-06 02:54:53 +02:00
cinelerra
clickshare-csc1 treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
clipgrab Merge branch 'master' into staging-next 2019-08-24 08:55:37 +02:00
coriander treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
devede treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
dvb-apps treewide: use dontConfigure 2019-07-01 04:23:51 -04:00
dvd-slideshow treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
dvdauthor
dvdbackup treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
dvdstyler Merge branch 'master' into staging-next 2019-08-24 08:55:37 +02:00
gnome-mplayer treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
gnomecast
gpac treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
handbrake tree-wide: s/GTK+/GTK/g 2019-09-06 02:54:53 +02:00
k9copy treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
kazam
key-mon treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
kino
kmplayer treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
kodi Merge branch 'master' into staging-next 2019-09-04 11:00:56 +02:00
lightworks treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
linuxstopmotion treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
lxdvdrip
makemkv makemkv: 1.14.4 -> 1.14.5 2019-09-06 19:12:38 +02:00
mapmap treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
mediathekview treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
minitube treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
mjpg-streamer treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
mkclean
mkvtoolnix mkvtoolnix: 36.0.0 -> 37.0.0 2019-09-03 19:27:54 -05:00
motion treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
mpc-qt treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
mplayer evtest, mplayer: fixup missing rec after the merge 2019-09-04 11:02:42 +02:00
mpv mpv, ffmpeg: use addOpenGLRunpath to fix CUDA-accelerated playback 2019-09-06 23:18:26 +00:00
mythtv treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
natron treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
obs-studio treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
ogmtools
olive-editor olive-editor: 0.1.0 -> 0.1.1 2019-08-30 21:18:37 -04:00
omxplayer
openshot-qt openshot-qt: fix title generator 2019-09-03 17:49:49 +02:00
p2pvc
peek
pitivi treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
plex-media-player Merge master into staging-next 2019-08-31 09:50:38 +02:00
pyca
qarte
qmediathekview
qstopmotion treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
quvi treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
recordmydesktop treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
screenkey
shotcut Merge branch 'master' into staging-next 2019-08-24 08:55:37 +02:00
simplescreenrecorder Merge master into staging-next 2019-08-31 09:50:38 +02:00
smplayer smplayer: use qt5’s mkDerivation 2019-08-14 14:43:11 +00:00
smtube Merge staging-next into staging 2019-08-17 09:39:23 +02:00
streamlink treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
subdl treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
subtitleeditor Merge branch 'master' into staging-next 2019-09-06 03:20:09 +02:00
tivodecode treewide: name -> pname 2019-08-17 10:54:38 +00:00
uvccapture treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
vdr treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
vlc Merge branch 'master' into staging-next 2019-08-24 08:55:37 +02:00
vokoscreen vokoscreen: use qt5's mkDerivation 2019-08-02 13:58:00 +01:00
w_scan treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
webtorrent_desktop treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
wf-recorder
wxcam treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
xawtv
xine-ui
xscast treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
xvidcap