diff options
| author | Hilton Chain <hako@ultrarare.space> | 2025-11-15 22:42:25 +0800 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2025-12-22 15:17:35 +0800 |
| commit | 0a9374f1f4fe75270604a9902d5c0d1a74ef3fc8 (patch) | |
| tree | 64e6801a3429588abaaa103f469ed917e008c8e5 /nongnu/packages/video.scm | |
| parent | 7d2de24685ec2f45b129db9c5d70b6a6029747ab (diff) | |
nongnu: Add ffmpeg-6/nvidia.
* nongnu/packages/video.scm (ffmpeg-6/nvidia): New variable.
* nongnu/packages/nvidia.scm (replace-mesa): Add it.
Diffstat (limited to 'nongnu/packages/video.scm')
| -rw-r--r-- | nongnu/packages/video.scm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/nongnu/packages/video.scm b/nongnu/packages/video.scm index d1a73ee..2b6def8 100644 --- a/nongnu/packages/video.scm +++ b/nongnu/packages/video.scm @@ -69,6 +69,28 @@ @code{h264_nvenc} and @code{hevc_nvenc} hardware encoding on NVIDIA GPUs.")) (properties '((upstream-name . "ffmpeg"))))) +(define-public ffmpeg-6/nvidia + (package + (inherit ffmpeg-6) + (name "ffmpeg-nvidia") + (inputs + (modify-inputs + (package-inputs ffmpeg-6) + (prepend nv-codec-headers))) + (arguments + (substitute-keyword-arguments (package-arguments ffmpeg-6) + ((#: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 (package-description ffmpeg/nvidia)) + (properties '((upstream-name . "ffmpeg"))))) + (define-deprecated-package ffmpeg-nvenc ffmpeg/nvidia) (define-public gmmlib |
