Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648170 - media-video/ffmpeg USE=nvenc should depend on dev-util/nvidia-cuda-toolkit
Summary: media-video/ffmpeg USE=nvenc should depend on dev-util/nvidia-cuda-toolkit
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on: 653378
Blocks:
  Show dependency tree
 
Reported: 2018-02-19 18:40 UTC by Adomas Jackevičius
Modified: 2018-05-25 16:04 UTC (History)
0 users

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


Attachments
ffmpeg failing, ffmpeg working, and emerge --info (ffmpeg-txt-files.tar,20.00 KB, application/x-tar)
2018-02-19 18:40 UTC, Adomas Jackevičius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adomas Jackevičius 2018-02-19 18:40:24 UTC
Created attachment 520150 [details]
ffmpeg failing, ffmpeg working, and emerge --info

Hello,
Found this issue as I tried using ffmpeg with nvenc encoder. In file ffmpeg-fails.txt is whole output of ffmpeg compiled with nvenc USE flag and trying to use h264_nvenc encoder. In file ffmpeg-works.txt is same thing, just after installing of nvidia-cuda-toolkit, and then it works.

It seems that h264_nvenc depends on CUDA. From ffmpeg-fails.txt:

[h264_nvenc @ 0x558dd805a700] Cannot init CUDA

I think as nvenc USE flag is enabled, it should pull dev-util/nvidia-cuda-toolkit as only then nvenc works.
Comment 1 Larry the Git Cow gentoo-dev 2018-04-22 11:21:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72efc6ce0847d20ebaa7e2f4ceb042d36e97e244

commit 72efc6ce0847d20ebaa7e2f4ceb042d36e97e244
Author:     Alexis Ballier <aballier@gentoo.org>
AuthorDate: 2018-04-22 10:52:34 +0000
Commit:     Alexis Ballier <aballier@gentoo.org>
CommitDate: 2018-04-22 11:21:30 +0000

    media-video/ffmpeg: rework nvidia codec support
    
    Closes: https://bugs.gentoo.org/653378
    Closes: https://bugs.gentoo.org/648170
    Package-Manager: Portage-2.3.31, Repoman-2.3.9

 media-video/ffmpeg/ffmpeg-4.0.ebuild  | 6 +++---
 media-video/ffmpeg/ffmpeg-9999.ebuild | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)
Comment 2 pmn 2018-05-17 15:05:46 UTC
please re-open. not working for me:

 * abi_x86_64.amd64: running multilib-minimal_abi_src_configure
...
ERROR: ffnvcodec requested but not found
Comment 3 pmn 2018-05-25 16:04:42 UTC
here is why; config script checks here:

check_pkg_config ffnvcodec 'ffnvcodec >= 8.1.24.2' 


ffnvcodec.pc says:
Name: ffnvcodec
Description: FFmpeg version of Nvidia Codec SDK headers
Version: 8.1.24.1

so 8.1.24.2 must be a dep for ffmpeg-9999, at least.