libfaad ???

Reindl Harald h.reindl at thelounge.net
Wed Mar 27 21:08:40 CET 2013



Am 27.03.2013 20:34, schrieb Alice Wonder:
> 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.
> 
> Has the AAC encoder that ffmpeg uses changed or is aac just not currently supported by the build in rpmfusion?

years ago rpmfusion crippled down the ffmpeg build

[builduser at buildserver64:~]$ cat /rpmbuild/SPECS/ffmpeg.spec
%global            _hardened_build  1
%global            debug_package    %{nil}

Summary:           Hyper fast Audio and Video encoder
Name:              ffmpeg
Version:           1.0.6
Release:           5%{?dist}
License:           GPLv3+
Group:             Applications/Multimedia
URL:               http://ffmpeg.org/
Source0:           ffmpeg-%{version}.tar.bz2
BuildRoot:         %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:     bzip2-devel
BuildRequires:     dirac-devel
BuildRequires:     faac-devel
BuildRequires:     gsm-devel
BuildRequires:     imlib2-devel
BuildRequires:     lame-devel
BuildRequires:     libtheora-devel
BuildRequires:     libva-devel
BuildRequires:     libvorbis-devel
BuildRequires:     schroedinger-devel
BuildRequires:     SDL-devel
BuildRequires:     x264-devel
BuildRequires:     xvidcore-devel
BuildRequires:     zlib-devel
BuildRequires:     opencore-amr-devel
BuildRequires:     libvpx-devel
BuildRequires:     librtmp-devel
BuildRequires:     freetype-devel
BuildRequires:     opus-devel
BuildRequires:     yasm
Requires:          sh-utils
Requires(pre):     /usr/sbin/useradd
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.

%package        libs
Summary:        Libraries for %{name}
Group:          System Environment/Libraries

%description    libs
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.
This package contains the libraries for %{name}

%package        devel
Summary:        Development package for %{name}
Group:          Development/Libraries
Requires:       %{name}-libs = %{version}-%{release}
Requires:       pkgconfig

%description    devel
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.
This package contains development files for %{name}

%prep
%setup -q -n ffmpeg-%{version}

%build
mkdir generic
pushd generic
../configure \
 --prefix=/usr \
 --bindir=/usr/bin \
 --datadir=/usr/share/ffmpeg \
 --incdir=/usr/include/ffmpeg \
 --libdir=/usr/lib64 \
 --mandir=/usr/man \
 --arch=x86_64 \
 --extra-cflags="%{optflags}" \
 --extra-version=thelounge.net \
 --enable-nonfree \
 --enable-gpl \
 --enable-version3 \
 --enable-libfaac \
 --enable-libgsm \
 --enable-libmp3lame \
 --enable-libtheora \
 --enable-libvorbis \
 --enable-libx264 \
 --enable-libxvid \
 --enable-libvpx \
 --enable-librtmp \
 --enable-libfreetype \
 --enable-libopus \
 --enable-shared \
 --enable-runtime-cpudetect \
 --disable-libopencore-amrnb \
 --disable-libopencore-amrwb \
 --disable-libopenjpeg \
 --disable-libschroedinger \
 --disable-libopencv \
 --disable-static \
 --disable-libspeex \
 --disable-vdpau \
 --disable-amd3dnow \
 --disable-amd3dnowext \
 --disable-protocol=gopher \
 --disable-debug \
 --disable-doc \
 --shlibdir=/usr/lib64
make %{?_smp_mflags}
make documentation
popd
CURRENT_DIR=`pwd`
mkdir -p %{buildroot}/usr/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}%{_bindir}/qt-faststart"
strip -s %{buildroot}/usr/bin/*
strip -s %{buildroot}/usr/lib64/lib*.so.*

%pre
/usr/sbin/useradd -M -N -g users -o -r -s /usr/bin/bash -c "ffmpeg streaming server" -u 520 ffserver >/dev/null
2>&1 || :

%post libs -p /usr/sbin/ldconfig

%postun libs -p /usr/sbin/ldconfig

%post
/bin/touch /var/log/ffserver.log
/bin/chmod 666 /var/log/ffserver.log
/bin/chown ffserver /var/log/ffserver.log

%files
%defattr(-,root,root,-)
/usr/bin/ffmpeg
/usr/bin/ffplay
/usr/bin/ffprobe
/usr/bin/ffserver
/usr/bin/qt-faststart
/usr/share/ffmpeg

%files libs
%defattr(-,root,root,-)
/usr/lib64/lib*.so.*

%files devel
%defattr(-,root,root,-)
/usr/include/ffmpeg
/usr/lib64/pkgconfig/lib*.pc
/usr/lib64/lib*.so

%changelog
* Tue Oct 09 2012 Reindl Harald <h.reindl at thelounge.net>
- cleanup SPEC

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <https://lists.rpmfusion.org/pipermail/rpmfusion-users/attachments/20130327/5fc5df2a/attachment.sig>


More information about the rpmfusion-users mailing list