Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Desktop Environments
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Desktop Environments
Support for your Ubuntu desktop. Including Gnome, KDE and XFCE.

 
Thread Tools Display Modes
Old September 11th, 2006   #1
Onos
5 Cups of Ubuntu
 
Join Date: Jan 2006
Beans: 43
HandBrake 0.7.1 CLI "howto"

Well... there are a handful of howto's spread around the net for building HandBrake in Ubuntu Linux... but as I have a rather nasty habit of tinkering and (attempting to) tweaking my Linux installs until something breaks horrendously enough for me to need to re-install the OS...

I am hoping to put togther an Ubuntu HOWTO for HandBrake to include some of the "unexpected" cases. Much of it is derived from Mayank Sharma's tutorial at http://www.linux.com/article.pl?sid=06/04/13/2139238 entitled "CLI Magic: Porting DVDs with HandBrake", but as I ran into a few rough bumps with it...

Here is what I did (again, this is pieced together from a few different HOWTOs) to get it running on my aging machine running Dapper:

-1. Download the source tarball:
Code:
wget -c http://download.m0k.org/handbrake/HandBrake-0.7.1.tar.gz
-2. Install these packages to make the HandBrake happy in its new (Ubuntu/Debian) home:
Code:
sudo aptitude update
sudo aptitude install jam build-essential nasm libdvdcss2
-3. Unzipped/un-tarred it in your home directory:
Code:
tar xvf HandBrake-0.7.1.tar.gz
-4. Rename the HandBrake-0.7.1 directory to HandBrake (trivial, but who really wants to type out all that version info in the path! )
Code:
mv HandBrake-0.7.1 HandBrake
-5. Switch to the HandBrake directory
Code:
cd HandBrake
-6. Configure the source
Code:
./configure
-7. Edit the Jamfile to make Ubuntu/Debian happy: (use your favorite text editor)
Code:
sudo nano ~./HandBrake/libhb/Jamfile
-8. Find the following line: (it should be near the bottom of the file)
Code:
ObjectCcFlags $(LIBHB_SRC) : -I$(TOP)/contrib/include ;
--8a. Make it look like this:
Code:
ObjectCcFlags $(LIBHB_SRC) : -I$(TOP)/contrib/include -I$(TOP)/contrib/mpeg4ip/lib/mp4v2 ;
--8b. Save/Write-out of the file...


-9. Jam it all together (requires installation of Jam, see #2 above)
Code:
jam
-10. Finishing up:
Code:
cp HBTest /usr/local/bin/handbrake
This allows you to pass commands to handbrake anywhere in a terminal.


For the record, this rips movies/DVDs to a suitable *.avi or *.mpg slightly faster on my old Compaq Presario running Dapper than the full-on GUI version does in Mac OSX on my fresh-from-the-Apple Store MacBook.


Credits go to Peter James Bui, jbird123 from the Ubuntu forums, and Mayank Sharma as mentioned above.

And of course, the coders who put HandBrake together.

__________________
----------------------------------------------------------------------
- Onos
"...a waste is a terrible thing to mind."
Onos is offline   Reply With Quote
Old June 30th, 2007   #2
macron1
Spilled the Beans
 
Join Date: Apr 2007
Beans: 13
Re: HandBrake 0.7.1 CLI "howto"

hi
thanks for the howto. just one question, i ran jam before modifying the jamfile w nano etc. what are some of the possible repercussions? do i need to re-install? thanks
macron1 is offline   Reply With Quote
Old October 28th, 2007   #3
road_rage
5 Cups of Ubuntu
 
road_rage's Avatar
 
Join Date: Oct 2007
Beans: 22
Re: HandBrake 0.7.1 CLI "howto"

Just thought I would mention for n00bs like me....
The line that states "sudo nano ~./HandBrake/libhb/Jamfile" did not allow me to edit the file from the current path and instead created a new file. The command "sudo nano ./libhb/Jamfile" worked for me as I was already in my /home/xxxx/HandBrake folder.

Thank You for this writeup, definitely moved me along to handbraking!
road_rage is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:56 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry