--- faac-1.26.orig/debian/rules +++ faac-1.26/debian/rules @@ -0,0 +1,87 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +version := $(shell sed -n 's/Package: \(.*\)/\1/p' debian/control | head -n 1) + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +NCPUS := $(shell getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1) + +ifeq ($(NCPUS),-1) + NCPUS:=1 +endif + +ifeq ($(NCPUS),0) + NCPUS:=1 +endif + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O3 -march=armv7-a -mtune=cortex-a8 -mfpu=neon +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + $(MAKE) -j $(NCPUS) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + [ ! -f Makefile ] || $(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + + dh_install --fail-missing + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs -A README TODO NEWS + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs -p${version} -V + dh_installdeb + dh_shlibdeps -ldebian/${version}/usr/lib + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- faac-1.26.orig/debian/watch +++ faac-1.26/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://sf.net/faac/faac-(.*)\.tar\.gz --- faac-1.26.orig/debian/libfaac-dev.install +++ faac-1.26/debian/libfaac-dev.install @@ -0,0 +1,2 @@ +debian/tmp/usr/include +debian/tmp/usr/lib/libfaac.{a,la,so} --- faac-1.26.orig/debian/faac.manpages +++ faac-1.26/debian/faac.manpages @@ -0,0 +1 @@ +debian/manpages/faac.1 --- faac-1.26.orig/debian/copyright +++ faac-1.26/debian/copyright @@ -0,0 +1,12 @@ +This package was debianized by Christian Marillat on +Thu, 22 Jul 2004 15:11:42 +0200. + +It was downloaded from http://faac.sourceforge.net/index.php + +Upstream Author: See README file. + +Copyright: 2001 M. Bakker + You should have received a copy of the GNU General Public License with the + Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; if + not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth + Floor, Boston, MA 02110-1301, USA. --- faac-1.26.orig/debian/faac.install +++ faac-1.26/debian/faac.install @@ -0,0 +1 @@ +debian/tmp/usr/bin --- faac-1.26.orig/debian/compat +++ faac-1.26/debian/compat @@ -0,0 +1 @@ +5 --- faac-1.26.orig/debian/changelog +++ faac-1.26/debian/changelog @@ -0,0 +1,111 @@ +faac (1.26-0.1ubuntu2+ti0.24.9ubuntu1) maverick; urgency=low + + * Restrict compilation to armel only + + -- Nicolas Dechesne Wed, 13 Oct 2010 07:43:03 +0000 + +faac (1.26-0.1ubuntu2+ti0.24.8) maverick; urgency=low + + * Updated compiler options to enable more optimizations for OMAP + + -- Nicolas Dechesne Mon, 09 Aug 2010 14:46:31 +0200 + +faac (1.26-0.1ubuntu2) intrepid; urgency=low + + * Add manpage for faac (LP: #58012) + + -- Jean-Baptiste Lallement Sat, 26 Jul 2008 11:18:01 +0200 + +faac (1.26-0.1ubuntu1) hardy; urgency=low + + * Sync from debian-multimedia + * Ubuntu Changes: + - Maintainer Spec + - Versioned mp4v2 dep + + -- John Dong Sun, 06 Jan 2008 22:47:35 -0500 + +faac (1.26-0.1) unstable; urgency=high + + * Build without --enable-drm, now faac encoding works with ffmpeg or with + faac. + + -- Christian Marillat Tue, 13 Nov 2007 10:32:20 +0100 + +faac (1.26-0.0) unstable; urgency=low + + * New upstream release. + * Build with --enable-drm + + -- Christian Marillat Mon, 15 Oct 2007 10:22:24 +0200 + +faac (1.25-0.1) unstable; urgency=low + + * Build with --without-mp4v2 and add libmp4v2-dev in build-depends. + + -- Christian Marillat Sat, 14 Oct 2006 23:40:31 +0200 + +faac (1.25-0.0) unstable; urgency=low + + * New upstream release. + + -- Christian Marillat Wed, 6 Sep 2006 19:35:19 +0200 + +faac (1.24+cvs20060416-0.3) unstable; urgency=low + + * Add dpatch and libmp4v2-dev in Build-Depends. + * Little hack to link against libmp4v2 to add mp4 support. + + -- Christian Marillat Wed, 10 May 2006 16:22:04 +0200 + +faac (1.24+cvs20060416-0.2) unstable; urgency=low + + * The -dev package don't need to depends on libmp4-dev. + * Don't need to Build-Depends on libmp4-dev. + * Build with --without-mp4v2 + + -- Christian Marillat Mon, 8 May 2006 16:23:17 +0200 + +faac (1.24+cvs20060416-0.1) unstable; urgency=low + + * Add libmp4-dev in Build-Depends. + + -- Christian Marillat Sun, 16 Apr 2006 19:38:25 +0200 + +faac (1.24+cvs20060416-0.0) unstable; urgency=low + + * CVS release. + + -- Christian Marillat Sun, 16 Apr 2006 15:28:51 +0200 + +faac (1.24-0.4) unstable; urgency=low + + * Rebuild for gcc 4.0 + + -- Christian Marillat Sat, 16 Jul 2005 17:32:59 +0200 + +faac (1.24-0.3) unstable; urgency=low + + * Add a patch for faac to return the rigth track with --track or --disk + option, thanks to Arnaud Rouanet for the patch. + + -- Christian Marillat Mon, 7 Feb 2005 16:35:28 +0100 + +faac (1.24-0.2) unstable; urgency=low + + * The -dev package need to depends on libmp4-dev. + + -- Christian Marillat Wed, 24 Nov 2004 17:25:41 +0100 + +faac (1.24-0.1) unstable; urgency=low + + * Add mp4 support. + + -- Christian Marillat Sun, 31 Oct 2004 17:45:32 +0100 + +faac (1.24-0.0) unstable; urgency=low + + * Initial Release. + + -- Christian Marillat Thu, 22 Jul 2004 15:11:42 +0200 + --- faac-1.26.orig/debian/libfaac0.install +++ faac-1.26/debian/libfaac0.install @@ -0,0 +1,3 @@ +debian/tmp/usr/lib/libfaac.so.0 +debian/tmp/usr/lib/libfaac.so.0.0.0 + --- faac-1.26.orig/debian/control +++ faac-1.26/debian/control @@ -0,0 +1,40 @@ +Source: faac +Section: sound +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Christian Marillat +Bugs: mailto:marillat@debian.org +Standards-Version: 3.7.2 +Build-Depends: debhelper (>= 5), libmp4v2-dev (>= 1:1.6-0.1) + +Package: libfaac0 +Architecture: armel +Section: libs +Depends: ${shlibs:Depends} +Description: an AAC audio encoder - library files + FAAC currently supports MPEG-4 LTP, MAIN and LOW COMPLEXITY object types + and MAIN and LOW MPEG-2 object types. It also supports multichannel and + gapless encoding. + . + Homepage: http://www.audiocoding.com/ + +Package: libfaac-dev +Architecture: armel +Section: libdevel +Depends: libfaac0 (>= ${source:Version}) +Description: an AAC audio encoder - devel files + FAAC currently supports MPEG-4 LTP, MAIN and LOW COMPLEXITY object types + and MAIN and LOW MPEG-2 object types. It also supports multichannel and + gapless encoding. + . + Homepage: http://www.audiocoding.com/ + +Package: faac +Architecture: armel +Depends: ${shlibs:Depends} +Description: an AAC audio encoder + FAAC currently supports MPEG-4 LTP, MAIN and LOW COMPLEXITY object types + and MAIN and LOW MPEG-2 object types. It also supports multichannel and + gapless encoding. + . + Homepage: http://www.audiocoding.com/ --- faac-1.26.orig/debian/manpages/faac.1 +++ faac-1.26/debian/manpages/faac.1 @@ -0,0 +1,239 @@ +.\" vim:syn=groff: +.\" Man page for FAAC +.TH FAAC 1 "2007-03-27" "" "FAAC Manual" +. +.SH NAME +faac \- encode audio to the MPEG-2/-4 AAC format +. +.SH SYNOPSIS +faac [options] [-o outfile] infiles ... +. +.SH DESCRIPTION +.PP +FAAC is a free AAC audio encoder that can compress WAV and raw PCM audio +files. AAC is commonly used as the primary format in the Apple iPod and +iTunes, although several other software and hardware implementations exist +that can play back AAC files such as FAAD2 and FFmpeg. +. +.SH OPTIONS +.SS "Quality-related options" +. +.TP +.BI -q " quality" +Set the default variable bitrate (VBR) quantizer quality in percent. Default +is 100 which is approximately 120 kbps VBR for a normal stereo 16-bit 44.1 kHz +input. Min value 10, max value 500. +. +.TP +.BI -b " bitrate" +Set the average bitrate (ABR) to approximately +.I bitrate +kbps. +. +.TP +.BI -c " freq" +Set the bandwidth in Hz. By default, FAAC will automatically adapt the +maximum value to the input sample rate. +. +.PP +.SS "Input/Output options" +. +.TP +.B - +Use stdin as input file. +. +.TP +.BI -o " outfile" +Set the output file to +.I outfile +; you can use a dash (\*(lq-\*(rq) to specify stdout as the output file. +. +.TP +.B -P +Enable raw PCM input mode. By default, this is not enabled and FAAC expects +a WAV file as input. Using this option will use the default values for \fB-R\fR, +\fB-B\fR, and \fB-C\fR unless otherwise modified. +. +.TP +.BI -R " rate" +Set the raw PCM input sample rate to \fIrate\fR Hz. Default is 44100, max is 96000. +. +.TP +.BI -B " bitsize" +Set the raw PCM input sample size to \fIbitsize\fR +bits. Default is 16, other available sizes are 8, 24, and 32. Input is +assumed to be big endian unless otherwise specified with +.B -X +. +.TP +.B -X +Change raw PCM input byte order from big endian to little endian. +. +.TP +.BI -C " channels" +Set the raw PCM input channel count. Default is 2 (stereo), max is 33 + 1 LFE. +. +.TP +.BI -I " centre[,lfe]" +Set the raw PCM input multichannel configuration. +.I centre +specifies which channel is the centre channel (default 3), and +.I lfe +specifies which channel is the LFE channel (default 4). +. +.TP +.B -r +Output file as raw AAC data (i.e. without ADTS headers). +. +.PP +.SS "MP4-specific options" +. +.TP +.B -w +Wrap AAC data in an MP4 container. This is enabled by default for output +files with the extensions .mp4 and .m4a. +. +.TP +.BI --artist " artist" +Set artist to +.I artist +. +.TP +.BI --writer " writer" +Set writer to +.I writer +. +.TP +.BI --title " title" +Set title to +.I title +. +.TP +.BI --genre " genre" +Set genre to +.I genre +. +.TP +.BI --album " album" +Set album to +.I album +. +.TP +.B --compilation +Set compilation +. +.TP +.BI --track " track" +Set track to \fItrack\fR in the format \*(lqnumber/total\*(rq +. +.TP +.BI --disc " disc" +Set disc to +.I disc +in the format \*(lqnumber/total\*(rq +. +.TP +.BI --year " year" +Set year to +.I year +. +.TP +.BI --cover-art " file" +Set cover art to image in \fIfile\fR; supported formats are GIF, JPEG, and PNG. +. +.TP +.BI --comment " comment" +Set comment to +.I comment +. +.PP +.SS "Expert options" +. +.TP +.B --no-tns +Disable temporal noise shaping coding. +. +.TP +.B --no-midside +Disable mid/side coding. +. +.TP +.BI --mpeg-vers " version" +Set the AAC MPEG version to either 2 or 4. +. +.TP +.BI --obj-type " type" +Set the AAC object type to LC (Low Complexity, default), Main, or LTP +(Long Term Prediction). +. +.TP +.BI --shortctl " type" +Force block type of short (1), long (2), or both (by default). +. +.SH CONFORMING TO +FAAC conforms to \fIISO/IEC 14496\fR (MPEG-4) in parts 1 (Systems), 3 (Audio), +and 14 (MPEG-4 File Format), as well as \fIISO/IEC 13818\fR (MPEG-2) part 7 +(Advanced Audio Coding). Not all audio profiles/codecs are supported, but the +most common (LC-AAC, or Low Complexity) is supported fully. +. +.SH BUGS +Any bugs should be posted on +. +.SH AUTHORS +FAAC was written by Menno Bakker and Krzysztof Nikiel, and it is based on the +ISO/IEC 14496-5 reference encoder. +.br +This man page written by Matt Sicker for use in the Debian +and Ubuntu operating system distributions but may be modified and redistributed +by anyone else for any reason provided this notice is preserved. +. +.SH COPYRIGHT +FAAC is Copyright (c) 1999-2001 Menno Bakker, and Copyright (c) 2002-2003 +Krzysztof Nikiel. You may redistribute, modify, etc., it under the terms +of the GNU Lesser General Public License version 2.1 or any later version +published by the Free Software Foundation. +.PP +The original ISO/IEC 14496-5 source code is licensed as follows: +.RS +This software module was originally developed by + +FirstName LastName (CompanyName) + +and edited by + +FirstName LastName (CompanyName) +FirstName LastName (CompanyName) + +in the course of development of the MPEG-2 NBC/MPEG-4 Audio standard +ISO/IEC 13818-7, 14496-1,2 and 3. This software module is an +implementation of a part of one or more MPEG-2 NBC/MPEG-4 Audio tools +as specified by the MPEG-2 NBC/MPEG-4 Audio standard. ISO/IEC gives +users of the MPEG-2 NBC/MPEG-4 Audio standards free license to this +software module or modifications thereof for use in hardware or +software products claiming conformance to the MPEG-2 NBC/ MPEG-4 Audio +standards. Those intending to use this software module in hardware or +software products are advised that this use may infringe existing +patents. The original developer of this software module and his/her +company, the subsequent editors and their companies, and ISO/IEC have +no liability for use of this software module or modifications thereof +in an implementation. Copyright is not released for non MPEG-2 +NBC/MPEG-4 Audio conforming products. The original developer retains +full right to use the code for his/her own purpose, assign or donate +the code to a third party and to inhibit third party from using the +code for non MPEG-2 NBC/MPEG-4 Audio conforming products. This +copyright notice must be included in all copies or derivative works. + +Copyright (c) 1997. +.RE +.PP +Please also note that in certain jurisdictions, the AAC standard may be +covered by software patents. This program is not distributed with any +warranty or indemnity from patent royalties and as such should be looked +into by oneself if one wishes to modify or redistribute FAAC. +. +.SH SEE ALSO +.BR faad (1) , +.BR ffmpeg (1) , +.BR sox (1) +.br + AudioCoding.com home page --- faac-1.26.orig/debian/patches/02_filter_pv.c.dpatch +++ faac-1.26/debian/patches/02_filter_pv.c.dpatch @@ -0,0 +1,28 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_filter_pv.c.dpatch by Christian Marillat +## +## All lines beginning with ## DP:' are a description of the patch. +## DP: Replace xterm by x-terminal-emulator. + +@DPATCH@ + +--- transcode-1.0.0.orig/filter/preview/filter_pv.c.orig 2003-01-31 16:11:26.000000000 +0100 ++++ transcode-1.0.0/filter/preview/filter_pv.c 2003-01-31 16:11:49.000000000 +0100 +@@ -420,7 +420,7 @@ + + // build commandline + snprintf (buf, 1024, +- "xterm -title \"Transcode Filter select\" -e %s/filter_list.awk %s %s && cat %s && rm -f %s", ++ "x-terminal-emulator -title \"Transcode Filter select\" -e %s/filter_list.awk %s %s && cat %s && rm -f %s", + vob->mod_path, vob->mod_path, tmpfile, tmpfile, tmpfile); + if ((f = popen (buf, "r")) == NULL) { + perror ("popen filter select"); +@@ -487,7 +487,7 @@ + memset (buf, 0, 1024); + + snprintf (buf, 1024, +- "xterm -title \"Transcode parameters\" -e %s/parse_csv.awk %s %s %s && cat %s && rm -f %s %s", ++ "x-terminal-emulator -title \"Transcode parameters\" -e %s/parse_csv.awk %s %s %s && cat %s && rm -f %s %s", + vob->mod_path, tmpfile, filter_name, infile, infile, tmpfile, infile); + + if ((f = popen (buf, "r")) == NULL) { --- faac-1.26.orig/debian/patches/00list +++ faac-1.26/debian/patches/00list @@ -0,0 +1,2 @@ +02_filter_pv.c +03_vob2divx.pl --- faac-1.26.orig/debian/patches/01_clamp_scale_factor.dpatch +++ faac-1.26/debian/patches/01_clamp_scale_factor.dpatch @@ -0,0 +1,25 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_clamp_scale_factor.dpatch by +## +## All lines beginning with ## DP:' are a description of the patch. +## DP: Replace xterm by x-terminal-emulator. + +@DPATCH@ + +--- faac-1.25.orig/libfaac/aacquant.c 2007-01-06 18:08:32.000000000 +0100 ++++ faac-1.25/libfaac/aacquant.c 2007-01-18 18:19:59.000000000 +0100 +@@ -142,6 +142,14 @@ static void BalanceEnergy(CoderInfo *cod + shift -= 1000; + + shift += coderInfo->scale_factor[sb]; ++ if (sb > 0) ++ { ++ int diff = shift - coderInfo->scale_factor[sb - 1]; ++ if (diff < -59) ++ shift += -59 - diff; ++ else if (diff > 60) ++ shift += 60 - diff; ++ } + coderInfo->scale_factor[sb] = shift; + } + }