diff options
| author | Hilton Chain <hako@ultrarare.space> | 2026-03-25 00:25:19 +0800 |
|---|---|---|
| committer | Hilton Chain <hako@ultrarare.space> | 2026-04-03 16:57:38 +0800 |
| commit | ec6a98151a06615e8053fe32d6fabb1e33e33a29 (patch) | |
| tree | 3ee1e027118dbdfe1f51de4211783f89c5af1e97 /nongnu/packages/nvidia.scm | |
| parent | 5b1405fb1b4769fed54b789052bcec7c45bb1b01 (diff) | |
nongnu: Move ffmpeg/nvidia and ffmpeg-6/nvidia to (nongnu packages nvidia).
* nongnu/packages/video.scm (ffmpeg/nvidia, ffmpeg-6/nvidia): Move them to...
* nongnu/packages/nvidia.scm (ffmpeg/nvidia, ffmpeg-6/nvidia): ...here.
Diffstat (limited to 'nongnu/packages/nvidia.scm')
| -rw-r--r-- | nongnu/packages/nvidia.scm | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/nongnu/packages/nvidia.scm b/nongnu/packages/nvidia.scm index 6d1d374..0240921 100644 --- a/nongnu/packages/nvidia.scm +++ b/nongnu/packages/nvidia.scm @@ -1376,6 +1376,51 @@ support. For dependency of other packages, use @code{nvidia-driver} instead.") heroic-nvidia-beta (package-version nvidia-driver-beta)) +(define-public ffmpeg/nvidia + (hidden-package + (package + (inherit ffmpeg) + (name "ffmpeg-nvidia") + (inputs + (modify-inputs inputs + (prepend nv-codec-headers))) + (arguments + (substitute-keyword-arguments arguments + ((#: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 ffmpeg-6/nvidia + (hidden-package + (package + (inherit ffmpeg-6) + (inputs + (modify-inputs inputs + (prepend nv-codec-headers))) + (arguments + (substitute-keyword-arguments arguments + ((#: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))))) + (define* (replace-mesa obj #:key (driver nvda)) (with-transformation (package-input-grafting |
