Am 27.03.2013 21:31, schrieb Sérgio Basto:
On Qua, 2013-03-27 at 12:34 -0700, Alice Wonder wrote:
> Hello list,
>
> Many moons ago I use to use ffmpeg linked against libfaad to create .mp4
> files using h.264 and aac.
>
> It has been years, but now I need to do it again. It seems though that
> the ffmpeg in rpmfusion is not linked against libfaad nor is libfaad
> even in the repos.
repoquery -q \*faad\* --nvr
faad2-2.7-2.fc17
faad2-devel-2.7-2.fc17
faad2-devel-2.7-2.fc17
faad2-libs-2.7-2.fc17
faad2-libs-2.7-2.fc17
xmms-faad2-2.7-2.fc17
xmms2-faad-0.8-6.fc18
yes you need them to build a working ffmpeg
but the rpmfusion build of ffmpeg is crap
i switched months ago to my own static x264/ffmpeg build
which is completly independent to avoid package conflicts
while have the latest versions useable
_____________________________________________________________________
[builduser@buildserver64:~]$ cat /rpmbuild/SPECS/x264-latest.spec
%global _hardened_build 1
%global debug_package %{nil}
%global snapshot 20130322
Summary: H264/AVC video streams encoder
Name: x264-latest
Version: 0.130.2274
Release: 5%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL:
http://developers.videolan.org/x264.html
Source0: x264-%{snapshot}.tar.bz2
Source1: x264-snapshot-latest.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
BuildRequires: yasm
%description
x264 is a free library for encoding H264/AVC video streams, written from scratch
%prep
%setup -q -n x264-%{snapshot}
%build
./configure \
--host=x86_64-redhat-linux \
--prefix=/usr/local \
--exec-prefix=/usr/local \
--bindir=/usr/local/bin \
--libdir=/usr/local/lib64 \
--includedir=/usr/local/include \
--extra-cflags="%{optflags}" \
--disable-avs \
--disable-swscale \
--disable-lavf \
--disable-ffms \
--disable-gpac \
--enable-strip \
--enable-static
%{__make} %{?_smp_mflags}
%install
%{__make} DESTDIR=%{buildroot} install
rm -rf %{buildroot}/usr/local/bin/
rm -rf %{buildroot}/usr/local/lib64/pkgconfig/x264.pc
mkdir %{buildroot}/usr/local/x264/
mv %{buildroot}/usr/local/lib64/libx264.a %{buildroot}/usr/local/x264/
mv %{buildroot}/usr/local/include/x264.h %{buildroot}/usr/local/x264/
mv %{buildroot}/usr/local/include/x264_config.h %{buildroot}/usr/local/x264/
strip -g -S -d --strip-debug --strip-unneeded %{buildroot}/usr/local/x264/libx264.a
%files
/usr/local/x264/libx264.a
/usr/local/x264/x264.h
/usr/local/x264/x264_config.h
%changelog
* Fri Oct 12 2012 Reindl Harald <h.reindl(a)thelounge.net>
- static snapshot-build
- used for ffmpeg-latest (also static)
_____________________________________________________________________
[builduser@buildserver64:~]$ cat /rpmbuild/SPECS/ffmpeg-latest.spec
%global _hardened_build 1
%global debug_package %{nil}
Summary: Hyper fast Audio and Video encoder
Name: ffmpeg-latest
Version: 1.2
Release: 7%{?dist}
License: GPLv3+
Group: Applications/Multimedia
URL:
http://ffmpeg.org/
Source0: ffmpeg-%{version}.tar.bz2
Source1: ffmpeg-snapshot-latest.sh
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: bzip2-devel
BuildRequires: dirac-devel
BuildRequires: faac-devel
BuildRequires: imlib2-devel
BuildRequires: lame-devel
BuildRequires: libtheora-devel
BuildRequires: libvorbis-devel
BuildRequires: SDL-devel
BuildRequires: x264-latest
BuildRequires: xvidcore-devel
BuildRequires: zlib-devel
BuildRequires: libvpx-devel
BuildRequires: librtmp-devel
BuildRequires: freetype-devel
BuildRequires: yasm
Requires: sh-utils
Requires(preun): systemd-units
Requires(postun): systemd-units
%description
FFMpeg is a complete and free Internet live audio and video
broadcasting solution for Linux/Unix. It also includes a digital
VCR. It can encode in real time in many formats including MPEG1 audio
and video, MPEG4, h263, ac3, asf, avi, real, mjpeg, and flash
%prep
%setup -q -n ffmpeg-%{version}
%build
mkdir generic
pushd generic
../configure \
--prefix=/usr/local \
--bindir=/usr/local/bin \
--datadir=/usr/local/share/ffmpeg \
--incdir=/usr/local/include/ffmpeg \
--libdir=/usr/local/lib64 \
--mandir=/usr/local/man \
--arch=x86_64 \
--extra-cflags="-I/usr/local/x264 %{optflags}" \
--extra-ldflags="-I/usr/local/x264 -L/usr/local/x264" \
--extra-version=thelounge.net \
--enable-nonfree \
--enable-gpl \
--enable-version3 \
--enable-libfaac \
--enable-libmp3lame \
--enable-libtheora \
--enable-libvorbis \
--enable-libx264 \
--enable-libxvid \
--enable-libvpx \
--enable-static \
--enable-runtime-cpudetect \
--enable-vaapi \
--disable-shared \
--disable-libspeex \
--disable-libopencore-amrnb \
--disable-libopencore-amrwb \
--disable-libopenjpeg \
--disable-libopencv \
--disable-libschroedinger \
--disable-libgsm \
--disable-librtmp \
--disable-libopus \
--disable-libfreetype \
--disable-vaapi \
--disable-vdpau \
--disable-libdc1394 \
--disable-devices \
--disable-amd3dnow \
--disable-amd3dnowext \
--disable-protocol=gopher \
--disable-ffserver \
--disable-ffplay \
--disable-ffprobe \
--disable-avdevice \
--disable-debug \
--disable-htmlpages \
--disable-podpages \
--disable-txtpages \
--shlibdir=/usr/local/lib64
make %{?_smp_mflags}
make documentation
popd
CURRENT_DIR=`pwd`
mkdir -p %{buildroot}/usr/local/bin/
gcc $CURRENT_DIR/tools/qt-faststart.c -o qt-faststart
%install
pushd generic
make install DESTDIR=%{buildroot}
popd
install -D -m0755 qt-faststart "%{buildroot}/usr/local/bin/qt-faststart"
rm -rf %{buildroot}/usr/local/include/ffmpeg/
rm -rf %{buildroot}/usr/local/lib64/
rm -rf %{buildroot}/usr/local/share/ffmpeg
strip -s %{buildroot}/usr/local/bin/qt-faststart
strip -s %{buildroot}/usr/local/bin/ffmpeg
%files
%defattr(-,root,root,-)
/usr/local/bin/ffmpeg
/usr/local/bin/qt-faststart
/usr/local/man/man1/*
%changelog
* Tue Dec 04 2012 Reindl Harald <h.reindl(a)thelounge.net>
- update to 1.0.1