
| CLI Magic: Porting DVDs with HandBrake | ||
| 摘自: linux.com 被阅读次数: 36 | ||
由 yangyi 于 2008-05-05 18:29:28 提供 | ||
The multimedia capabilities of the handheld electronic devices we carry has increased over the last few years. Devices such as the iPod and even several cell phones have become music-oozing gadgets for people on the go. While you can copy your favourite MP3s directly into a handheld device, DVDs (if you have the right to copy them) take some effort, due to the fact that the devices have tiny screens and lack the processing power needed for playing high-quality DVDs. HandBrake,
designed initially for BeOS and then ported to Linux and Mac OS, helps encode DVDs for your portable device.
User Level: Beginner HandBrake under Linux doesn't yet have a graphical user interface and is only accessible from the command line. Although it requires a lot of libraries, you don't have to worry about that. Jam, a software build tool that makes building programs simple, takes care of downloading all the libraries and compiling them. Just make sure you have gcc, g++, and nasm installed. Open a terminal and run the commands: wget -c http://download.m0k.org/handbrake/HandBrake-0.7.1.tar.gz tar xvf HandBrake-0.7.1.tar.gz cd HandBrake-0.7.1 ./configure jam Depending on your connection speed and hardware, this could take upto 30 minutes. Once its done, gain root access (either through su or sudo) and copy the file you just created to a system directory: It's also a good idea to install a versatile video player such as VLC. Getting started Before you begin encoding, make sure to note the location of your DVD drive and the folder where you want to keep the encoded videos. The source will be the VIDEO_TS folder that every DVD has, and in these examples the destination will be an encoded_movies directory under your home directory. This simple command will encode the entire DVD into a MPEG-4 file format: Like any good CLI application, HandBrake is highly customizable. The command above will combine all chapters into one file. You can use the This will only encode chapter 6. HandBrake will also accept a range of chapters, such as 2-4. You can't play the videos you create with these commands on most portable devices because the devices have speed and resolution limits. For example, my Sony Ericsson K750i phone will best play MP4 videos at 176x144 at 25 frames/second with a bitrate of 192Kbps and audio sampled at 44100Hz at a bitrate of 128Kbps. To get a DVD video to play on my phone I use HandBrake with a lot more options: The More encoding In addition to making portable videos out of DVDs, you can use HandBrake like any other DVD ripper to store videos on your hard disk. It can output MP4, AVI, and OGM movies. You specify the format using the If your DVD has multiple audio sources, such as an alternate language, you can choose to encode the output with these as well by specifying the audio channels with the Handbrake is powerful encoding tool for making DVDs playable on portable devices and ripping and storing DVDs. It sports many command-line options to make it extremely controllable, and yet not so many as to scare away a new user. Original link: http://www.linux.com/feature/114... |