debian/0000755000000000000000000000000012313744332007170 5ustar debian/handbrake.manpages0000644000000000000000000000002312254224721012616 0ustar debian/handbrake.1 debian/handbrake-cli.install0000644000000000000000000000002512254224721013240 0ustar usr/bin/HandBrakeCLI debian/copyright0000644000000000000000000000462312254224721011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: HandBrake Upstream-Contact: https://forum.handbrake.fr/ Source: http://handbrake.fr/ Files: * Copyright: 2007-2008 by the HandBrake team 2008-2011, John Stebbins 2005-2006, Michael Niedermayer 2003, Daniel Moreno 2004, Kay Sievers License: GPL-2+ Files: gtk/src/ghbcompositor.* Copyright: 1995-1997, Peter Mattis, Spencer Kimball and Josh MacDonald License: LGPL-2+ Files: gtk/src/ghbcellrenderertext.* Copyright: 2000, Red Hat, Inc., Jonathan Blandford License: LGPL-2+ Files: debian/* Copyright: © 2008-2012, Christian Marillat © 2012, Rogério Theodoro de Brito License: GPL-2+ License: GPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". License: LGPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in "/usr/share/common-licenses/LGPL-2". debian/handbrake.install0000644000000000000000000000002612254224721012474 0ustar usr/bin/ghb usr/share debian/changelog0000644000000000000000000003762212313744332011054 0ustar handbrake (0.9.9+dfsg-2~2.gbpa4c3e9build1) trusty; urgency=medium * No-change rebuild for x264 soname bump. -- Matthias Klose Mon, 24 Mar 2014 05:55:38 +0000 handbrake (0.9.9+dfsg-2~2.gbpa4c3e9) unstable; urgency=low * Make handbrake-dbg architecture field match the other packages * Bump standards-version to 3.9.5 * Use canonical vcs fields -- Jackson Doak Wed, 18 Dec 2013 16:07:47 +1100 handbrake (0.9.9+dfsg-1~2.gbpa4c3e9) unstable; urgency=low [ Rogério Brito ] ** SNAPSHOT build @a4c3e9848f6d67c89e3775f1f40d2704a425c54e ** * Remove gitignore to avoid conflicts with merges from upstream. * Imported Upstream version 0.9.9 * Imported Upstream version 0.9.9+dfsg * debian/patches: Refresh all patches. * debian/control: + Fix order of build-depends. + Remove build-dep on wget. * debian/patches: Add patch to prepare compilation with gstreamer 1.x. * debian/control: + Change (build-)deps to gstreamer 1.x. + Add recommends on gstreamer1.0-{pulseaudio,alsa}. + Add authorship to patch 'use older libmkv'. + Remove many patches unreferenced in the series file. [ Reinhard Tartler ] * Upload to unstable * Do not require neither curl nor wget in the build environment. -- Reinhard Tartler Tue, 26 Nov 2013 21:30:07 -0500 handbrake (0.9.8+dfsg2+git0b44ec-2) experimental; urgency=low The changelog entry for -1 was incomplete and has been merged into -2. [ Paul Gevers ] * New upstream releases with fixes for: - crash while scanning dvd features (upstream svn r4605, closes: #691067) - Fixes compilation against libav9 (closes: #701039) * Patches applied upstream or obsolete: - 0001-libhb-Fix-erroneous-memcpy-used-with-overlapping-mem.patch - 0002-Fix-include-with-the-system-s-libav.patch - 0007-Fix-for-compilation-with-Debian-s-libbluray.patch - 0013-format-security.patch - Refreshed other patches * debian/control: Make some build-dependencies more explicit * Add libavresample-dev to build dep and version the one on libavutil-dev [ Fabian Greffrath ] * Fix FTBFS on hurd-i386, thanks Pino Toscano (Closes: #693012). * Add a debian/TODO file to attract potential contributors. ;) * Rename handbrake-gtk to handbrake. * Remove misleading reference to non-existant Info page for handbrake-cli, thanks Helge Kreutzmann (Closes: #696471). [ Reinhard Tartler ] * add/update patches to allow compilation with unpatched system libraries: - 0014-Use-unpatched-a52.patch to unbreak - 0017-fixup-libmkv.patch * use bzip2 compression * upload to experimental -- Reinhard Tartler Sat, 16 Mar 2013 17:07:54 +0100 handbrake (0.9.8+dfsg1-2) experimental; urgency=low [ Dmitry Smirnov ] * adding handbrake-dbg package * adding man pages * libdvdread4 (>= 4.2.0+20120521-3) to Recommends: * removing ccache (obsolete) from Build-depends [ Fabian Greffrath ] * Versioned recommends are moot, use versioned Breaks instead. [ Reinhard Tartler ] * Fix version numbering. The git snapshot id really needs to be part of the upstream version. I'm leaving that out for now to avoid having to reroll a new tarball, we'll handle it properly on the next upstream version. -- Reinhard Tartler Sun, 21 Oct 2012 18:28:51 +0200 handbrake (0.9.8+dfsg1-1~19.gbpc8b9ba) experimental; urgency=low * Team upload. [ Rogério Brito ] * Note: This is an almost complete rework of the packaging included in previous iterations of handbrake. This changelog reflects only a fraction of the work that went into make it suitable for Debian and involved the work of many people. For the complete list of changes, we kindly refer you to the git repository for all the details. * Many janitorial fixes to the packaging, including: + Force bug reporting to go Debian's BTS. + Convert the package to format 3.0 (quilt). + Add me as Maintainer. + Add Reinhard Tartler to Uploaders. + Install upstream's changelog. + Add DEP-3 metadata to patches. + First approximation of a DEP-5-like format. + Use max xz compression with 'extreme' strategy for debs. + Add versioned pre-depends on dpkg for xz compression. * Mark patches that were forwarded upstream. * Fix build-dependencies/compilation fixes: + Include libdbus-glib-1-dev, libgtk-2.0-dev. + Remove unused libxvidcore-dev, libfaac-dev. + Don't use external sources for libraries that we already have in debian, by including (but not limited to): libx264-dev, libbluray-dev, libdvdnav-dev, libdvdread-dev, libmpeg2-4-dev, various components of libav. Thanks to Daniel Baumann for uploading suitable, new versions libdvd{nav,read} in time. * debian/patches: + 0001-Remove-encoding-...: Remove encoding indication from desktop file, spotted by lintian. + 0002-Fix-include-with-the-system-s-libav: Use Debian's libav instead of ffmpeg 0.7 downloaded and patched at build time. Thanks to Fabian Greffrath for the cleaner solution. + 0003-Remove-embedded-...: + 0004-Enable-compilation-on-Debian-arches...: Adapt kFreeBSD compilation patch to work with the HURD. Thanks to Pino Toscano for the review and modifications. + 0005-libhb-Fix-compilation-with-mp4v2-v1.9.1-...: + 0006-LinGUI-Allow-user-to-pass-libavcodec-settings-...: + 0007-Fix-for-compilation-with-Debian-s-libbluray: + 0008-Fix-for-compilation-with-Debian-s-libdca: + 0010-Remove-FAAC-dependency: Patch to remove use of FAAC---it is non-free and there are good enough solutions for use as substitutes. + 0011-First-try-at-removing-some-of-mp4v2: First try at removing some of mp4v2---linking mp4v2 against handbrake results in undistributable binaries, which poses a problem for Debian. * debian/patches: + Add 0014-Use-unpatched-a52.patch for use with future releases. * debian/patches: + Add 0015-use-metadata-reading-from-libav.patch to avoid using mp4v2 and, therefore, a license problem with linking MPL1.1 code. * Wrap long lines in the changelog. * debian/patches: Add patch to fix memcpy with overlapping memory regions. * Imported Upstream version 0.9.8 * debian/patches: + 0001-Remove-encoding-...: remove, applied upstream. + 0004-Enable-compilation-on-Debian-arches...: partially applied upstream, adjust. + 0006-LinGUI-Allow-user-to-pass-libavcodec-settings-...: remove, applied upstream. + 0011-First-try-at-removing-some-of-mp4v2: partially applied upstream, adjust. + 0012-FLAGS.patch: remove, applied upstream. + Refresh remaining patches. + 0016-...: Use unpatched libmkv for the moment. * debian/rules: Simplify, after changes accepted upstream. [ Andres Mejia ] * Change Priority to optional. * Add myself to Uploaders field. * Add default gbp options to enable pristine-tar. [ Reinhard Tartler ] * fix my email address * Upload to experimental * Remove ccache diversion * Prune the following subdirectories from the upstream tarball: - contrib/ - download/ - macosx/ - win/ [ Fabian Greffrath ] * Bring master branch back to pristine upstream branch + patches * Add versions to build-dependencies on libdvdnav-dev and libdvdread-dev. * Consider CFLAGS, CPPFLAGS and LDFLAGS in libhb build and fix format string security errors. * Filter optimization and debug flags out of dpkg-buildflags. * Fix lintian warnings WRT debian/changelog. * Some cosmetic changes to debian/control. * Simplify debian/patches/0003-Remove-embedded-downloaded-....patch * Set LDFLAGS in debian/rules instead of hard-coding them. * Simplify debian/handbrake-gtk.install. * Improvements to 0010-Remove-FAAC-dependency.patch: * Get rid of libmp4v2 and thus MP4 muxing and fall back to MKV instead. * Mention in the package description that we have ripped out libfaac and libmp4v2. * Add some copyright holders and LGPL-licensed files to debian/copyright. * Add debian/README.source with instructions and reasons to repackage the source tarball when handbrake gets eventually uploaded to Debian. * Add myself to Uploaders. -- Reinhard Tartler Sun, 30 Sep 2012 18:19:41 +0200 handbrake (0.9.6-0.1) unstable; urgency=low * Rebuild against libx264-122. * Move to debhelper 9 and add a new patch 04_format-security to fix the build with hardened flags. -- Christian Marillat Sat, 17 Mar 2012 17:17:22 +0100 handbrake (0.9.6-0.0) unstable; urgency=low * New upstream release. -- Christian Marillat Wed, 29 Feb 2012 08:44:28 +0100 handbrake (0.9.5-0.10) unstable; urgency=low * Rebuild against libx264-120. -- Christian Marillat Wed, 25 Jan 2012 11:07:21 +0100 handbrake (0.9.5-0.9) unstable; urgency=low * New patch 04_use-TEMP from git to use TEMP or TEMPDIR environment variables for location of tmp directory. Falls back to /tmp if neither are set (Thanks to martin f krafft for the bug report). -- Christian Marillat Sat, 05 Nov 2011 11:18:16 +0100 handbrake (0.9.5-0.8) unstable; urgency=low * Rebuild against external libmp4v2-1. -- Christian Marillat Tue, 18 Oct 2011 09:23:29 +0200 handbrake (0.9.5-0.7) unstable; urgency=low * Rebuild against libx264-118. -- Christian Marillat Mon, 26 Sep 2011 08:16:41 +0200 handbrake (0.9.5-0.6) unstable; urgency=low * Rebuild against linotify4. -- Christian Marillat Sat, 06 Aug 2011 18:26:31 +0200 handbrake (0.9.5-0.5) unstable; urgency=low * Rebuild against libx264-116. -- Christian Marillat Wed, 13 Jul 2011 16:57:03 +0200 handbrake (0.9.5-0.4) unstable; urgency=low * Rebuild against libx264-115. * Remove libhal-storage-dev from Build-depends. * Add a mpeg2 patch from upstream to fix a gcc 4.6 bug. -- Christian Marillat Thu, 02 Jun 2011 10:02:39 +0200 handbrake (0.9.5-0.3) unstable; urgency=low * Rebuild against libx264-114. * debian/control Added kfreebsd-amd64 in Architecture: field. -- Christian Marillat Sun, 06 Mar 2011 18:58:08 +0100 handbrake (0.9.5-0.2) unstable; urgency=low * Use make/variant/linux.defs instead of make/variant/freebsd.defs to build the kfreebsd package. -- Christian Marillat Sat, 29 Jan 2011 12:07:25 +0100 handbrake (0.9.5-0.1) unstable; urgency=low * Added libass-dev in Build-Depends. -- Christian Marillat Sat, 15 Jan 2011 11:17:36 +0100 handbrake (0.9.5-0.0) unstable; urgency=low * New upstream release. -- Christian Marillat Sat, 15 Jan 2011 01:18:41 +0100 handbrake (0.9.4+svn20100902-0.1) unstable; urgency=low * New upstream release. * Arch should be only amd64, i386, kfreebsd-i386 and powerpc. -- Christian Marillat Fri, 14 Jan 2011 19:44:22 +0100 handbrake (0.9.4+svn20100902-0.0) unstable; urgency=low * New svn release (3506). * Remove 02_no-mm_flags patch (Fix crash with high profile and DVD). * Build against latest x264 who add options for trellis and psy-trellis for cavlc. -- Christian Marillat Fri, 03 Sep 2010 10:09:57 +0200 handbrake (0.9.4+svn20100726-0.0) unstable; urgency=low * New svn release (3460). -- Christian Marillat Mon, 26 Jul 2010 12:07:07 +0200 handbrake (0.9.4+svn20100705-0.0) unstable; urgency=low * New svn release (3428). * Added gstreamer0.10-ffmpeg and gstreamer0.10-x in Recommends. These packages are necessary to display video preview. * As the build is fixed upstream, remove Build-Conflicts for libva-dev. -- Christian Marillat Mon, 05 Jul 2010 19:06:54 +0200 handbrake (0.9.4+svn20100624-0.0) unstable; urgency=low * New svn release (3402). * This version add a preset for iPad. -- Christian Marillat Thu, 24 Jun 2010 09:30:56 +0200 handbrake (0.9.4+svn20100613-0.0) unstable; urgency=low * New svn release (3380). * Update 04_kfreebsd patch as kfreebsd doesn't have udev. -- Christian Marillat Sun, 13 Jun 2010 12:00:03 +0200 handbrake (0.9.4+svn20100607-0.0) unstable; urgency=low * New svn release (3365). -- Christian Marillat Mon, 07 Jun 2010 11:25:39 +0200 handbrake (0.9.4+svn20100419-0.0) unstable; urgency=low * New svn release (3242). * Added support for kfreebsd-i386. -- Christian Marillat Mon, 19 Apr 2010 15:18:58 +0200 handbrake (0.9.4+svn20100314-0.0) unstable; urgency=low * New svn release (3167). -- Christian Marillat Sun, 14 Mar 2010 12:54:53 +0100 handbrake (0.9.4+svn20100208-0.2) unstable; urgency=low * Fix handbrake version number. -- Christian Marillat Sat, 13 Mar 2010 16:10:48 +0100 handbrake (0.9.4+svn20100208-0.1) unstable; urgency=low * Fix the build for powerpc. -- Christian Marillat Sun, 21 Feb 2010 14:59:30 +0100 handbrake (0.9.4+svn20100208-0.0) unstable; urgency=low * New svn release (3104). -- Christian Marillat Mon, 08 Feb 2010 19:07:33 +0100 handbrake (0.9.4-0.1) unstable; urgency=low * Build included ffmpeg with ccache. -- Christian Marillat Thu, 26 Nov 2009 00:14:46 +0100 handbrake (0.9.4-0.0) unstable; urgency=low * New usptream release. -- Christian Marillat Wed, 25 Nov 2009 23:37:58 +0100 handbrake (0.9.3+svn20091021-0.0) unstable; urgency=low * New svn release (2893). * rebuild against libx264-78. -- Christian Marillat Wed, 21 Oct 2009 20:12:46 +0200 handbrake (0.9.3+svn20091012-0.0) unstable; urgency=low * New svn release (2877). -- Christian Marillat Mon, 12 Oct 2009 11:40:28 +0200 handbrake (0.9.3+svn2773-0.2) unstable; urgency=low * Rebuild against libx264-76. -- Christian Marillat Tue, 06 Oct 2009 11:21:37 +0200 handbrake (0.9.3+svn2773-0.1) unstable; urgency=low * Rebuild against latest libfaad-dev package. -- Christian Marillat Sat, 19 Sep 2009 15:11:05 +0200 handbrake (0.9.3+svn2773-0.0) unstable; urgency=low * Svn release, the unstable package doesn't work with the latest libgtk2.0-0 package (2.16.6-1). -- Christian Marillat Sun, 13 Sep 2009 17:14:08 +0200 handbrake (0.9.3-0.5) unstable; urgency=low * debian/rules remove call to dh_desktop. -- Christian Marillat Mon, 11 May 2009 20:50:08 +0200 handbrake (0.9.3-0.4) unstable; urgency=low * Remove a call to svn and remove subversion from Build-Depends. * Fix build for mipsel and sparc. -- Christian Marillat Mon, 11 May 2009 19:56:52 +0200 handbrake (0.9.3-0.3) unstable; urgency=low * Added support for ccache. * make the build more verbose. * In some arch (armel) the mm_flags function doesn't exist, so do a patch to not use this function when we build for armel. -- Christian Marillat Sun, 10 May 2009 22:05:57 +0200 handbrake (0.9.3-0.2) unstable; urgency=low * Build against the latest libdvdread-dev. * New patch 03_libdvdread4 to fix build with libdvdread4. -- Christian Marillat Sat, 07 Mar 2009 12:38:03 +0100 handbrake (0.9.3-0.1) unstable; urgency=low * Don't Build-Depends on libgtk2.0-dev, libgtkhtml3.14-dev already depends on that package. * Add call for dh_icons and dh_desktop for handbrake-gtk package. * Add a symlink handbrake-gtk -> ghb -- Christian Marillat Thu, 15 Jan 2009 16:01:39 +0100 handbrake (0.9.3-0.0) unstable; urgency=low * Initial release. * Added copyright from Ubuntu. -- Christian Marillat Sat, 13 Dec 2008 18:00:44 +0100 debian/clean0000644000000000000000000000033212254224721010172 0ustar gtk/Makefile.in gtk/aclocal.m4 gtk/compile gtk/config.guess gtk/config.h.in gtk/config.sub gtk/configure gtk/depcomp gtk/install-sh gtk/ltmain.sh gtk/missing gtk/mkinstalldirs gtk/po/Makefile.in.in gtk/src/Makefile.in debian/HandBrakeCLI.10000644000000000000000000003043612254224721011426 0ustar .\" This file was generated by help2man 1.40.10 and edited by Dmitry Smirnov .TH HANDBRAKECLI: "1" "October 2012" "HandBrakeCLI 0.9.8" "User Commands" .SH NAME HandBrakeCLI \- versatile DVD ripper and video transcoder (command line) .SH DESCRIPTION Syntax: HandBrakeCLI [options] \fB\-i\fR \fB\-o\fR .SS ### General Handbrake Options .TP \fB\-h\fR, \fB\-\-help\fR Print help .TP \fB\-u\fR, \fB\-\-update\fR Check for updates and exit .TP \fB\-v\fR, \fB\-\-verbose\fR <#> Be verbose (optional argument: logging level) .TP \fB\-Z\fR. \fB\-\-preset\fR Use a built\-in preset. Capitalization matters, and if the preset name has spaces, surround it with double quotation marks .TP \fB\-z\fR, \fB\-\-preset\-list\fR See a list of available built\-in presets .TP \fB\-\-no\-dvdnav\fR Do not use dvdnav for reading DVDs (experimental, enabled by default for testing) .SS ### Source Options .TP \fB\-i\fR, \fB\-\-input\fR Set input device .TP \fB\-t\fR, \fB\-\-title\fR Select a title to encode (0 to scan all titles only, default: 1) .TP \fB\-\-min\-duration\fR Set the minimum title duration (in seconds). Shorter titles will not be scanned (default: 10). .TP \fB\-\-scan\fR Scan selected title only. .TP \fB\-\-main\-feature\fR Detect and select the main feature title. .TP \fB\-c\fR, \fB\-\-chapters\fR Select chapters (e.g. "1\-3" for chapters 1 to 3, or "3" for chapter 3 only, default: all chapters) .TP \fB\-\-angle\fR Select the DVD angle .TP \fB\-\-previews\fR <#:B> Select how many preview images are generated (max 30), and whether or not they're stored to disk (0 or 1). (default: 10:0) .TP \fB\-\-start\-at\-preview\fR <#> Start encoding at a given preview. .TP \fB\-\-start\-at\fR Start encoding at a given frame, duration (in seconds), or pts (on a 90kHz clock) .TP \fB\-\-stop\-at\fR Stop encoding at a given frame, duration (in seconds), or pts (on a 90kHz clock) .SS ### Destination Options .TP \fB\-o\fR, \fB\-\-output\fR Set output file name .TP \fB\-f\fR, \fB\-\-format\fR Set output format (mp4/mkv, default: autodetected from file name) .TP \fB\-m\fR, \fB\-\-markers\fR Add chapter markers (mp4 and mkv output formats only) .TP \fB\-4\fR, \fB\-\-large\-file\fR Use 64\-bit mp4 files that can hold more than 4 GB. Note: Breaks iPod, PS3 compatibility. .TP \fB\-O\fR, \fB\-\-optimize\fR Optimize mp4 files for HTTP streaming .TP \fB\-I\fR, \fB\-\-ipod\-atom\fR Mark mp4 files so 5.5G iPods will accept them .SS ### Video Options .TP \fB\-e\fR, \fB\-\-encoder\fR Set video library encoder Options: x264 / ffmpeg4 / ffmpeg2 / theora (default: ffmpeg4) .TP \fB\-\-x264\-preset\fR When using x264, selects the x264 preset: .IP ultrafast / superfast / veryfast / faster / fast / medium / slow / slower / veryslow / placebo .TP \fB\-\-x264\-tune\fR When using x264, selects the x264 tuning: .IP film / animation / grain / stillimage / psnr / ssim / fastdecode / zerolatency .TP \fB\-x\fR, \fB\-\-encopts\fR Specify advanced encoder options in the same style as mencoder (x264 and ffmpeg only): option1=value1:option2=value2 .TP \fB\-\-x264\-profile\fR When using x264, ensures compliance with the specified h.264 profile: .IP baseline / main / high / high10 / high422 / high444 .TP \fB\-q\fR, \fB\-\-quality\fR Set video quality .TP \fB\-b\fR, \fB\-\-vb\fR Set video bitrate (default: 1000) .TP \fB\-2\fR, \fB\-\-two\-pass\fR Use two\-pass mode .TP \fB\-T\fR, \fB\-\-turbo\fR When using 2\-pass use the turbo options on the first pass to improve speed (only works with x264, affects PSNR by about 0.05dB, and increases first pass speed two to four times) .TP \fB\-r\fR, \fB\-\-rate\fR Set video framerate (5 / 10 / 12 / 15 / 23.976 / 24 / 25 / 29.97 / 30 / 50 / 59.94 / 60) Be aware that not specifying a framerate lets HandBrake preserve a source's time stamps, potentially creating variable framerate video .TP \fB\-\-vfr\fR, \fB\-\-cfr\fR, \fB\-\-pfr\fR Select variable, constant or peak\-limited frame rate control. VFR preserves the source timing. CFR makes the output constant rate at the rate given by the \fB\-r\fR flag (or the source's average rate if no \fB\-r\fR is given). PFR doesn't allow the rate to go over the rate specified with the \fB\-r\fR flag but won't change the source timing if it's below that rate. If none of these flags are given, the default is \fB\-\-cfr\fR when \fB\-r\fR is given and \fB\-\-vfr\fR otherwise .SS ### Audio Options .TP \fB\-a\fR, \fB\-\-audio\fR Select audio track(s), separated by commas ("none" for no audio, "1,2,3" for multiple tracks, default: first one). Multiple output tracks can be used for one input. .TP \fB\-E\fR, \fB\-\-aencoder\fR Audio encoder(s): faac ffaac copy:aac ffac3 copy:ac3 copy:dts copy:dtshd lame copy:mp3 vorbis ffflac copy .IP copy:* will passthrough the corresponding audio unmodified to the muxer if it is a supported passthrough audio type. Separated by commas for more than one audio track. (default: faac for mp4, lame for mkv) .TP \fB\-\-audio\-copy\-mask\fR Set audio codecs that are permitted when the "copy" audio encoder option is specified (aac/ac3/dts/dtshd/mp3, default: all). Separated by commas for multiple allowed options. .TP \fB\-\-audio\-fallback\fR Set audio codec to use when it is not possible to copy an audio track without re\-encoding. .TP \fB\-B\fR, \fB\-\-ab\fR Set audio bitrate(s) (default: depends on the selected codec, mixdown and samplerate) Separated by commas for more than one audio track. .TP \fB\-Q\fR, \fB\-\-aq\fR Set audio quality metric (default: depends on the selected codec) Separated by commas for more than one audio track. .TP \fB\-C\fR, \fB\-\-ac\fR Set audio compression metric (default: depends on the selected codec) Separated by commas for more than one audio track. .TP \fB\-6\fR, \fB\-\-mixdown\fR Format(s) for surround sound downmixing Separated by commas for more than one audio track. (mono/stereo/dpl1/dpl2/6ch, default: up to 6ch for ac3, up to dpl2 for other encoders) .TP \fB\-R\fR, \fB\-\-arate\fR Set audio samplerate(s) (22.05/24/32/44.1/48 kHz) Separated by commas for more than one audio track. .TP \fB\-D\fR, \fB\-\-drc\fR Apply extra dynamic range compression to the audio, making soft sounds louder. Range is 1.0 to 4.0 (too loud), with 1.5 \- 2.5 being a useful range. Separated by commas for more than one audio track. .TP \fB\-\-gain\fR Amplify or attenuate audio before encoding. Does NOT work with audio passthru (copy). Values are in dB. Negative values attenuate, positive values amplify. A 1 dB difference is barely audible. .TP \fB\-A\fR, \fB\-\-aname\fR Audio track name(s), Separated by commas for more than one audio track. .SS ### Picture Settings .TP \fB\-w\fR, \fB\-\-width\fR Set picture width .TP \fB\-l\fR, \fB\-\-height\fR Set picture height .TP \fB\-\-crop\fR Set cropping values (default: autocrop) .TP \fB\-\-loose\-crop\fR <#> Always crop to a multiple of the modulus Specifies the maximum number of extra pixels which may be cropped (default: 15) .TP \fB\-Y\fR, \fB\-\-maxHeight\fR <#> Set maximum height .TP \fB\-X\fR, \fB\-\-maxWidth\fR <#> Set maximum width .TP \fB\-\-strict\-anamorphic\fR Store pixel aspect ratio in video stream .TP \fB\-\-loose\-anamorphic\fR Store pixel aspect ratio with specified width .TP \fB\-\-custom\-anamorphic\fR Store pixel aspect ratio in video stream and directly control all parameters. .TP \fB\-\-display\-width\fR Set the width to scale the actual pixels to at playback, for custom anamorphic. .TP \fB\-\-keep\-display\-aspect\fR Preserve the source's display aspect ratio when using custom anamorphic .TP \fB\-\-pixel\-aspect\fR Set a custom pixel aspect for custom anamorphic (\fB\-\-display\-width\fR and \fB\-\-pixel\-aspect\fR are mutually exclusive and the former will override the latter) .TP \fB\-\-itu\-par\fR Use wider, ITU pixel aspect values for loose and custom anamorphic, useful with underscanned sources .TP \fB\-\-modulus\fR Set the number you want the scaled pixel dimensions .TP to divide cleanly by. Does not affect strict anamorphic mode, which is always mod 2 (default: 16) .TP \fB\-M\fR \fB\-\-color\-matrix\fR <601 or 709> Set the color space signaled by the output (Bt.601 is mostly for SD content, Bt.709 for HD, default: set by resolution) .SS ### Filters .TP \fB\-d\fR, \fB\-\-deinterlace\fR or Deinterlace video with yadif/mcdeint filter (default 0:\-1:\-1:1) .TP \fB\-5\fR, \fB\-\-decomb\fR Selectively deinterlaces when it detects combing (default: 7:2:6:9:80:16:16:10:20:20:4:2:50:24:1:\-1) .TP \fB\-9\fR, \fB\-\-detelecine\fR Detelecine (ivtc) video with pullup filter Note: this filter drops duplicate frames to restore the pre\-telecine framerate, unless you specify a constant framerate (\fB\-\-rate\fR 29.97) (default 1:1:4:4:0:0:\-1) .TP \fB\-8\fR, \fB\-\-denoise\fR or Denoise video with hqdn3d filter (default 4:3:6:4.5) .TP \fB\-7\fR, \fB\-\-deblock\fR Deblock video with pp7 filter (default 5:2) .TP \fB\-\-rotate\fR Flips images axes (default 3) .TP \fB\-g\fR, \fB\-\-grayscale\fR Grayscale encoding .SS ### Subtitle Options .TP \fB\-s\fR, \fB\-\-subtitle\fR Select subtitle track(s), separated by commas More than one output track can be used for one input. Example: "1,2,3" for multiple tracks. A special track name "scan" adds an extra 1st pass. This extra pass scans subtitles matching the language of the first audio or the language selected by \fB\-\-native\-language\fR. The one that's only used 10 percent of the time or less is selected. This should locate subtitles for short foreign language segments. Best used in conjunction with \fB\-\-subtitle\-forced\fR. .TP \fB\-F\fR, \fB\-\-subtitle\-forced\fR Only display subtitles from the selected stream if the subtitle has the forced flag set. The values in "string" are indexes into the subtitle list specified with '\-\-subtitle'. Separated by commas for more than one subtitle track. Example: "1,2,3" for multiple tracks. If "string" is omitted, the first track is forced. .TP \fB\-\-subtitle\-burned\fR "Burn" the selected subtitle into the video track If "number" is omitted, the first track is burned. "number" is an index into the subtitle list specified with '\-\-subtitle'. .TP \fB\-\-subtitle\-default\fR Flag the selected subtitle as the default subtitle to be displayed upon playback. Setting no default means no subtitle will be automatically displayed If "number" is omitted, the first track is default. "number" is an index into the subtitle list specified with '\-\-subtitle'. .TP \fB\-N\fR, \fB\-\-native\-language\fR Specifiy your language preference. When the first audio track does not match your native language then select the first subtitle that does. When used in conjunction with \fB\-\-native\-dub\fR the audio track is changed in preference to subtitles. Provide the language's iso639\-2 code (fre, eng, spa, dut, et cetera) .TP \fB\-\-native\-dub\fR Used in conjunction with \fB\-\-native\-language\fR requests that if no audio tracks are selected the default selected audio track will be the first one that matches the \fB\-\-native\-language\fR. If there are no matching audio tracks then the first matching subtitle track is used instead. .HP \fB\-\-srt\-file\fR SubRip SRT filename(s), separated by commas. .TP \fB\-\-srt\-codeset\fR Character codeset(s) that the SRT file(s) are encoded in, separted by commas. Use 'iconv \fB\-l\fR' for a list of valid codesets. If not specified latin1 is assumed .TP \fB\-\-srt\-offset\fR Offset in milli\-seconds to apply to the SRT file(s) separted by commas. If not specified zero is assumed. Offsets may be negative. .TP \fB\-\-srt\-lang\fR Language as an iso639\-2 code fra, eng, spa et cetera) for the SRT file(s) separated by commas. If not specified then 'und' is used. .TP \fB\-\-srt\-default\fR Flag the selected srt as the default subtitle to be displayed upon playback. Setting no default means no subtitle will be automatically displayed If "number" is omitted, the first srt is default. "number" is an 1 based index into the srt\-file list debian/TODO0000644000000000000000000000040312254224721007654 0ustar = TODO = * High priority: + Port MP4 format muxing from libmp4v2 to libavformat. * Medium priority: + Support another alternative AAC encoder, e.g. vo-aacenc. -- Fabian Greffrath Mon, 12 Nov 2012 10:13:39 +0100 debian/handbrake.10000644000000000000000000000452612254224721011177 0ustar .\" This file was generated by help2man 1.40.10 and edited by Dmitry Smirnov .TH HANDBRAKE-GTK "1" "October 2012" "handbrake 0.9.8" "User Commands" .SH NAME handbrake \- versatile DVD ripper and video transcoder .SH DESCRIPTION .SS "Usage:" .IP handbrake [OPTION...] \- Transcode media formats .SS "Help Options:" .TP \fB\-h\fR, \fB\-\-help\fR Show help options .TP \fB\-\-help\-all\fR Show all help options .TP \fB\-\-help\-gtk\fR Show GTK+ Options .TP \fB\-\-help\-gst\fR Show GStreamer Options .SS GTK+ Options .TP \fB\-\-class\fR=\fICLASS\fR Program class as used by the window manager .TP \fB\-\-name\fR=\fINAME\fR Program name as used by the window manager .TP \fB\-\-screen\fR=\fISCREEN\fR X screen to use .TP \fB\-\-sync\fR Make X calls synchronous .TP \fB\-\-gtk\-module\fR=\fIMODULES\fR Load additional GTK+ modules .TP \fB\-\-g\-fatal\-warnings\fR Make all warnings fatal .SS GStreamer Options .TP \fB\-\-gst\-version\fR Print the GStreamer version .TP \fB\-\-gst\-fatal\-warnings\fR Make all warnings fatal .TP \fB\-\-gst\-debug\-help\fR Print available debug categories and exit .TP \fB\-\-gst\-debug\-level\fR=\fILEVEL\fR Default debug level from 1 (only error) to 5 (anything) or 0 for no output .TP \fB\-\-gst\-debug\fR=\fILIST\fR Comma\-separated list of category_name:level pairs to set specific levels for the individual categories. Example: GST_AUTOPLUG:5,GST_ELEMENT_*:3 .TP \fB\-\-gst\-debug\-no\-color\fR Disable colored debugging output .TP \fB\-\-gst\-debug\-disable\fR Disable debugging .TP \fB\-\-gst\-plugin\-spew\fR Enable verbose plugin loading diagnostics .TP \fB\-\-gst\-plugin\-path\fR=\fIPATHS\fR Colon\-separated paths containing plugins .TP \fB\-\-gst\-plugin\-load\fR=\fIPLUGINS\fR Comma\-separated list of plugins to preload in addition to the list stored in environment variable GST_PLUGIN_PATH .TP \fB\-\-gst\-disable\-segtrap\fR Disable trapping of segmentation faults during plugin loading .TP \fB\-\-gst\-disable\-registry\-update\fR Disable updating the registry .TP \fB\-\-gst\-disable\-registry\-fork\fR Disable spawning a helper process while scanning the registry .SS "Application Options:" .TP \fB\-d\fR, \fB\-\-device\fR The device or file to encode .TP \fB\-p\fR, \fB\-\-preset\fR The preset values to use for encoding .TP \fB\-x\fR, \fB\-\-debug\fR Spam a lot .TP \fB\-\-display\fR=\fIDISPLAY\fR X display to use debian/compat0000644000000000000000000000000212254224721010365 0ustar 9 debian/patches/0000755000000000000000000000000012254224721010616 5ustar debian/patches/0005-libhb-Fix-compilation-with-mp4v2-v1.9.1.patch0000644000000000000000000000407212254224721021115 0ustar From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= Date: Sun, 22 Apr 2012 05:34:40 -0300 Subject: libhb: Fix compilation with mp4v2 v1.9.1. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Forwarded: no Last-Update: 2012-05-15 Reviewed-by: Rogério Theodoro de Brito Signed-off-by: Rogério Theodoro de Brito --- libhb/decmetadata.c | 4 ++-- libhb/muxmp4.c | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) --- a/libhb/decmetadata.c +++ b/libhb/decmetadata.c @@ -17,7 +17,7 @@ int result = 0; hb_deep_log( 2, "Got an MP4 input, read the metadata"); - input_file = MP4Read( title->path, 0 ); + input_file = MP4Read(title->path); if( input_file != MP4_INVALID_FILE_HANDLE ) { @@ -168,7 +168,7 @@ } } - MP4Close( input_file ); + MP4Close(input_file, 0); } return result; } --- a/libhb/muxmp4.c +++ b/libhb/muxmp4.c @@ -100,13 +100,13 @@ if (job->largeFileSize) /* Use 64-bit MP4 file */ { - m->file = MP4Create( job->file, MP4_DETAILS_ERROR, MP4_CREATE_64BIT_DATA ); + m->file = MP4Create( job->file, MP4_CREATE_64BIT_DATA ); hb_deep_log( 2, "muxmp4: using 64-bit MP4 formatting."); } else /* Limit MP4s to less than 4 GB */ { - m->file = MP4Create( job->file, MP4_DETAILS_ERROR, 0 ); + m->file = MP4Create( job->file, 0 ); } if (m->file == MP4_INVALID_FILE_HANDLE) @@ -1387,14 +1387,14 @@ MP4TagsFree( tags ); } - MP4Close( m->file ); + MP4Close( m->file, 0 ); if ( job->mp4_optimize ) { hb_log( "muxmp4: optimizing file" ); char filename[1024]; memset( filename, 0, 1024 ); snprintf( filename, 1024, "%s.tmp", job->file ); - MP4Optimize( job->file, filename, MP4_DETAILS_ERROR ); + MP4Optimize( job->file, filename ); remove( job->file ); rename( filename, job->file ); } debian/patches/0018-Fix-compilation-with-gstreamer-1.patch0000644000000000000000000000046312254224721020370 0ustar --- b/gtk/configure.ac +++ a/gtk/configure.ac @@ -96,7 +96,7 @@ pkg_gudev="gudev-1.0" ;; esac - GHB_PACKAGES="gthread-2.0 gio-2.0 libnotify dbus-glib-1 $pkg_gudev" + GHB_PACKAGES="gthread-2.0 gio-2.0 gmodule-2.0 gobject-2.0 libnotify dbus-glib-1 $pkg_gudev" mingw_flag=no ;; esac debian/patches/0004-Enable-compilation-on-Debian-arches-other-than-Linux.patch0000644000000000000000000000416412254224721024130 0ustar From: Christian Marillat Date: Tue, 15 May 2012 04:49:36 -0300 Subject: Enable compilation on Debian arches other than Linux (kFreeBSD, HURD). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit One of the main points here is that udev is present only on Linux (that is, it is the exception, not the norm). So, we check if LINUX is defined or not in the appropriate places, instead of listing every operating system that is not Windows or MacOS X. Applied-Upstream: https://github.com/HandBrake/HandBrake/commit/cd368d7e Forwarded: yes Last-Update: 2012-06-07 Reviewed-by: Rogério Theodoro de Brito Reviewed-by: Pino Toscano Signed-off-by: Rogério Theodoro de Brito --- gtk/configure.ac | 9 +++++++-- gtk/src/callbacks.c | 11 ++++++++--- libhb/ports.h | 2 +- make/include/main.defs | 5 +++++ 4 files changed, 21 insertions(+), 6 deletions(-) --- a/make/include/main.defs +++ b/make/include/main.defs @@ -92,6 +92,11 @@ MODULES += gtk endif +ifeq (1-gnu,$(FEATURE.gtk)-$(BUILD.system)) + ## build gtk when gtk+gnu + MODULES += gtk +endif + ifeq (1,$(FEATURE.local_yasm)) MODULES += contrib/yasm endif --- a/libhb/module.defs +++ b/libhb/module.defs @@ -55,6 +55,8 @@ LIBHB.GCC.args.extra.dylib++ += -Wl,--enable-auto-import -static else ifeq ($(BUILD.system),solaris) LIBHB.GCC.D += SYS_SunOS _LARGEFILE_SOURCE _FILE_OFFSET_BITS=64 +else ifeq ($(BUILD.system),gnu) + LIBHB.GCC.D += SYS_HURD _LARGEFILE_SOURCE _FILE_OFFSET_BITS=64 else LIBHB.platform.D = SYS_UNKNOWN endif --- a/libhb/ports.h +++ b/libhb/ports.h @@ -54,7 +54,7 @@ #elif defined( SYS_DARWIN ) # define HB_LOW_PRIORITY 0 # define HB_NORMAL_PRIORITY 31 -#elif defined( SYS_LINUX ) || defined( SYS_FREEBSD ) || defined ( SYS_SunOS ) || defined ( __FreeBSD_kernel__ ) +#elif defined( SYS_LINUX ) || defined( SYS_FREEBSD ) || defined ( SYS_SunOS ) || defined ( SYS_HURD ) || defined ( __FreeBSD_kernel__ ) # define HB_LOW_PRIORITY 0 # define HB_NORMAL_PRIORITY 0 #elif defined( SYS_CYGWIN ) debian/patches/0003-Remove-embedded-downloaded-copies-of-various-librari.patch0000644000000000000000000000437312254224721024322 0ustar From: Christian Marillat Date: Tue, 15 May 2012 04:48:54 -0300 Subject: Remove embedded/downloaded copies of various libraries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Once this is acceptable, this should be forwarded upstream so that the use of system libraries is an option, instead of downloading libraries and programs at build time. Forwarded: no Last-Update: 2012-05-15 Reviewed-by: Rogério Theodoro de Brito Signed-off-by: Rogério Theodoro de Brito --- gtk/src/Makefile.am | 4 ++-- make/include/main.defs | 26 +++++--------------------- test/module.defs | 10 +++------- 3 files changed, 10 insertions(+), 30 deletions(-) --- a/make/include/main.defs +++ b/make/include/main.defs @@ -19,8 +19,6 @@ AUTOTOOL_MODULES = endif -MODULES += contrib/a52dec - ifneq (,$(filter $(BUILD.system),cygwin mingw)) ifneq ($(HAS.bz2),1) MODULES += contrib/bzip2 @@ -43,24 +41,12 @@ MODULES += contrib/fdk-aac endif -MODULES += contrib/lame -MODULES += contrib/faac -MODULES += contrib/ffmpeg -MODULES += contrib/libdvdread -MODULES += contrib/libdvdnav -MODULES += contrib/libbluray -MODULES += contrib/libmkv -MODULES += contrib/mp4v2 -MODULES += contrib/mpeg2dec - ifneq (,$(filter $(BUILD.system),mingw)) ifneq ($(HAS.pthread),1) MODULES += contrib/pthreadw32 endif endif -MODULES += contrib/x264 - ifneq (,$(filter $(BUILD.system),cygwin mingw)) ifneq ($(HAS.iconv),1) MODULES += contrib/libiconv @@ -101,6 +87,11 @@ MODULES += gtk endif +ifeq (1-kfreebsd,$(FEATURE.gtk)-$(BUILD.system)) + ## build gtk when gtk+linux + MODULES += gtk +endif + ifeq (1,$(FEATURE.local_yasm)) MODULES += contrib/yasm endif --- a/test/module.defs +++ b/test/module.defs @@ -9,13 +9,11 @@ TEST.exe = $(BUILD/)$(call TARGET.exe,$(HB.name)CLI) -TEST.GCC.L = $(CONTRIB.build/)lib - TEST.libs = $(LIBHB.a) TEST.GCC.l = \ a52 ass avcodec avformat avutil avresample dvdnav dvdread faac \ - fontconfig freetype fribidi mkv mpeg2 mp3lame mp4v2 ogg \ + fontconfig freetype mkv mpeg2 mp3lame mp4v2 ogg \ samplerate swscale theoraenc theoradec vorbis vorbisenc x264 \ bluray xml2 bz2 z debian/patches/0016-use-older-libmkv.patch0000644000000000000000000000132712254224721015407 0ustar From: Rogério Brito Date: Tue Jul 31 19:07:14 2012 -0300 Subject: debian/patches: Use unpatched libmkv for the moment. This should be dropped after we have a libmkv that has the patches from `contrib/libmkv` applied. --- a/libhb/muxmkv.c +++ b/libhb/muxmkv.c @@ -293,8 +293,7 @@ { // For HE-AAC, write outputSamplingFreq too // samplingFreq is half of outputSamplingFreq - track->extra.audio.outputSamplingFreq = (float)audio->config.out.samplerate; - track->extra.audio.samplingFreq = track->extra.audio.outputSamplingFreq / 2.; + track->extra.audio.samplingFreq = audio->config.out.samplerate / 2.; } else { debian/patches/0010-Remove-FAAC-dependency.patch0000644000000000000000000001730112254224721016260 0ustar From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= Date: Wed, 6 Jun 2012 06:10:20 -0300 Subject: Remove FAAC dependency. We actually kill FAAC completely from here, while we should be ifdef'ing things (perhaps) and integrating that in upstream's configure system. With this, we depend on one fewer package of dubious license for handbrake to enter Debian. --- gtk/src/audiohandler.c | 5 +- gtk/src/ghb.ui | 8 -- gtk/src/hb-backend.c | 6 +- gtk/src/preset_xlat.c | 2 +- gtk/src/presets.c | 6 +- libhb/common.c | 20 +-- libhb/common.h | 1 - libhb/encfaac.c | 318 ------------------------------------------------ libhb/hb.c | 2 - libhb/internal.h | 1 - libhb/module.defs | 4 +- libhb/muxmkv.c | 1 - libhb/work.c | 1 - 13 files changed, 13 insertions(+), 362 deletions(-) delete mode 100644 libhb/encfaac.c --- a/gtk/src/audiohandler.c +++ b/gtk/src/audiohandler.c @@ -70,10 +70,7 @@ if (hb_audio_encoders[ii].encoder == fallback && !(hb_audio_encoders[ii].muxers & mux)) { - if ( mux == HB_MUX_MKV ) fallback = HB_ACODEC_LAME; - else - fallback = HB_ACODEC_FAAC; break; } } @@ -130,7 +127,7 @@ return HB_ACODEC_LAME; case HB_ACODEC_AAC_PASS: - return HB_ACODEC_FAAC; + return HB_ACODEC_FFAAC; case HB_ACODEC_AC3_PASS: return HB_ACODEC_AC3; --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -3767,7 +3767,7 @@ gint ghb_get_default_acodec() { - return HB_ACODEC_FAAC; + return HB_ACODEC_LAME; } static void @@ -4505,13 +4505,9 @@ { codec = HB_ACODEC_AC3; } - else if (mux == HB_MUX_MKV) - { - codec = HB_ACODEC_LAME; - } else { - codec = HB_ACODEC_FAAC; + codec = HB_ACODEC_LAME; } value = ghb_lookup_acodec_value(codec); ghb_settings_take_value(asettings, "AudioEncoder", value); @@ -4525,7 +4521,7 @@ if (codec == HB_ACODEC_VORBIS) { a_unsup = "Vorbis"; - codec = HB_ACODEC_FAAC; + codec = HB_ACODEC_LAME; } } if (a_unsup) --- a/gtk/src/preset_xlat.c +++ b/gtk/src/preset_xlat.c @@ -260,7 +260,6 @@ static value_map_t acodec_xlat[] = { - {"AAC (faac)", "faac"}, {"AC3 Passthru", "ac3"}, {"MP3 (lame)", "lame"}, {"Vorbis (vorbis)", "vorbis"}, --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -2029,8 +2029,6 @@ static value_map_t acodec_xlat_compat[] = { - {"AAC (CoreAudio)", "faac"}, - {"HE-AAC (CoreAudio)", "faac"}, {"AC3 (ffmpeg)", "ac3"}, {"AC3", "ac3"}, {"MP3 Passthru", "mp3pass"}, --- a/libhb/common.c +++ b/libhb/common.c @@ -126,7 +126,7 @@ { "AAC (CoreAudio)", "ca_aac", HB_ACODEC_CA_AAC, HB_MUX_MP4|HB_MUX_MKV }, { "HE-AAC (CoreAudio)", "ca_haac", HB_ACODEC_CA_HAAC, HB_MUX_MP4|HB_MUX_MKV }, #endif - { "AAC (faac)", "faac", HB_ACODEC_FAAC, HB_MUX_MP4|HB_MUX_MKV }, + { "AAC (faac)", "faac", HB_ACODEC_FAAC, 0 }, #ifdef USE_FDK_AAC { "AAC (FDK)", "fdk_aac", HB_ACODEC_FDK_AAC, HB_MUX_MP4|HB_MUX_MKV }, { "HE-AAC (FDK)", "fdk_haac", HB_ACODEC_FDK_HAAC, HB_MUX_MP4|HB_MUX_MKV }, @@ -754,11 +754,6 @@ (samplerate >= 22050))); break; - case HB_ACODEC_FAAC: - *low = (nchannels + lfe_count) * 32; - *high = (nchannels + lfe_count) * (192 >> sr_shift); - break; - case HB_ACODEC_FFAAC: *low = ((nchannels + lfe_count) * 32); *high = ((nchannels + lfe_count) * --- a/libhb/common.h +++ b/libhb/common.h @@ -945,7 +945,6 @@ extern hb_work_object_t hb_decavcodeca; extern hb_work_object_t hb_decavcodecv; extern hb_work_object_t hb_declpcm; -extern hb_work_object_t hb_encfaac; extern hb_work_object_t hb_enclame; extern hb_work_object_t hb_encvorbis; extern hb_work_object_t hb_muxer; --- a/libhb/encfaac.c +++ b/libhb/encfaac.c @@ -1,3 +1,4 @@ +#if 0 /* encfaac.c Copyright (c) 2003-2013 HandBrake Team @@ -287,3 +288,4 @@ return HB_WORK_OK; } +#endif /* 0 */ --- a/libhb/hb.c +++ b/libhb/hb.c @@ -487,7 +487,6 @@ hb_register( &hb_decavcodeca ); hb_register( &hb_decavcodecv ); hb_register( &hb_declpcm ); - hb_register( &hb_encfaac ); hb_register( &hb_enclame ); hb_register( &hb_encvorbis ); hb_register( &hb_muxer ); @@ -588,7 +587,6 @@ hb_register( &hb_decavcodeca ); hb_register( &hb_decavcodecv ); hb_register( &hb_declpcm ); - hb_register( &hb_encfaac ); hb_register( &hb_enclame ); hb_register( &hb_encvorbis ); hb_register( &hb_muxer ); --- a/libhb/internal.h +++ b/libhb/internal.h @@ -409,7 +409,6 @@ WORK_DECAVCODEC, WORK_DECAVCODECV, WORK_DECLPCM, - WORK_ENCFAAC, WORK_ENCLAME, WORK_ENCVORBIS, WORK_ENC_CA_AAC, --- a/libhb/module.defs +++ b/libhb/module.defs @@ -1,4 +1,4 @@ -__deps__ := A52DEC BZIP2 FAAC FFMPEG FONTCONFIG FREETYPE LAME LIBASS LIBDCA \ +__deps__ := A52DEC BZIP2 FFMPEG FONTCONFIG FREETYPE LAME LIBASS LIBDCA \ LIBDVDREAD LIBDVDNAV LIBICONV LIBMKV LIBOGG LIBSAMPLERATE LIBTHEORA LIBVORBIS LIBXML2 \ MP4V2 MPEG2DEC PTHREADW32 X264 ZLIB LIBBLURAY FDKAAC @@ -97,7 +97,7 @@ LIBHB.lib = $(LIBHB.build/)hb.lib LIBHB.dll.libs = $(foreach n, \ - a52 ass avcodec avformat avutil avresample dvdnav dvdread faac \ + a52 ass avcodec avformat avutil avresample dvdnav dvdread \ fontconfig freetype mkv mpeg2 mp3lame mp4v2 \ ogg samplerate swscale theora vorbis vorbisenc x264 xml2 bluray, \ $(CONTRIB.build/)lib/lib$(n).a ) --- a/libhb/muxmkv.c +++ b/libhb/muxmkv.c @@ -256,7 +256,6 @@ } track->codecID = MK_ACODEC_FLAC; break; - case HB_ACODEC_FAAC: case HB_ACODEC_FFAAC: case HB_ACODEC_CA_AAC: case HB_ACODEC_CA_HAAC: --- a/libhb/work.c +++ b/libhb/work.c @@ -135,7 +135,6 @@ switch (codec) { case HB_ACODEC_AC3: return hb_get_work(WORK_ENCAVCODEC_AUDIO); - case HB_ACODEC_FAAC: return hb_get_work(WORK_ENCFAAC); case HB_ACODEC_LAME: return hb_get_work(WORK_ENCLAME); case HB_ACODEC_VORBIS: return hb_get_work(WORK_ENCVORBIS); case HB_ACODEC_CA_AAC: return hb_get_work(WORK_ENC_CA_AAC); --- a/test/module.defs +++ b/test/module.defs @@ -12,7 +12,7 @@ TEST.libs = $(LIBHB.a) TEST.GCC.l = \ - a52 ass avcodec avformat avutil avresample dvdnav dvdread faac \ + a52 ass avcodec avformat avutil avresample dvdnav dvdread \ fontconfig freetype mkv mpeg2 mp3lame mp4v2 ogg \ samplerate swscale theoraenc theoradec vorbis vorbisenc x264 \ bluray xml2 bz2 z --- a/gtk/configure.ac +++ b/gtk/configure.ac @@ -203,7 +203,7 @@ ;; esac -HB_LIBS="-lhb -la52 -lmkv -lavresample -lavformat -lavcodec -lavutil -ldvdnav -ldvdread -lfaac -lmp3lame -lmpeg2 -lvorbis -lvorbisenc -logg -lsamplerate -lx264 -lmp4v2 -lswscale -ltheoraenc -ltheoradec -lz -lbz2 -lpthread -lbluray -lass -lfontconfig -lfreetype -lxml2" +HB_LIBS="-lhb -la52 -lmkv -lavresample -lavformat -lavcodec -lavutil -ldvdnav -ldvdread -lmp3lame -lmpeg2 -lvorbis -lvorbisenc -logg -lsamplerate -lx264 -lmp4v2 -lswscale -ltheoraenc -ltheoradec -lz -lbz2 -lpthread -lbluray -lass -lfontconfig -lfreetype -lxml2" if test "x$use_fdk_aac" = "xyes" ; then HB_LIBS+=" -lfdk-aac" debian/patches/0017-fixup-libmkv.patch0000644000000000000000000000065412254224721014646 0ustar Author: Reinhard Tartler Description: Allow compilation with unpatched libmkv This define was stolen from upstream's A01-hbmv-pgs.patch --- a/libhb/muxmkv.c +++ b/libhb/muxmkv.c @@ -10,6 +10,11 @@ /* libmkv header */ #include "libmkv.h" +#ifndef MK_SUBTITLE_PGS +// stolen from upstream's A01-hbmv-pgs.patch +#define MK_SUBTITLE_PGS "S_HDMV/PGS" +#endif + #include #include "hb.h" debian/patches/0019-Do-not-require-wget-or-curl.patch0000644000000000000000000000144512254224721017371 0ustar Author: Reinhard Tartler Description: Do not require neither wget nor curl to build --- a/make/configure.py +++ b/make/configure.py @@ -949,6 +949,7 @@ class SelectTool( Action ): self.name = name self.pool = pool self.kwargs = kwargs + self.selected = None def _action( self ): self.session = [] @@ -1382,7 +1383,7 @@ try: xcodebuild = ToolProbe( 'XCODEBUILD.exe', 'xcodebuild', abort=False ) lipo = ToolProbe( 'LIPO.exe', 'lipo', abort=False ) - fetch = SelectTool( 'FETCH.select', 'fetch', ['wget',wget], ['curl',curl] ) + fetch = SelectTool( 'FETCH.select', 'fetch', ['wget',wget], ['curl',curl], abort=False ) ## run tool probes for tool in ToolProbe.tools: debian/patches/0011-First-try-at-removing-some-of-mp4v2.patch0000644000000000000000000000741012254224721020662 0ustar From: =?UTF-8?q?Rog=C3=A9rio=20Brito?= Date: Thu, 7 Jun 2012 07:09:37 -0300 Subject: First try at removing some of mp4v2. Forwarded: partially (only first hunk) Signed-off-by: Rogério Brito --- a/libhb/muxmp4.c +++ b/libhb/muxmp4.c @@ -1,3 +1,4 @@ +#if 0 /* muxmp4.c Copyright (c) 2003-2013 HandBrake Team @@ -1413,3 +1414,4 @@ return m; } +#endif /* 0*/ --- a/libhb/muxcommon.c +++ b/libhb/muxcommon.c @@ -460,8 +460,9 @@ switch( job->mux ) { case HB_MUX_MP4: - mux->m = hb_mux_mp4_init( job ); - break; + hb_error( "MP4 muxer disabled, exiting" ); + *job->die = 1; + return NULL; case HB_MUX_MKV: mux->m = hb_mux_mkv_init( job ); break; --- a/test/module.defs +++ b/test/module.defs @@ -13,7 +13,7 @@ TEST.GCC.l = \ a52 ass avcodec avformat avutil avresample dvdnav dvdread \ - fontconfig freetype mkv mpeg2 mp3lame mp4v2 ogg \ + fontconfig freetype mkv mpeg2 mp3lame ogg \ samplerate swscale theoraenc theoradec vorbis vorbisenc x264 \ bluray xml2 bz2 z --- a/libhb/decmetadata.c +++ b/libhb/decmetadata.c @@ -7,10 +7,11 @@ For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html */ -#include - #include "common.h" +#if 0 +#include + static int decmp4metadata( hb_title_t *title ) { MP4FileHandle input_file; @@ -172,6 +173,7 @@ } return result; } +#endif /* 0 */ /* * decmetadata() @@ -190,12 +192,5 @@ return 0; } - /* - * Hacky way of figuring out if this is an MP4, in which case read the data using libmp4v2 - */ - if( title->container_name && strcmp(title->container_name, "mov,mp4,m4a,3gp,3g2,mj2") == 0 ) - { - return decmp4metadata( title ); - } return 0; } --- a/gtk/src/hb-backend.c +++ b/gtk/src/hb-backend.c @@ -176,7 +176,6 @@ static options_map_t d_container_opts[] = { {"MKV", "mkv", HB_MUX_MKV, "mkv"}, - {"MP4", "mp4", HB_MUX_MP4, "mp4"}, }; combo_opts_t container_opts = { --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -1394,7 +1394,7 @@ str = ghb_settings_get_string(ud->settings, "destination_dir"); ghb_ui_update(ud, "dest_dir", ghb_string_value(str)); - gchar *file = g_strdup_printf ("new_video.mp4"); + gchar *file = g_strdup_printf ("new_video.mkv"); ghb_ui_update(ud, "dest_file", ghb_string_value(file)); g_free(str); g_free(file); --- a/gtk/src/internal_defaults.xml +++ b/gtk/src/internal_defaults.xml @@ -19,7 +19,7 @@ dest_dir dest_file - new_video.mp4 + new_video.mkv end_point 100 folder @@ -262,7 +262,7 @@ ChapterMarkers FileFormat - mp4 + mkv Folder PictureLooseCrop --- a/gtk/configure.ac +++ b/gtk/configure.ac @@ -203,7 +203,7 @@ ;; esac -HB_LIBS="-lhb -la52 -lmkv -lavresample -lavformat -lavcodec -lavutil -ldvdnav -ldvdread -lmp3lame -lmpeg2 -lvorbis -lvorbisenc -logg -lsamplerate -lx264 -lmp4v2 -lswscale -ltheoraenc -ltheoradec -lz -lbz2 -lpthread -lbluray -lass -lfontconfig -lfreetype -lxml2" +HB_LIBS="-lhb -la52 -lmkv -lavresample -lavformat -lavcodec -lavutil -ldvdnav -ldvdread -lmp3lame -lmpeg2 -lvorbis -lvorbisenc -logg -lsamplerate -lx264 -lswscale -ltheoraenc -ltheoradec -lz -lbz2 -lpthread -lbluray -lass -lfontconfig -lfreetype -lxml2" if test "x$use_fdk_aac" = "xyes" ; then HB_LIBS+=" -lfdk-aac" debian/patches/series0000644000000000000000000000065012254224721012034 0ustar 0003-Remove-embedded-downloaded-copies-of-various-librari.patch 0004-Enable-compilation-on-Debian-arches-other-than-Linux.patch 0005-libhb-Fix-compilation-with-mp4v2-v1.9.1.patch 0010-Remove-FAAC-dependency.patch 0011-First-try-at-removing-some-of-mp4v2.patch 0014-Use-unpatched-a52.patch 0016-use-older-libmkv.patch 0017-fixup-libmkv.patch 0018-Fix-compilation-with-gstreamer-1.patch 0019-Do-not-require-wget-or-curl.patch debian/patches/0014-Use-unpatched-a52.patch0000644000000000000000000000144712254224721015321 0ustar Author: Reinhard Tartler Description: Use unpatched a52 In upstream liba52, the state field is private. Forwarded: no --- a/libhb/deca52.c +++ b/libhb/deca52.c @@ -387,12 +387,15 @@ pv->channel_layout, pv->nchannels); } +#if 0 + // FIXME: debian uses an unpatched liba52 if (pv->use_mix_levels) { hb_audio_resample_set_mix_levels(pv->resample, (double)pv->state->slev, (double)pv->state->clev); } +#endif if (hb_audio_resample_update(pv->resample)) { hb_log("deca52: hb_audio_resample_update() failed"); debian/control0000644000000000000000000000713212254224721010575 0ustar Source: handbrake Section: graphics Priority: optional Maintainer: Debian Multimedia Maintainers Uploaders: Rogério Brito , Reinhard Tartler , Andres Mejia , Fabian Greffrath Homepage: http://www.handbrake.fr/ Vcs-Git: git://anonscm.debian.org/pkg-multimedia/handbrake.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-multimedia/handbrake.git;a=summary Standards-Version: 3.9.5 Build-Depends: automake, debhelper (>= 9), intltool, liba52-0.7.4-dev, libass-dev, libavcodec-dev, libavformat-dev, libavresample-dev, libavutil-dev (>= 6:9), libbluray-dev, libbz2-dev, libdbus-glib-1-dev, libdca-dev, libdvdnav-dev (>= 4.2.0+20120524), libdvdread-dev (>= 4.2.0+20120521), libfontconfig1-dev, libfreetype6-dev, libgstreamer-plugins-base1.0-dev, libgstreamer1.0-dev, libgtk2.0-dev, libgudev-1.0-dev [linux-any], libmkv-dev (>= 0.6.5.1), libmp3lame-dev, libmpeg2-4-dev, libnotify-dev (>= 0.7.3), libogg-dev, libsamplerate0-dev, libswscale-dev, libtheora-dev, libtool, libvorbis-dev, libwebkit-dev, libx264-dev, libxml2-dev, python, yasm Package: handbrake Architecture: any-amd64 any-i386 powerpc Pre-Depends: dpkg (>= 1.15.6~) Depends: ${misc:Depends}, ${shlibs:Depends} Recommends: gstreamer1.0-libav, gstreamer1.0-pulseaudio | gstreamer1.0-alsa, gstreamer1.0-x Conflicts: handbrake-gtk Replaces: handbrake-gtk Breaks: libdvdread4 (<< 4.2.0+20120521-3) Description: versatile DVD ripper and video transcoder (GTK GUI) HandBrake is a versatile, easy-to-use tool for converting DVDs and other videos into H.264, XViD, or OGG formatted media. It's particularly useful for making videos that are compatible with portable video devices such as the Apple iPod/iPhone or Sony PSP. . This version of handbrake has been modified for inclusion in Debian. It does neither support audio encoding to AAC via faac nor MP4 format muxing via libmp4v2, it falls back to the MKV format instead. . This package contains the graphical variant, ghb. Package: handbrake-cli Architecture: any-amd64 any-i386 powerpc Pre-Depends: dpkg (>= 1.15.6~) Depends: ${misc:Depends}, ${shlibs:Depends} Breaks: libdvdread4 (<< 4.2.0+20120521-3) Description: versatile DVD ripper and video transcoder (command line) HandBrake is a versatile, easy-to-use tool for converting DVDs and other videos into H.264, XViD, or OGG formatted media. It's particularly useful for making videos that are compatible with portable video devices such as the Apple iPod/iPhone or Sony PSP. . This version of handbrake has been modified for inclusion in Debian. It does neither support audio encoding to AAC via faac nor MP4 format muxing via libmp4v2, it falls back to the MKV format instead. . This package contains the command-line variant, HandBrakeCLI. Package: handbrake-dbg Section: debug Priority: extra Architecture: any-amd64 any-i386 powerpc Depends: handbrake (= ${binary:Version}), handbrake-cli (= ${binary:Version}), ${misc:Depends} Description: handbrake -- debugging symbols HandBrake is a versatile, easy-to-use tool for converting DVDs and other videos into H.264, XViD, or OGG formatted media. It's particularly useful for making videos that are compatible with portable video devices such as the Apple iPod/iPhone or Sony PSP. . This version of handbrake has been modified for inclusion in Debian. It does neither support audio encoding to AAC via faac nor MP4 format muxing via libmp4v2, it falls back to the MKV format instead. . This package provides debugging symbols debian/handbrake.links0000644000000000000000000000027212254224721012151 0ustar usr/bin/ghb usr/bin/handbrake usr/bin/ghb usr/bin/handbrake-gtk usr/share/man/man1/handbrake.1 usr/share/man/man1/ghb.1 usr/share/man/man1/handbrake.1 usr/share/man/man1/handbrake-gtk.1 debian/handbrake-cli.examples0000644000000000000000000000001212254224721013404 0ustar scripts/* debian/rules0000755000000000000000000000105712254224721010252 0ustar #!/usr/bin/make -f LDFLAGS += -Wl,-z,defs -Wl,--as-needed %: dh $@ --builddirectory=build override_dh_auto_configure: ./configure --prefix=/usr --build build --debug=std \ CC="$(CC)" CXX="$(CXX)" \ CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" override_dh_auto_install: dh_auto_install --destdir=debian/tmp override_dh_install: dh_install --list-missing override_dh_builddeb: dh_builddeb -- -Zxz -z9 -Sextreme override_dh_installchangelogs: dh_installchangelogs NEWS override_dh_strip: dh_strip --dbg-package=handbrake-dbg debian/source/0000755000000000000000000000000012254224721010467 5ustar debian/source/format0000644000000000000000000000001412254224721011675 0ustar 3.0 (quilt) debian/README.source0000644000000000000000000000056712254224721011356 0ustar Because of licensing and copyright concerns, the following subdirectories and the containing files have been removed from the upstream tarball. They need to get pruned on each new upstream release and are not necessary for compilation or operation under Linux. contrib/ download/ macosx/ win/ -- Reinhard Tartler , Sun, 30 Sep 2012 18:48:17 +0200 debian/gbp.conf0000644000000000000000000000006312254224721010605 0ustar [DEFAULT] pristine-tar = True compression = bzip2 debian/handbrake-cli.manpages0000644000000000000000000000002612254224721013366 0ustar debian/HandBrakeCLI.1 debian/watch0000644000000000000000000000011012254224721010210 0ustar version=3 http://sf.net/handbrake/HandBrake-([0-9.]+)\.tar\.(?:bz2|xz)