From 2034d229893bd6b96e66c588f235da36efc025b9 Mon Sep 17 00:00:00 2001 From: Petr Hodina Date: Sat, 3 Dec 2022 10:34:03 +0100 Subject: [PATCH 3/6] gnu: Add h264bitstream. * gnu/packages/video.scm (h264bitstream): New variable. diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 6e0a1e313c..cce98ca6cd 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -3957,6 +3957,39 @@ (define-public handbrake ;; Combination under GPLv2. See LICENSE. (license license:gpl2))) +(define-public h264bitstream + (let ((commit "34f3c58afa3c47b6cf0a49308a68cbf89c5e0bff") + (revision "1")) + (package + (name "h264bitstream") + (version commit) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/aizvorski/h264bitstream") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0rrhzckz2a89q0chw2bfl4g89yiv9a0dcqcj80lcpdr3a1ix8q85")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;no test suite + #:phases #~(modify-phases %standard-phases + (add-after 'install 'fix-include-bs-h + (lambda* _ + (display "") + (symlink (string-append #$output + "/include/h264bitstream/bs.h") + (string-append #$output "/include/bs.h"))))))) + (native-inputs (list autoconf automake libtool pkg-config)) + (inputs (list ffmpeg)) + (synopsis "Library to read and write H.264 video bitstreams") + (description + "This package provides the code GameStream code shared between @code{Moonlight} clients.") + (home-page "https://github.com/aizvorski/h264bitstream") + (license license:lgpl2.1)))) + (define-public intel-vaapi-driver (package (name "intel-vaapi-driver") -- 2.38.1