mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
harvid: init at 0.8.3
harvid decodes still images from movie files and serves them via HTTP. Please refer to the meta attribute for more information. This commit is part of a PR aimed at enabling video support in ardour.
This commit is contained in:
parent
a1230b70ae
commit
450a1571e4
42
pkgs/tools/video/harvid/default.nix
Normal file
42
pkgs/tools/video/harvid/default.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchFromGitHub, ffmpeg, libjpeg, libpng, pkg-config }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "harvid";
|
||||
version = "0.8.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "x42";
|
||||
repo = "harvid";
|
||||
rev = "v${version}";
|
||||
sha256 = "0l1plfsfh2ixhlzg3hqqvjj42z7g422718a9kgbh7b4p882n71x7";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [ ffmpeg libjpeg libpng ];
|
||||
|
||||
makeFlags = [ "DESTDIR=$(out)" "libdir=\"/lib\"" ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/bin
|
||||
mv $out/usr/local/bin/* $out/bin
|
||||
mv $out/usr/local/share $out/
|
||||
rm -r $out/usr
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description =
|
||||
"Decodes still images from movie files and serves them via HTTP";
|
||||
longDescription = ''
|
||||
harvid's intended use-case is to efficiently provide frame-accurate data
|
||||
and act as second level cache for rendering the video-timeline in Ardour,
|
||||
but it is not limited to that: it has applications for any task that
|
||||
requires a high-performance frame-accurate online image extraction
|
||||
processor.
|
||||
'';
|
||||
homepage = "http://x42.github.io/harvid";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ mitchmindtree ];
|
||||
};
|
||||
}
|
|
@ -1366,6 +1366,8 @@ in
|
|||
|
||||
hakrawler = callPackage ../tools/security/hakrawler { };
|
||||
|
||||
harvid = callPackage ../tools/video/harvid { };
|
||||
|
||||
hime = callPackage ../tools/inputmethods/hime {};
|
||||
|
||||
hinit = haskell.lib.justStaticExecutables haskellPackages.hinit;
|
||||
|
|
Loading…
Reference in a new issue