Go Back   Android Forums > Android Discussion > Android Media
Android Media For Ringtones, Video, TV, Audio or anything else Multimedia related...

test: Reply
 
LinkBack Thread Tools
Old May 30th, 2011, 04:24 PM   #1 (permalink)
Senior Member
Thread Author (OP)
 
Usta's Avatar
 
Join Date: Jul 2010
Location: The Netherlands
Posts: 2,585
 
Device(s): SGS II I9100
Carrier: Not Provided

Thanks: 127
Thanked 1,366 Times in 331 Posts
Lightbulb Guide: How to convert videos with Handbrake

Thanks to a number of universal video players in Market, playing videos with different formats on Android devices is no longer a problem.
However, there are a number of occasions where you want to convert them.

For example:
* when the videos are on a DVD (or ripped to PC)
* when you have a complex video which your phone cannot play (like 1080p full HD videos)
* when you want to have a video that is natively supported by Android OS.

Handbrake is a very suitable software to use for such conversions. It is an open-source, GPL-licensed, multiplatform, multithreaded video transcoder, available for MacOS X, Linux and Windows. It is suitable both for the beginners and advanced users, and can produce excellent results. For this reason, I'm making this guide for everyone, with screenshots (who doesn't like screenshots? ).


Step 1) Download Handbrake from here: HandBrake
Install and run.

Step 2) Click "Source" and select the video file you want to convert. I'll select the Full HD 1080p trailer from Thor movie (source: Youtube).
Set the Destination path and output file name. Select MP4 as the file extension/container. Now select "Universal" from the right side Presets section.
In Picture tab set the resolution so that the lower number equals to that of the lower number of your phone's screen resolution. For example, my phone has 800x480 screen resolution, so here I make sure that the display size says "1129x480". Note: you can only change the larger number, the smaller one just follows.


Step 3) In Video tab, set Video codec to "H.264(x264)", Framerate to "Same as Source", Avg Bitrate to "1000". Optional - you can also select "2 Pass encoding" for a bit better quality, but it takes the conversion process too long.
A note here: I selected Avg Bitrage mode, because it is more suitable for all source videos. The experienced users can select "Constant quality" mode to get a better bitrate allocation across video frames, aka get better quality for smaller file size.


Step 4) In Audio tab, select the necessary settings as in picture and remove any extra tracks.


Step 5) If you want to add subtitles, then add them here. If you do, then check "Burned In" box so that you don't have issues with most of the players.


Step 6) Go to "Advanced" tab and make sure that the settings are like this - Don't change anything there!
Press the "Start" button and wait for the program to finish the job.


Note: One time action - you can add these settings and create your phone preset just before the conversion on step 6. Press "Add" button under the Presets, type a name, and "Set Default". Next time, when you load a new file, just use this new preset and all your settings should be restored.


Good luck!

Advertisements
__________________
Video Guide
Usta is offline  
Last edited by Usta; May 30th, 2011 at 04:44 PM.
Reply With Quote
The Following 7 Users Say Thank You to Usta For This Useful Post:
ardchoille (May 31st, 2011), Flumme (September 4th, 2012), Ironclad (June 3rd, 2012), Pinmac1 (June 23rd, 2011), SeekerOfTheWay (July 3rd, 2011), Tresezk (July 26th, 2011), virtualmaze (October 18th, 2012)
sponsored links
Old July 3rd, 2011, 09:36 AM   #2 (permalink)
Senior Member
 
SeekerOfTheWay's Avatar
 
Join Date: Jun 2011
Location: Florida
Posts: 608
 
Device(s): HTC Thunderbolt, non root
Carrier: Not Provided

Thanks: 339
Thanked 79 Times in 48 Posts
Send a message via Skype™ to SeekerOfTheWay chrisy520@gmail.com
Default

This is a great guide, thanks. However when I select source and then the Disc drive no files show. I have the DVD inserted.
__________________
SeekerOfTheWay is offline  
Reply With Quote
Old July 3rd, 2011, 11:37 AM   #3 (permalink)
 
Join Date: Apr 2010
Posts: 5,867
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 634 Times in 538 Posts
Default

As I have posted in your THREE other posts about the same thing, you need to rip the dvd to the hard drive first.
sitlet is offline  
Reply With Quote
Old July 3rd, 2011, 02:20 PM   #4 (permalink)
Senior Member
Thread Author (OP)
 
Usta's Avatar
 
Join Date: Jul 2010
Location: The Netherlands
Posts: 2,585
 
Device(s): SGS II I9100
Carrier: Not Provided

Thanks: 127
Thanked 1,366 Times in 331 Posts
Default

Yes, Handbrake has the option to convert video directly from a DVD disk.
However, as sitlet mentions, it is a much better idea to rip it first on HDD to avoid any protection or physical device reading errors.
Usta is offline  
Reply With Quote
Old July 7th, 2011, 09:32 AM   #5 (permalink)
New Member
 
