Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917765 - media-libs/nv-codec-headers-11.1.5.2 appears to be incompatible with ffmpeg 6.1 (fix: Upgrade to >=11.1.5.3)
Summary: media-libs/nv-codec-headers-11.1.5.2 appears to be incompatible with ffmpeg 6...
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:
: 917793 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-11-22 21:45 UTC by Nick Hadaway
Modified: 2023-11-23 10:00 UTC (History)
5 users (show)

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 Nick Hadaway 2023-11-22 21:45:56 UTC
ffmpeg-6.1 just dropped in unstable.  When attempting to compile it, I got a failure.  After reviewing the output, it said something about ffnvcodec can't be found.  This has popped up many times before when searching gentoo forums, bugs, etc.

I have an nvidia video card on my system, and I depend upon nvenc/nvdec functions within ffmpeg.

I checked out the upstream project and I see that there are 12.0.x.x and 12.1.x.x versions available, but there was also an 11.1.5.3 that was released about 6 months ago.

I bumped the ebuild up to 11.1.5.3, installed it, and the compilation worked great.

So, this is a bug report with a working fix I think.

Reproducible: Always

Steps to Reproduce:
1. emerge ffmpeg 6.1 with nv-codec-headers 11.1.5.2 installed

Actual Results:  
build fails unable to find ffnvcodec

Expected Results:  
Build complete
Comment 1 Gary E. Miller 2023-11-22 22:15:52 UTC
#MeToo
Comment 2 Gary E. Miller 2023-11-22 22:17:17 UTC
I guess we need a version bump on nv-codecs:

dilbert ~ # eix nv-codec
[I] media-libs/nv-codec-headers
     Available versions:  11.1.5.1-r1 11.1.5.2
     Installed versions:  11.1.5.2(07:45:26 PM 09/11/2023)
Comment 3 Gary E. Miller 2023-11-22 23:25:44 UTC
This allowed me to build ffmpeg:6

USE=-nvenc emerge -1a ffmpeg
Comment 4 Cyril 2023-11-23 05:47:47 UTC
Bump nv-codec-headers to 12.1.14.0, solves the problem.
Comment 5 Kfir Ozer 2023-11-23 07:15:44 UTC
(In reply to Cyril from comment #4)
> Bump nv-codec-headers to 12.1.14.0, solves the problem.

i can confirm as well
Comment 6 Reva Denis 2023-11-23 07:25:40 UTC
I am also affected for this bug
Comment 7 Larry the Git Cow gentoo-dev 2023-11-23 08:16:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a7a4c504ad981e8d6b7b6d80738796c48152f14

commit 1a7a4c504ad981e8d6b7b6d80738796c48152f14
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-11-23 07:32:52 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-11-23 08:11:55 +0000

    media-video/ffmpeg: update nv-codec-headers version requirements
    
    ffmpeg-4, 5, and 6.0:
      Building against nv-codec-headers-12 *works* but then nvenc is
      unusable at runtime.
    ffmpeg-6.0.1:
      Any in-tree version seems fine.
    >=ffmpeg-6.1:
      Requires >=11.1.5.3 wrt bug #917765
    
    (mpv is fine with -12 as well, but have not tested other consumers).
    
    No need for revbumps, technically this shouldn't be in RDEPEND but
    not going to re-arrange things more than necessary.
    
    Closes: https://bugs.gentoo.org/917765
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-video/ffmpeg/ffmpeg-4.4.4-r6.ebuild | 2 +-
 media-video/ffmpeg/ffmpeg-4.4.4-r7.ebuild | 2 +-
 media-video/ffmpeg/ffmpeg-4.4.4-r8.ebuild | 2 +-
 media-video/ffmpeg/ffmpeg-5.1.3-r5.ebuild | 2 +-
 media-video/ffmpeg/ffmpeg-5.1.4-r1.ebuild | 2 +-
 media-video/ffmpeg/ffmpeg-5.1.4.ebuild    | 2 +-
 media-video/ffmpeg/ffmpeg-6.0-r10.ebuild  | 2 +-
 media-video/ffmpeg/ffmpeg-6.0-r9.ebuild   | 2 +-
 media-video/ffmpeg/ffmpeg-6.0.1.ebuild    | 2 +-
 media-video/ffmpeg/ffmpeg-6.1.ebuild      | 2 +-
 media-video/ffmpeg/ffmpeg-9999.ebuild     | 2 +-
 11 files changed, 11 insertions(+), 11 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit fe1cf3e40c1140435e2628c3bd1e6aa10e69efea
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-11-23 07:31:30 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-11-23 08:04:23 +0000

    media-libs/nv-codec-headers: add 12.1.14.0
    
    Bug: https://bugs.gentoo.org/917765
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-libs/nv-codec-headers/Manifest               |  1 +
 .../nv-codec-headers-12.1.14.0.ebuild              | 23 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)
Comment 8 Ionen Wolkens gentoo-dev 2023-11-23 10:00:49 UTC
*** Bug 917793 has been marked as a duplicate of this bug. ***