summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurilo <murilo@disroot.org>2024-09-19 23:00:52 -0300
committerHilton Chain <hako@ultrarare.space>2024-11-28 14:26:10 +0800
commit0c4a83a006819df1b846884125271ab4b8b0faf0 (patch)
tree6713a00013bd423fc5ad0a3f975a3aae3941c7a4
parentaf911e9b2c37eddc015344c85fb426a45e146d40 (diff)
nongnu: Add ffmpeg-nvenc.
* nongnu/packages/video.scm (ffmpeg-nvenc): New variable. Signed-off-by: Hilton Chain <hako@ultrarare.space>
-rw-r--r--nongnu/packages/video.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/nongnu/packages/video.scm b/nongnu/packages/video.scm
index 8c7fa1b..5c6ca46 100644
--- a/nongnu/packages/video.scm
+++ b/nongnu/packages/video.scm
@@ -17,6 +17,30 @@
#:use-module (nongnu packages chromium)
#:use-module (nongnu packages nvidia))
+(define-public ffmpeg-nvenc
+ (package/inherit ffmpeg
+ (name "ffmpeg-nvenc")
+ (inputs
+ (modify-inputs
+ (package-inputs ffmpeg)
+ (prepend nv-codec-headers)))
+ (arguments
+ (substitute-keyword-arguments (package-arguments ffmpeg)
+ ((#:configure-flags flags)
+ ;; Currently only interested in NVENC.
+ ;; Might be better to make a ffmpeg-nonfree with all nonfree codecs
+ ;; in the future.
+ #~(cons* "--enable-cuvid"
+ "--enable-ffnvcodec"
+ "--enable-encoder=hevc_nvenc"
+ "--enable-encoder=h264_nvenc"
+ #$flags))))
+ (description
+ (string-append
+ (package-description ffmpeg)
+ " This build of FFmpeg includes the nonfree NVIDIA encoder for
+@code{h264_nvenc} and @code{hevc_nvenc} hardware encoding on NVIDIA GPUs."))))
+
(define-public gmmlib
(package
(name "gmmlib")