2010-06-25 00:55:25 +02:00
|
|
|
{stdenv, fetchurl, faad2, libtheora, speex, libvorbis, x264, pkgconfig, xvidcore, lame, yasm
|
|
|
|
, libvpx}:
|
2006-06-29 14:41:25 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-06-25 00:55:25 +02:00
|
|
|
name = "ffmpeg-0.6";
|
2009-03-10 22:03:51 +01:00
|
|
|
|
2006-06-29 14:41:25 +02:00
|
|
|
src = fetchurl {
|
2010-06-25 00:55:25 +02:00
|
|
|
url = http://www.ffmpeg.org/releases/ffmpeg-0.6.tar.bz2;
|
|
|
|
sha256 = "08419kg2i8j7x4mb3vm6a73fdszivj6lzh7lypxby30gfnkblc37";
|
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
|
2010-04-30 10:33:47 +02:00
|
|
|
--enable-libx264
|
2010-04-30 23:47:09 +02:00
|
|
|
--enable-libxvid
|
2010-05-25 20:39:24 +02:00
|
|
|
--enable-libmp3lame
|
|
|
|
--enable-runtime-cpudetect
|
2010-06-25 00:55:25 +02:00
|
|
|
--enable-libvpx
|
2009-03-10 22:03:51 +01:00
|
|
|
'';
|
|
|
|
|
2010-06-25 00:55:25 +02:00
|
|
|
buildInputs = [faad2 libtheora speex libvorbis x264 pkgconfig xvidcore lame yasm libvpx];
|
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
|
|
|
};
|
|
|
|
}
|