Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 542726 - media-video/ffmpeg-2.6: please add NVENC support
Summary: media-video/ffmpeg-2.6: please add NVENC support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Media-video project
URL: http://git.videolan.org/?p=ffmpeg.git...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-09 17:44 UTC by Lori
Modified: 2016-06-25 17:54 UTC (History)
5 users (show)

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


Attachments
ffmeg with nvenc support (ffmpeg-2.6.1-r1.ebuild,14.42 KB, text/plain)
2015-03-31 17:44 UTC, Jam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lori 2015-03-09 17:44:37 UTC
Version 2.6 of ffmpeg supports hardware accelerated H.264 encoding with nVidia card from the Fermi and Kepler architectures, see [1].  However, the current ebuild doesn't offer a USE flag to optionally turn this feature on (default off).

[1] http://git.videolan.org/?p=ffmpeg.git;a=blob;f=RELEASE_NOTES;hb=release/2.6

Reproducible: Always
Comment 1 Alexis Ballier gentoo-dev 2015-03-11 08:37:45 UTC
good, but where can i find nvEncodeAPI.h ?
Comment 2 Lori 2015-03-11 12:50:47 UTC
Hmmm, I guess we need a new ebuild for https://developer.nvidia.com/nvidia-video-codec-sdk :(
Comment 3 Jam 2015-03-31 17:44:58 UTC
Created attachment 400290 [details]
ffmeg with nvenc support
Comment 4 Jam 2015-03-31 17:47:55 UTC
This one seems to work. User needs to manually download sdk from https://developer.nvidia.com/nvidia-video-codec-sdk unpack and place nvEncodeAPI.h  in the ebuild's catalogue.

This is only a temporary solution of course...
Comment 5 Alexis Ballier gentoo-dev 2015-10-24 11:33:13 UTC
commit 3078ef8fab1424f2c198f6ecad63e0db3665c57f
Author: Alexis Ballier <aballier@gentoo.org>
Date:   Sat Oct 24 13:31:31 2015 +0200

    media-video/ffmpeg: Add nvenc useflag to live ebuild. Bug #542726.


finally took time to add nvenc ebuild!
Comment 6 Timo Rothenpieler 2015-10-25 11:05:12 UTC
The hard dependency on the cuda-toolkit in the new nvenc ebuild seems unneccesary. It only copies some headers around, and ffmpeg doesn't have any external dependencies for nvenc except for a single header.
Comment 7 George Kranis 2015-10-27 15:16:52 UTC
nvenc use requires --enable-nonfree, otherwise configure fails with
"nvenc is nonfree and --enable-nonfree is not specified"
Comment 8 om3i 2016-01-13 11:06:13 UTC
Are there plans to add nvenc to non-live ebuilds starting from 2.6? ffmpeg-2.8.4 is out and that's annoying to have so many packages in local overlay.
Comment 9 om3i 2016-01-13 11:08:31 UTC
Also ffmpeg is famous for breaking api compatibility, so can't really use 9999 version.