From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDGez-0005lZ-Di for guix-patches@gnu.org; Tue, 23 May 2017 16:44:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDGey-0003a6-B1 for guix-patches@gnu.org; Tue, 23 May 2017 16:44:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60698) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDGey-0003Zy-7U for guix-patches@gnu.org; Tue, 23 May 2017 16:44:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dDGey-0003b4-1Q for guix-patches@gnu.org; Tue, 23 May 2017 16:44:04 -0400 Subject: bug#27046: [PATCH 3/3] gnu: video: Add mediainfo. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDGea-0005SG-O8 for guix-patches@gnu.org; Tue, 23 May 2017 16:43:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDGeZ-0003Qj-Ct for guix-patches@gnu.org; Tue, 23 May 2017 16:43:40 -0400 Received: from mail-qt0-x22a.google.com ([2607:f8b0:400d:c0d::22a]:33960) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDGeZ-0003QH-7c for guix-patches@gnu.org; Tue, 23 May 2017 16:43:39 -0400 Received: by mail-qt0-x22a.google.com with SMTP id c13so139152035qtc.1 for ; Tue, 23 May 2017 13:43:39 -0700 (PDT) From: "Ethan R. Jones" Date: Tue, 23 May 2017 16:43:06 -0400 Message-Id: <20170523204306.25418-3-doubleplusgood23@gmail.com> In-Reply-To: <20170523204306.25418-1-doubleplusgood23@gmail.com> References: <20170523204306.25418-1-doubleplusgood23@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 27046@debbugs.gnu.org Cc: "Ethan R. Jones" * gnu/packages/video.scm (mediainfo): New variable. --- gnu/packages/video.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index b8dc02e2f..285d20a12 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -18,6 +18,7 @@ ;;; Copyright © 2017 Tobias Geerinckx-Rice ;;; Copyright © 2017 Chris Marusich ;;; Copyright © 2017 Thomas Danckaert +;;; Copyright © 2017 Ethan R. Jones ;;; ;;; This file is part of GNU Guix. ;;; @@ -2142,3 +2143,56 @@ MediaInfo supports the following formats: - Subtitles: SRT, SSA, ASS, SAMI...") (license license:bsd-2))) +;; TODO also have a GUI version available +(define-public mediainfo + (package + (name "mediainfo") + (version "0.7.95") + (source (origin + (method url-fetch) + (uri (string-append "https://mediaarea.net/download/source/" + name "/" version "/" + name "_" version ".tar.bz2")) + (file-name (string-append name "-" version ".tar.bz2")) + (sha256 + (base32 + "0dy51a3i79jppmg1gi4f6h7jx4hcgnkmfim4d7d3gmnlbkjh8anv")))) + (native-inputs + `(("autoconf" ,autoconf) + ("automake" ,automake) + ("libtool" ,libtool) + ("pkg-config" ,pkg-config) + ("zlib" ,zlib) + ("libmediainfo", libmediainfo) + ("libzen" ,libzen))) + (build-system gnu-build-system) + (arguments + '(#:tests? #f ; lacks tests + #:phases + ;; build scripts not in root of archive + (modify-phases %standard-phases + (add-before + 'configure 'pre-configure + (lambda _ + (chdir "Project/GNU/CLI"))) + (add-before 'configure 'autogen + (lambda _ + (zero? (system* "./autogen.sh"))))))) + (home-page "https://mediaarea.net/en/MediaInfo") + (synopsis "Utility for reading media metadata") + (description "MediaInfo is a utility used for retrieving technical +information and other metadata about audio or video files. +A non-exhaustive list of the information MediaInfo can retrieve from media files include: + - General: title, author, director, album, track number, date, duration... + - Video: codec, aspect, fps, bitrate... + - Audio: codec, sample rate, channels, language, bitrate... + - Text: language of subtitle + - Chapters: number of chapters, list of chapters +MediaInfo supports the following formats: + - Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1, MPEG-2, + MPEG-4, DVD (VOB)... + - Video Codecs: DivX, XviD, MSMPEG4, ASP, H.264, AVC...) + - Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF... + - Subtitles: SRT, SSA, ASS, SAMI... +MediaInfo supplies technical and tag information about a video or audio file") + (license license:bsd-2))) -- 2.13.0