Subject: [bug#29016] [PATCH] gnu: video: Add [email-masked]. (fixes for ffmpeg 3.4)

From: Rutger Helling <[email-masked]>
Date: Thu, 26 Oct 2017 20:00:32 +0200

Hey Guix, 

I've noticed a few packages unfortunately break with ffmpeg 3.4. This
patch adds ffmpeg 3.3.4 back and changes the inputs of these broken
packages to [email-masked].

From 4fd9ed660a0afbd362e1bff6d87d8641c32472ff Mon Sep 17 00:00:00 2001
From: Rutger Helling <[email-masked]>
Date: Thu, 26 Oct 2017 19:50:17 +0200
Subject: [PATCH] gnu: video: Add [email-masked].

* gnu/packages/gstreamer.scm (gst-libav)[inputs]: Change ffmpeg to [email-masked].
* gnu/packages/messaging.scm (qtox)[inputs]: Change ffmpeg to [email-masked].
* gnu/packages/video.scm ([email-masked]): New variable.
---
 gnu/packages/gstreamer.scm |  2 +-
 gnu/packages/messaging.scm |  2 +-
 gnu/packages/video.scm     | 12 ++++++++++++
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
index c308dc9f3..c87465db0 100644
--- a/gnu/packages/gstreamer.scm
+++ b/gnu/packages/gstreamer.scm
@@ -409,7 +409,7 @@ distribution problems in some jurisdictions, e.g. due to patent threats.")
        ("python" ,python)))
     (inputs
      `(("gst-plugins-base" ,gst-plugins-base)
-       ("ffmpeg" ,ffmpeg)
+       ("ffmpeg" ,ffmpeg-3.3)
        ("orc" ,orc)
        ("zlib" ,zlib)))
     (home-page "http://gstreamer.freedesktop.org/")
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index cd9c41fcc..72dbbcd1e 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -822,7 +822,7 @@ instant messenger with audio and video chat capabilities.")
                (("TIMESTAMP") "\"\""))
              #t)))))
     (inputs
-     `(("ffmpeg" ,ffmpeg)
+     `(("ffmpeg" ,ffmpeg-3.3)
        ("glib" ,glib)
        ("gtk+" ,gtk+-2)
        ("libsodium" ,libsodium)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index d73e21a31..5596c4839 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -751,6 +751,18 @@ convert and stream audio and video.  It includes the libavcodec
 audio/video codec library.")
     (license license:gpl2+)))
 
+(define-public ffmpeg-3.3
+  (package
+    (inherit ffmpeg)
+    (version "3.3.4")
+    (source (origin
+             (method url-fetch)
+             (uri (string-append "https://ffmpeg.org/releases/ffmpeg-"
+                                 version ".tar.xz"))
+             (sha256
+              (base32
+               "0mx9dvad3lkyhvsrblf280x2bz6dxajya1ylnspbdzldj0dpxfcq"))))))
+
 (define-public ffmpeg-2.8
   (package
     (inherit ffmpeg)
-- 
2.14.3