[SOLUTION] How to install Handbrake (0.9.9)

Here you'll find a place for solutions and hints.

Please use one of the support subforums below for questions or if you have any issues and need support.

[SOLUTION] How to install Handbrake (0.9.9)

Postby lewisforlife » Apr 19th, '12, 03:17

I built Handbrake gui and CLL from source. It would be really good if these packages were added to tainted. I have a couple of questions because I am not used to building from source. After my make command (gmake), I simply copied the binaries from the build directory to /usr/local/bin. Everything seems to be working fine, can I just delete the entire Handbrake directory that was used for compiling the program, or will I need this later for some reason? Is there an advantage to doing "make install" instead of just make and copying the binaries to where you want them? I figured if I did a "make install" it would be difficult to find all of the files that it installed later if I wanted to delete this program.

Thanks for the help.
Last edited by doktor5000 on Jun 2nd, '13, 11:22, edited 1 time in total.
Reason: updated thread title with current version
lewisforlife
 
Posts: 71
Joined: Apr 16th, '12, 20:52

Re: Handbrake

Postby isadora » Apr 19th, '12, 10:10

Moved by moderator!!! ;)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2742
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: Handbrake

Postby obgr_seneca » Apr 19th, '12, 10:25

Well, if you really move, copy and link everything, that is done by make install, ok, but to do this, you will first have to read the Makefile.
So it might work by just copying the binaries or it might not.
To uninstall software compiled manually, good Makefiles provide an uninstall target, but you will find many Makefiles, that are not really good...

About adding handbrake to the repos: It's a nogo at the moment, iirc, because it is tainted and contains nonfree software. Others please correct me if I'm wrong here, I don't remember the whole discussion of this topic right now.
Linux - free choice for free people
User avatar
obgr_seneca
 
Posts: 156
Joined: Mar 16th, '11, 17:35
Location: Southwest of Germany

Re: Handbrake

Postby jkerr82508 » Apr 19th, '12, 11:21

obgr_seneca wrote:About adding handbrake to the repos: It's a nogo at the moment, iirc, because it is tainted and contains nonfree software.

That is also my recollection. IIRC the possibility of having a tainted-nonfree repo was left open for the future, but is not a priority.

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: Handbrake

Postby lewisforlife » Apr 19th, '12, 15:48

Thanks for the help. If one persons vote means anything, I vote for a nonfree tainted, we already have each separately, I don't think it would be that big of deal to have a repo that contains both.
lewisforlife
 
Posts: 71
Joined: Apr 16th, '12, 20:52

Re: Handbrake

Postby doktor5000 » Apr 19th, '12, 20:08

You can delete the directory you used to build handbrake, as it only produces two huge binaries, one GUI and one for the CLI.
If you want an up-to-date package for Handbrake for Mageia 1, i can give you a link, if you want.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Handbrake

Postby stampeder » May 25th, '12, 22:39

Unless or until a Mageia 2 binary rpm becomes available (sorry, I don't know how to do that yet but I'll start reading how) I created some easy instructions that should work fine for x86_64

NOTE: I've reposted the instructions later in this thread after debugging the problems that fox describes in the next few replies. :)
Last edited by stampeder on Jun 6th, '12, 19:34, edited 14 times in total.
User avatar
stampeder
 
Posts: 8
Joined: May 25th, '12, 22:30
Location: Vancouver, Canada

Re: Handbrake

Postby doktor5000 » May 26th, '12, 02:55

I could also post my handbrake packages here as attachments if you want to have finished packages ...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Handbrake

Postby fox » Jun 5th, '12, 18:35

I followed stampeder's instructions, configuration went fine but it gave me error on "make"

