2010-06-24 15:55:25 -07:00
|
|
|
{stdenv, fetchurl, faad2, libtheora, speex, libvorbis, x264, pkgconfig, xvidcore, lame, yasm
|
|
|
|
, libvpx}:
|
2006-06-29 05:41:25 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2010-06-24 15:55:25 -07:00
|
|
|
name = "ffmpeg-0.6";
|
2009-03-10 14:03:51 -07:00
|
|
|
|
2006-06-29 05:41:25 -07:00
|
|
|
src = fetchurl {
|
2010-06-24 15:55:25 -07:00
|
|
|
url = http://www.ffmpeg.org/releases/ffmpeg-0.6.tar.bz2;
|
|
|
|
sha256 = "08419kg2i8j7x4mb3vm6a73fdszivj6lzh7lypxby30gfnkblc37";
|
2009-03-10 14:03:51 -07: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 15:45:27 -07:00
|
|
|
--enable-libfaad
|
2009-04-22 12:20:27 -07:00
|
|
|
--enable-shared
|
2010-04-14 02:45:22 -07:00
|
|
|
--enable-libtheora
|
|
|
|
--enable-libvorbis
|
|
|
|
--enable-libspeex
|
2010-04-30 01:33:47 -07:00
|
|
|
--enable-libx264
|
2010-04-30 14:47:09 -07:00
|
|
|
--enable-libxvid
|
2010-05-25 11:39:24 -07:00
|
|
|
--enable-libmp3lame
|
|
|
|
--enable-runtime-cpudetect
|
2010-06-24 15:55:25 -07:00
|
|
|
--enable-libvpx
|
2009-03-10 14:03:51 -07:00
|
|
|
'';
|
|
|
|
|
2010-06-24 15:55:25 -07:00
|
|
|
buildInputs = [faad2 libtheora speex libvorbis x264 pkgconfig xvidcore lame yasm libvpx];
|
2009-03-10 15:45:27 -07:00
|
|
|
|
2009-03-10 14:03:51 -07:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.ffmpeg.org/;
|
|
|
|
description = "A complete, cross-platform solution to record, convert and stream audio and video";
|
2006-06-29 05:41:25 -07:00
|
|
|
};
|
|
|
|
}
|