2010-04-14 11:45:22 +02:00
|
|
|
{stdenv, fetchurl, faad2, libtheora, speex, libvorbis}:
|
2006-06-29 14:41:25 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-04-14 11:18:45 +02:00
|
|
|
name = "ffmpeg-0.5.1";
|
2009-03-10 22:03:51 +01:00
|
|
|
|
2006-06-29 14:41:25 +02:00
|
|
|
src = fetchurl {
|
2010-04-14 11:18:45 +02:00
|
|
|
url = http://www.ffmpeg.org/releases/ffmpeg-0.5.1.tar.bz2;
|
|
|
|
sha256 = "0n68lihyy3jk4q7f22kv6nranfbafyl41hnzpa6cm0r0vf473gn2";
|
2009-03-10 22:03:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# `--enable-gpl' (as well as the `postproc' and `swscale') mean that
|
|
|
|
# the resulting library is GPL'ed, so it can only be used in GPL'ed
|
|
|
|
# applications.
|
|
|
|
configureFlags = ''
|
|
|
|
--enable-gpl
|
|
|
|
--enable-postproc
|
|
|
|
--enable-swscale
|
|
|
|
--disable-ffserver
|
|
|
|
--disable-ffplay
|
2009-03-10 23:45:27 +01:00
|
|
|
--enable-libfaad
|
2009-04-22 21:20:27 +02:00
|
|
|
--enable-shared
|
2010-04-14 11:45:22 +02:00
|
|
|
--enable-libtheora
|
|
|
|
--enable-libvorbis
|
|
|
|
--enable-libspeex
|
2009-03-10 22:03:51 +01:00
|
|
|
'';
|
|
|
|
|
2010-04-14 11:45:22 +02:00
|
|
|
buildInputs = [faad2 libtheora speex libvorbis];
|
2009-03-10 23:45:27 +01:00
|
|
|
|
2009-03-10 22:03:51 +01:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.ffmpeg.org/;
|
|
|
|
description = "A complete, cross-platform solution to record, convert and stream audio and video";
|
2006-06-29 14:41:25 +02:00
|
|
|
};
|
|
|
|
}
|