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 treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
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 gobject-introspection: rename package 2018-12-02 12:42:29 +01:00
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 gobject-introspection: rename package 2018-12-02 12:42:29 +01:00
key-mon treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
kino kino: link with lib{avcodec,avutil} explicitly 2019-01-04 21:44:20 +00:00
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 mkclean: init at 0.8.10 2019-05-13 05:43:28 +09:00
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 peek: build with vala_0_40 2019-03-30 14:09:31 -04:00
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 pyCA: init at 2.1 2018-11-24 11:30:37 +01:00
qarte qarte: 3.10.0+188 -> 4.6.0 2019-05-23 06:06:27 +00:00
qmediathekview qmediathekview: 2017-04-16 -> 2019-01-06 2019-01-10 18:20:37 +01:00
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 gnome3: stop using aliases 2019-02-14 02:31:15 +01:00
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 wf-recorder: unstable-2019-04-21 -> 0.1 2019-05-13 19:02:41 +03:00
wxcam treewide: name -> pname (easy cases) (#66585) 2019-08-15 13:41:18 +01:00
xawtv xawtv: 3.105 -> 3.106 2019-04-05 15:43:22 +00:00
xine-ui treewide/xorg: replace *proto with xorgproto 2019-01-04 14:38:57 +01:00
xscast treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
xvidcap perlXMLParser -> perlPackages.XMLParser 2018-10-12 22:56:15 +00:00