Code: Select all
# make
/bin/mkdir -p libhb/
/usr/bin/m4 -Iproject ../libhb/project.h.m4 > libhb/project.h
/bin/cp ../libhb/eedi2.h libhb/eedi2.h
/bin/cp ../libhb/hbffmpeg.h libhb/hbffmpeg.h
/bin/cp ../libhb/hb_dict.h libhb/hb_dict.h
/bin/cp ../libhb/downmix.h libhb/downmix.h
/bin/cp ../libhb/ports.h libhb/ports.h
/bin/cp ../libhb/bits.h libhb/bits.h
/bin/cp ../libhb/taskset.h libhb/taskset.h
/bin/cp ../libhb/dvd.h libhb/dvd.h
/bin/cp ../libhb/lang.h libhb/lang.h
/bin/cp ../libhb/common.h libhb/common.h
/bin/cp ../libhb/internal.h libhb/internal.h
/bin/cp ../libhb/deccc608sub.h libhb/deccc608sub.h
/bin/cp ../libhb/encx264.h libhb/encx264.h
/bin/cp ../libhb/mcdeint.h libhb/mcdeint.h
/bin/cp ../libhb/hb.h libhb/hb.h
/bin/mkdir -p ../download/
/usr/bin/wget -O ../download/a52dec-0.7.4.tar.gz http://download.handbrake.fr/handbrake/contrib/a52dec-0.7.4.tar.gz
--2012-06-05 19:19:34--  http://download.handbrake.fr/handbrake/contrib/a52dec-0.7.4.tar.gz
Преобразувам download.handbrake.fr (download.handbrake.fr)... 88.190.242.142
Connecting to download.handbrake.fr (download.handbrake.fr)|88.190.242.142|:80... успешно свързване.
HTTP изпратено искане, чакам отговор... 200 OK
Дължина: 242978 (237K) [text/plain]
Saving to: `../download/a52dec-0.7.4.tar.gz'

100%[==================================>] 242.978      618K/s   in 0,4s   

2012-06-05 19:19:35 (618 KB/s) - `../download/a52dec-0.7.4.tar.gz' saved [242978/242978]

/bin/mkdir -p contrib/a52dec/
/bin/rm -fr ./contrib/a52dec/a52dec/
/bin/gtar xfC ../download/a52dec-0.7.4.tar.gz ./contrib/a52dec/
touch contrib/a52dec/.stamp.extract
/usr/bin/patch -t -N -p1 -d ./contrib/a52dec/a52dec/ < ../contrib/a52dec/A00-dpl2.patch
patching file include/a52.h
patching file liba52/a52_internal.h
patching file liba52/downmix.c
/usr/bin/patch -t -N -p1 -d ./contrib/a52dec/a52dec/ < ../contrib/a52dec/A02-imdct-shutup.patch
patching file liba52/imdct.c
/usr/bin/patch -t -N -p1 -d ./contrib/a52dec/a52dec/ < ../contrib/a52dec/A01-thread-safe.patch
patching file liba52/a52_internal.h
patching file liba52/imdct.c
patching file liba52/parse.c
touch contrib/a52dec/.stamp.patch
set -e; cd ./contrib/a52dec/a52dec/; rm -fr aclocal.m4 autom4te.cache; autoreconf -fiv; CC=/usr/bin/gcc CFLAGS="" CXX=/usr/bin/g++ CXXFLAGS="" CPPFLAGS="" LDFLAGS="" PKG_CONFIG_PATH="/usr/local/src/hb-trunk/build/contrib/lib/pkgconfig" ./configure --prefix=/usr/local/src/hb-trunk/build/contrib/ --disable-dependency-tracking --disable-shared --enable-static
/bin/sh: autoreconf: command not found
make: *** [contrib/a52dec/.stamp.configure] Error 127


What should I do?
fox
 
Posts: 26
Joined: May 26th, '12, 07:44
Location: Bulgaria

Re: Handbrake

Postby stampeder » Jun 5th, '12, 18:56

No problem, you've found a dependency that I had already installed so I missed it. :) You'll need to install GNU autoconf, which contains the autoreconf program:
Code: Select all
urpmi autoconf
and then try building Handbrake again.