Join Date: Jun 2011
Location: Bethesda, MD
Posts: 11
 
Device(s): HTC Incredible 2, Moto Droid X
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Usta View Post
Step 6) Go to "Advanced" tab and make sure that the settings are like this - Don't change anything there!
How important are the exact settings in the "Advanced" tab?

I've ripped videos to put on my Dinc2 using 2 or 3 of the different HB presets, including "iPhone4", "Normal", and a modified "Universal"; all have various different settings selected in the "Advanced" tab, particularly when it comes to B frames, motion interpolation method, and the 3 checkboxes for CABAC, 8x8 transform, and Weighted P frames.

All of the movies play, all look about the same on a 4" 800x480 screen, and all are about the same size. The encode time varies somewhat, but other than that I'm having a hard time telling what all these options change.

Can anyone explain, or point me to a guide that explains?
Senna1 is offline  
Reply With Quote
Old July 7th, 2011, 05:10 PM   #6 (permalink)
Senior Member
Thread Author (OP)
 
Usta's Avatar
 
Join Date: Jul 2010
Location: The Netherlands
Posts: 2,585
 
Device(s): SGS II I9100
Carrier: Not Provided

Thanks: 127
Thanked 1,366 Times in 331 Posts
Default

The "Universal" preset keeps the encoded video at H264 Baseline profile.
The moment you start to change Advanced settings, like for example selecting CABAC, then you are changing the encoding profile to H264 Main/High/other.
While these other profiles provide more fine tuning and compression, they are also increasing the chances of incompatibility of video playback on Android phones.
Sure, the modern dual-cores can handle videos at H264 Main Profile, but most of the single cores will fail to play them.
Usta is offline  
Reply With Quote
Old November 5th, 2011, 07:42 PM   #7 (permalink)
Junior Member
 
Join Date: Aug 2010
Posts: 48
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 2 Times in 2 Posts
Default

Thanks for the instructions. I've been using HandBrake with the iPhone 4 profile to convert video for my Galaxy S but it's hit and miss. Sometimes it works and sometimes it doesn't. This particular video I tried to convert with the iPhone 4 profile and decreased the picture height to 480 and limit the size to 1GB, my Vibrant can't play. The iPhone 4 plays just fine and the quality quite good. I than follow you instructions, using Universal profile and Avg Bitrate 1000. The file is more than twice as big as the one using iPhone 4 profile. This time my Vibrant can play. Even though the file size on the Universal profile is more than twice as the iPhone 4 profile, the quality of the iPhone 4 profile is much better. I can tell by playing both file from my computer. You explain on the setting in the Advanced tab... so you much compression and that's the reason the Vibrant can't play. I think the Vibrant and the iPhone 4 have pretty much hardware. So, why is iPhone 4 can play the file but not the Vibrant. Is iOS better then Anroid then?
toiday is offline  
Reply With Quote
Old November 6th, 2011, 04:04 AM   #8 (permalink)
cdl
Member
 
Join Date: Feb 2010
Posts: 304
 
Device(s): Galaxy Note 3
Carrier: Not Provided

Thanks: 20
Thanked 21 Times in 16 Posts
Default

Quote:
Originally Posted by Usta View Post
Step 5) If you want to add subtitles, then add them here. If you do, then check "Burned In" box so that you don't have issues with most of the players.

I'd like to clarify that handbrake lets you hardcode (burn-in) external files in .srt format only. If you want to hardcode subtitles in the idx/sub format, you first have to embed them in the same mkv as the video using mkvmerge (it's quick); you cannot hardcode idx/sub subtitles stored as external files, at least with the current version.
This is the solution I use to play videos with DicePlayer on my Android.

If you only have an avi (not mkv) with idx/sub subtitles, you can also use virtualdub with the vobsub plugin to hardcode the subtitles.

Hope this is useful.
cdl is offline  
Reply With Quote
Old August 24th, 2012, 09:57 AM   #9 (permalink)
New Member
 
Join Date: Aug 2012
Location: Malaysia
Posts: 1
 
Device(s): Samsung GT-S5830
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

can the videos converted with this programme played in samsung gt-s5830?
ashlyn1996524 is offline  
Reply With Quote
Old September 4th, 2012, 03:12 AM   #10 (permalink)
Member
 
Flumme's Avatar
 
Join Date: Jun 2011
Location: Sweden
Posts: 333
 
Device(s): HTC Desire (retired), Samsung Galaxy S3
Carrier: Not Provided

Thanks: 97
Thanked 87 Times in 63 Posts
Default

Nice write up! Thanks.
__________________
Flashing is indecent fun

Free 2 + 0,5 Gb Dropbox: http://db.tt/U3UgMIRc
Flumme is offline  
Last edited by Flumme; January 19th, 2013 at 04:27 PM.
Reply With Quote
sponsored links
Reply


Go Back   Android Forums > Android Discussion > Android Media
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:41 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.