rekado pushed a commit to branch master
in repository guix.

commit f353896b104bc921f4e67c5509550d85f373e1c3
Author: Ricardo Wurmus <[email protected]>
AuthorDate: Thu May 15 08:28:19 2025 +0200

    gnu: Add ffmpeg-for-friction.
    
    * gnu/packages/video.scm (ffmpeg-for-friction): New variable.
    
    Change-Id: I11b5a7b8df325ccb16d9e8e3d19817624c8b17d0
---
 gnu/packages/video.scm | 28 +++++++++++++++++++++++++++-
 1 file changed, 27 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 5af4a0e50c..6400eb19c5 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -5,7 +5,7 @@
 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <[email protected]>
 ;;; Copyright © 2015-2024 Efraim Flashner <[email protected]>
 ;;; Copyright © 2015, 2016 Andy Patterson <[email protected]>
-;;; Copyright © 2015, 2018, 2019, 2020, 2021, 2023 Ricardo Wurmus 
<[email protected]>
+;;; Copyright © 2015, 2018, 2019, 2020, 2021, 2023, 2025 Ricardo Wurmus 
<[email protected]>
 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Alex Vong <[email protected]>
 ;;; Copyright © 2016, 2017 Alex Griffin <[email protected]>
 ;;; Copyright © 2016 Kei Kebreau <[email protected]>
@@ -1951,6 +1951,32 @@ audio/video codec library.")
                  "--enable-static"))))
      (inputs '()))))
 
+(define-public ffmpeg-for-friction
+  (package
+    (inherit ffmpeg-4)
+    (version "4.2.10")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "https://ffmpeg.org/releases/ffmpeg-";
+                                 version ".tar.xz"))
+             (sha256
+              (base32
+               "01jc8ygbazk37wbb7qj24zi9sbfrxrvzhyk527bbas19gxpdrk64"))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments ffmpeg-4)
+       ((#:modules modules %default-gnu-modules)
+        `((srfi srfi-1) ,@modules))
+       ((#:configure-flags flags ''())
+        #~(fold delete #$flags
+                '("--enable-avresample"
+                  "--enable-libaom"
+                  "--enable-libdav1d"
+                  "--enable-librav1e"
+                  "--enable-libsrt"
+                  "--enable-libsvtav1")))))
+    (inputs (modify-inputs (package-inputs ffmpeg-4)
+              (delete "dav1d" "libaom" "rav1e" "srt")))))
+
 ;;; Custom ffmpeg package used by Jami, which incorporates custom patches.
 (define-public ffmpeg-jami
   (package

Reply via email to