I've added autoconf to the packages listed in my previous post.
User avatar
stampeder
 
Posts: 8
Joined: May 25th, '12, 22:30
Location: Vancouver, Canada

Re: Handbrake

Postby fox » Jun 5th, '12, 19:38

Thank you for your quick answer!
Unfortunately I have another error :?


Code: Select all
# make
/usr/bin/m4 -Iproject ../libhb/project.h.m4 > libhb/project.h
set -e; cd ./contrib/a52dec/a52dec/; rm -fr aclocal.m4 autom4te.cache; autoreconf -fiv; CC=/usr/bin/gcc CFLAGS="" CXX=/usr/bin/g++ CXXFLAGS="" CPPFLAGS="" LDFLAGS="" PKG_CONFIG_PATH="/usr/local/src/hb-trunk/build/contrib/lib/pkgconfig" ./configure --prefix=/usr/local/src/hb-trunk/build/contrib/ --disable-dependency-tracking --disable-shared --enable-static
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal  --output=aclocal.m4t
Can't exec "aclocal": Няма такъв файл или директория at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
make: *** [contrib/a52dec/.stamp.configure] Error 1
fox
 
Posts: 26
Joined: May 26th, '12, 07:44
Location: Bulgaria

Re: Handbrake

Postby stampeder » Jun 5th, '12, 20:02

You will need to install automake:
Code: Select all
urpmi automake
and then try building Handbrake again.

This is good to have you debugging my instructions for me! Thanks :)
User avatar
stampeder
 
Posts: 8
Joined: May 25th, '12, 22:30
Location: Vancouver, Canada

Re: Handbrake

Postby fox » Jun 5th, '12, 20:12

Sorry :oops:

Code: Select all
# make
/usr/bin/m4 -Iproject ../libhb/project.h.m4 > libhb/project.h
set -e; cd ./contrib/a52dec/a52dec/; rm -fr aclocal.m4 autom4te.cache; autoreconf -fiv; CC=/usr/bin/gcc CFLAGS="" CXX=/usr/bin/g++ CXXFLAGS="" CPPFLAGS="" LDFLAGS="" PKG_CONFIG_PATH="/usr/local/src/hb-trunk/build/contrib/lib/pkgconfig" ./configure --prefix=/usr/local/src/hb-trunk/build/contrib/ --disable-dependency-tracking --disable-shared --enable-static
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.in: tracing
autoreconf: configure.in: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
configure.in:74: error: possibly undefined macro: AC_DISABLE_SHARED
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:75: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
configure.in:76: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /usr/bin/autoconf failed with exit status: 1
make: *** [contrib/a52dec/.stamp.configure] Error 1
fox
 
Posts: 26
Joined: May 26th, '12, 07:44
Location: Bulgaria

Re: Handbrake

Postby stampeder » Jun 5th, '12, 20:57

Delete your "configure" file and run:
Code: Select all
make clean
and then try the Handbrake build again starting with ./configure
User avatar
stampeder
 
Posts: 8
Joined: May 25th, '12, 22:30
Location: Vancouver, Canada

Re: Handbrake

Postby fox » Jun 5th, '12, 21:34

