2021-04-27 10:00:17 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, autoreconfHook
|
|
|
|
, pkg-config
|
2022-02-04 23:49:08 +00:00
|
|
|
, ffmpeg_4
|
2021-04-27 10:00:17 +00:00
|
|
|
, zlib
|
|
|
|
}:
|
2013-04-10 13:12:02 +00:00
|
|
|
|
2013-12-16 13:32:50 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ffms";
|
2021-04-27 10:00:17 +00:00
|
|
|
version = "2.40";
|
2013-12-16 13:32:50 +00:00
|
|
|
|
2017-03-12 20:24:05 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "FFMS";
|
|
|
|
repo = "ffms2";
|
|
|
|
rev = version;
|
2021-04-27 10:00:17 +00:00
|
|
|
sha256 = "sha256-3bPxt911T0bGpAIS2RxBjo+VV84xW06eKcCj3ZAcmvw=";
|
2013-04-10 13:12:02 +00:00
|
|
|
};
|
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-fPIC";
|
2013-04-10 13:12:02 +00:00
|
|
|
|
2021-04-27 10:00:17 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
preAutoreconf = ''
|
|
|
|
mkdir src/config
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-02-04 23:49:08 +00:00
|
|
|
ffmpeg_4
|
2021-04-27 10:00:17 +00:00
|
|
|
zlib
|
|
|
|
];
|
2013-04-10 13:12:02 +00:00
|
|
|
|
2019-06-25 23:12:38 +00:00
|
|
|
# ffms includes a built-in vapoursynth plugin, see:
|
|
|
|
# https://github.com/FFMS/ffms2#avisynth-and-vapoursynth-plugin
|
|
|
|
postInstall = ''
|
|
|
|
mkdir $out/lib/vapoursynth
|
|
|
|
ln -s $out/lib/libffms2.so $out/lib/vapoursynth/libffms2.so
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/FFMS/ffms2/";
|
2021-04-27 10:00:17 +00:00
|
|
|
description = "FFmpeg based source library for easy frame accurate access";
|
2017-03-12 20:24:05 +00:00
|
|
|
license = licenses.mit;
|
2021-04-27 10:00:17 +00:00
|
|
|
maintainers = with maintainers; [ tadeokondrak ];
|
2017-03-12 20:24:05 +00:00
|
|
|
platforms = platforms.unix;
|
2013-04-10 13:12:02 +00:00
|
|
|
};
|
|
|
|
}
|