Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 632217 - media-video/mpv reconsider CUDA use unmask
Summary: media-video/mpv reconsider CUDA use unmask
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Coacher
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-28 04:04 UTC by Oleh
Modified: 2017-09-28 19:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleh 2017-09-28 04:04:44 UTC
as in summary.
cuda use mask has been dropped for media-video/mpv in:
https://gitweb.gentoo.org/repo/gentoo.git/commit/profiles/arch/amd64/package.use.mask?id=4172e5ff62cf6439226543cb15ca691ce4eff7ea
Alright, ffmpeg-3.3 is in tree but it does not do anything about cuda at all. 
So, if you enable cuda USE for mpv, it will just install ffmpeg-3.3.x, if its not already installed. None of ffmpeg ebuilds in portage tree have cuda support enabled, via USE's and configure options. Before ffmpeg get the cuda support, mpv[cuda] is meaningless.

Reference:
https://bugs.gentoo.org/595450

Reproducible: Always
Comment 1 Coacher 2017-09-28 14:36:46 UTC
(In reply to Oleg from comment #0)
> as in summary.
> cuda use mask has been dropped for media-video/mpv in:
> https://gitweb.gentoo.org/repo/gentoo.git/commit/profiles/arch/amd64/package.
> use.mask?id=4172e5ff62cf6439226543cb15ca691ce4eff7ea
> Alright, ffmpeg-3.3 is in tree but it does not do anything about cuda at
> all. 
> So, if you enable cuda USE for mpv, it will just install ffmpeg-3.3.x, if
> its not already installed. None of ffmpeg ebuilds in portage tree have cuda
> support enabled, via USE's and configure options. Before ffmpeg get the cuda
> support, mpv[cuda] is meaningless.
> 
> Reference:
> https://bugs.gentoo.org/595450
> 
> Reproducible: Always
I don't have an NVIDIA card, but CUDA with mpv reportedly works. mpv reimplements most of the required bits and don't require cuda bits from ffmpeg except for one header, which are always there (/usr/include/libavutil/hwcontext_cuda.h).

If you have NVIDIA card and CUDA support with mpv is broken for you, please open a new bug describing what runtime/buildtime problem you have.

*** This bug has been marked as a duplicate of bug 603974 ***
Comment 2 Oleh 2017-09-28 19:16:22 UTC
this is not duplicate and the reference bug does not deal with any CUDA-enabled ffmpeg in *portage tree*. This is discussion about user and proxy maintainer User who have mpv/ffmpeg working but the origin of his testing ebuild for ffmpeg is unknown, so it was completely artificial judgement about cuda is working, Please, re-read the logic of this report there is no CUDA-workinf ffmpeg in portage tree (official one that is offered to users).
Comment 3 Oleh 2017-09-28 19:27:47 UTC
to make it move obvious:
cuda? ( >=media-video/ffmpeg-3.3:0 )
alright, it will pull in ffmpeg-3.3. Does it pull ffmpeg that have CUDA options enabled? No. 
Correct way is, bring ffmpeg that is capable to utilitize CUDA, when compiled with cuda support. This is reported in https://bugs.gentoo.org/595450.
So, only when this fixed, then:
cuda? ( >=media-video/ffmpeg-3.3:0[cuda] ) does make sense.
Thank you.
Comment 4 Coacher 2017-09-28 19:37:06 UTC
(In reply to Oleg from comment #3)
> to make it move obvious:
> cuda? ( >=media-video/ffmpeg-3.3:0 )
> alright, it will pull in ffmpeg-3.3. Does it pull ffmpeg that have CUDA
> options enabled? No. 
> Correct way is, bring ffmpeg that is capable to utilitize CUDA, when
> compiled with cuda support. This is reported in
> https://bugs.gentoo.org/595450.
> So, only when this fixed, then:
> cuda? ( >=media-video/ffmpeg-3.3:0[cuda] ) does make sense.
You are wrong. Let me repeat again the most important part from my comment above:

mpv don't require cuda bits from ffmpeg except for one header, which is always there (/usr/include/libavutil/hwcontext_cuda.h).

It seems you've skipped the comments that explains cuda situation in great details: https://bugs.gentoo.org/603974#c1

See also https://github.com/mpv-player/mpv/issues/3941

Again, mpv since 0.23.0 is specifically tailored upstream to work WITHOUT any special ffmpeg build options or any cuda packages from nvidia. You just need libcuda.so provided by nvidia-drivers.