Code: Select all
# make clean
/bin/rm -f ./libhb/project.h ./libhb/denoise.o ./libhb/common.o ./libhb/taskset.o ./libhb/bd.o ./libhb/vfr.o ./libhb/downmix.o ./libhb/decmpeg2.o ./libhb/declpcm.o ./libhb/encvorbis.o ./libhb/deblock.o ./libhb/hb_dict.o ./libhb/hb.o ./libhb/dectx3gsub.o ./libhb/encavcodecaudio.o ./libhb/deca52.o ./libhb/decsrtsub.o ./libhb/ports.o ./libhb/decssasub.o ./libhb/dvd.o ./libhb/rendersub.o ./libhb/demuxmpeg.o ./libhb/decavcodec.o ./libhb/batch.o ./libhb/enclame.o ./libhb/decpgssub.o ./libhb/sync.o ./libhb/decvobsub.o ./libhb/rotate.o ./libhb/muxmp4.o ./libhb/muxmkv.o ./libhb/fifo.o ./libhb/scan.o ./libhb/decomb.o ./libhb/cropscale.o ./libhb/lang.o ./libhb/update.o ./libhb/decmetadata.o ./libhb/encavcodec.o ./libhb/mcdeint.o ./libhb/decutf8sub.o ./libhb/dvdnav.o ./libhb/muxcommon.o ./libhb/stream.o ./libhb/encfaac.o ./libhb/eedi2.o ./libhb/deccc608sub.o ./libhb/enctheora.o ./libhb/decdca.o ./libhb/work.o ./libhb/detelecine.o ./libhb/encvobsub.o ./libhb/deinterlace.o ./libhb/encx264.o ./libhb/reader.o ./libhb/eedi2.h ./libhb/hbffmpeg.h ./libhb/hb_dict.h ./libhb/downmix.h ./libhb/ports.h ./libhb/bits.h ./libhb/taskset.h ./libhb/dvd.h ./libhb/lang.h ./libhb/common.h ./libhb/internal.h ./libhb/deccc608sub.h ./libhb/encx264.h ./libhb/mcdeint.h ./libhb/hb.h ./libhb/libhb.a
/bin/rm -f ./test/test.o ./test/parsecsv.o ./HandBrakeCLI
make -C ./gtk/ clean
make: *** gtk/: No such file or directory.  Stop.
make: *** [gtk.clean] Error 2


What's wrong with me :(
fox
 
Posts: 26
Joined: May 26th, '12, 07:44
Location: Bulgaria

Re: Handbrake

Postby stampeder » Jun 6th, '12, 00:38

We are getting closer. :) Run this:
Code: Select all
urpmi lib64gtk+2.0-devel
and run your Handbrake build again from a clean configuration. Another option: if you really want to start all over again, delete the entire Handbrake build directory and start totally from the beginning.
User avatar
stampeder
 
Posts: 8
Joined: May 25th, '12, 22:30
Location: Vancouver, Canada

Re: Handbrake

Postby stampeder » Jun 6th, '12, 01:06

BTW, when you first installed Mageia 2 x86_64 did you include the C and C++ development packages? If not, run this:
Code: Select all
urpmi task-c-devel task-c++-devel
User avatar
stampeder
 
Posts: 8
Joined: May 25th, '12, 22:30
Location: Vancouver, Canada

Re: Handbrake

Postby fox » Jun 6th, '12, 16:12

Yes, it was the task-c++-devel I missed. It worked!

Thank you very, very much for your help.
fox
 
Posts: 26
Joined: May 26th, '12, 07:44
Location: Bulgaria

Re: Handbrake

Postby stampeder » Jun 6th, '12, 19:09

Excellent! I went back to my original instructions and updated them with the right information based on your input. Thanks for your help! :)
User avatar
stampeder
 
Posts: 8
Joined: May 25th, '12, 22:30
Location: Vancouver, Canada

Re: Handbrake - REVISED, UPDATED INSTRUCTIONS

Postby stampeder » Jun 6th, '12, 19:32

Code: Select all
# Building Handbrake From Source For Mageia 2 x86_64
# Updated June 6, 2012 to include bug fixes
#
# Internet connection required
#
# Run as root on command line of your Mageia 2 x86_64 machine:

# OPTIONAL - update Mageia 2 x86_64 installation media and packages:
#
# urpmi.removemedia -a
# urpmi.addmedia --distrib --mirrorlist 'http://mirrors.mageia.org/api/mageia.2.x86_64.list'
# urpmi --auto-update

# REQUIRED - install required Mageia 2 x86_64 packages for building Handbrake:

