[PATCH 3/3] gnu: video: Add mediainfo.

  • Done
  • quality assurance status badge
Details
3 participants
  • Ethan R. Jones
  • Ludovic Courtès
  • Marius Bakke
Owner
unassigned
Submitted by
Ethan R. Jones
Severity
normal
E
E
Ethan R. Jones wrote on 23 May 2017 22:43
(address . guix-patches@gnu.org)(name . Ethan R. Jones)(address . doubleplusgood23@gmail.com)
20170523204306.25418-3-doubleplusgood23@gmail.com
* gnu/packages/video.scm (mediainfo): New variable.
---
gnu/packages/video.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)

Toggle diff (71 lines)
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 <me@tobias.gr>
;;; Copyright © 2017 Chris Marusich <cmmarusich@gmail.com>
;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
+;;; Copyright © 2017 Ethan R. Jones <doubleplusgood23@gmail.com>
;;;
;;; 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
M
M
Marius Bakke wrote on 24 May 2017 18:37
(name . Ethan R. Jones)(address . doubleplusgood23@gmail.com)
87k256w6rk.fsf@fastmail.com
"Ethan R. Jones" <doubleplusgood23@gmail.com> writes:

Toggle quote (2 lines)
> * gnu/packages/video.scm (mediainfo): New variable.

[...]

Toggle quote (8 lines)
> + (arguments
> + '(#:tests? #f ; lacks tests
> + #:phases
> + ;; build scripts not in root of archive
> + (modify-phases %standard-phases
> + (add-before
> + 'configure 'pre-configure

Can you also move the 'configure line up after '(add-before'? Goes for
the other patches too.

Toggle quote (23 lines)
> + (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")

Please also convert this list to use @itemize. Can you send updated
patches? TIA! :-)
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlkltr8ACgkQoqBt8qM6
VPptggf/Z9OZHHtLA2q4hc44dFRmG/QIutyJiVqiYJCVjP89bWUQRIMXHvo/n5+N
pxuE4USGRhVc6FD+/w+V8EsPTJeD3oytqJwpXyhx1xwUdwT0KmsGC+Tmhn2IcLRv
3bU9q+N1rB4ewluOShOVIJS9pfBw+OoyOHRciunfBzcH42ZhJ0jVM6mGSab617vI
poMrWBOZwGkODeSSEi828Mu4+oyJZAFtHYK1ICJEtCZHXc0Z5tgNbPiRC8bePKcK
OdiusuKcXIH//mnxaLBZpI5k4+UWybsFRFt8Yi5T7rufffIqfqvftpMizkDTOkko
E58RLgW4ZgNcywHuekJ7exxat4+HvQ==
=2DZe
-----END PGP SIGNATURE-----

L
L
Ludovic Courtès wrote on 31 May 2017 17:52
control message for bug #27046
(address . control@debbugs.gnu.org)
8760ghc9c5.fsf@gnu.org
tags 27046 fixed
close 27046
?