urpmi --auto task-c-devel task-c++-devel gcc python curl \
m4 make patch tar wget subversion yasm lib64zlib-devel \
lib64bzip2-devel lib64fribidi-devel ndesk-dbus-glib-devel \
lib64gudev1.0-devel lib64webkitgtk1.0-devel \
lib64webkitgtk3.0-devel libnotify-devel lib64gstreamer0.10-devel \
lib64gstreamer-plugins-base0.10-devel intltool gettext-devel \
gettext-base autoconf automake lib64gtk+2.0-devel

# Get latest Handbrake trunk code :

cd /usr/local/src
svn checkout svn://svn.handbrake.fr/HandBrake/trunk hb-trunk

# Start build (Option A or B):

## Option A - read advanced build instructions first:
#
#  cd hb-trunk/doc/
#  more BUILD-Linux

## Option B - begin Mageia 2 x86_64 Handbrake build right away:

  cd hb-trunk
  ./configure

# Run make but *** DO NOT *** use make -j4 or other parallel
# build options! Handbrake warns that corruption would probably
# occur and it does!

make

make install

# Verify that the new Handbrake binaries exist:

cd /usr/local/bin
ls -l|egrep "ghb|HandBrakeCLI"

# Put that cocktail down, it is time to test your new Handbrake
# installation! The new "ghb" binary is the GUI version of Handbrake
# so you can create menu items, icons as needed. The new
# "HandBrakeCLI" binary is the command line version of Handbrake,
# which is great for putting into shell scripts

# OPTIONAL - Delete the build directory since it is no longer needed:

rm -rf /usr/local/src/hg-trunk
User avatar
stampeder
 
Posts: 8
Joined: May 25th, '12, 22:30
Location: Vancouver, Canada

Re: Handbrake

Postby doktor5000 » Jul 10th, '12, 19:14

FWIW, here's a shorter way to get handbrake, and even in packaged form.

OK, you can get the src.rpm for handbrake-0.9.6, which is a result from the official Mageia package, which existed for a short time, only updated to 0.9.6, here: http://depositfiles.com/files/xjfw7wcfh

Then open a terminal and change to the folder where you downloaded it, and do the following (assuming you have the tainted repositories already enabled, which you'll need for handbrake):

Code: Select all
    urpmi --buildrequires ./handbrake-0.9.6-1mga1.tainted.src.rpm
    urpmi rpm-build
    rpmbuild --rebuild handbrake-0.9.6-1mga1.tainted.src.rpm


Be sure to do the last one, the actual rebuild as normal user. Resulting packages can be found under ~/rpmbuild/RPMS
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Handbrake

Postby doktor5000 » Aug 1st, '12, 21:23

richard58 wrote:About adding hand brake to the repos: It's a no-go at the moment, circ, because it is tainted and has non free software.

Yes, and no :) It brings along some bundled libraries, among them faac which is the default and fallback audio encoder for handbrake in many cases.
For faac have a look here: https://bugs.mageia.org/show_bug.cgi?id=1730
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Handbrake

Postby Phantom » Aug 6th, '12, 20:48

HandBrake 0.9.8 Released!
Wednesday, July 18, 2012

If someone could build an updated rpm package for Mageia 1/2?
x64 would be very welcome :-)
Phantom
 
Posts: 3
Joined: Aug 6th, '12, 18:16

Re: Handbrake

Postby doktor5000 » Aug 6th, '12, 21:09

I'll have a look ...

EDIT: And here it is, src.rpm for 0.9.8: http://depositfiles.com/files/9exqg1vfm
Instructions to rebuild the src.rpm as posted above already...
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17630
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Handbrake

Postby celiofk » Sep 20th, '12, 01:22

Thanks doktor5000, worked on Mageia 3 Alpha 1 i586.
celiofk
 
Posts: 6
Joined: Apr 1st, '11, 14:21

Next

Return to The magician suggests...

Who is online

Users browsing this forum: No registered users and 1 guest

cron