Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,733,661 Members 44,638 Now Online
XDA Developers Android and Mobile Development Forum

[HOWTO] Converting films for the Galaxy Tab

Tip us?
 
TheGrammarFreak
Old
(Last edited by TheGrammarFreak; 2nd February 2011 at 05:13 PM.)
#1  
TheGrammarFreak's Avatar
Senior Member - OP
Thanks Meter 684
Posts: 2,805
Join Date: Jul 2010
Talking [HOWTO] Converting films for the Galaxy Tab

Ok, I present to you what I believe to be the best trade off between file-size and quality, given when I'm likely to watch a film on this thing. Feel free to disagree, everyone has their own preferences.

Why have I chosen these settings?
Well, given that I normally watch films on a television, watching them on the Tab is only gonna happen when I'm on the move. So a >1GB video seems pointless, as on a screen that size you'll barely notice the difference in quality. So I aimed to get a film in to ~500MB and to a quality that is still watchable. I went for 500MB as a target because a film that's ~700MB on a 15.6" laptop screen is perfectly watchable. On the Tab the screen is smaller, and the pixel density higher, so we can afford a smaller file size for a video of the same dimensions. I chose to upscale during the encode instead of during playback because the Tab does a really bad job of upscaling (horribly pixilated, especially in high contrast). I think that you could get a film to 400MB, but that's too far for my taste.

To reiterate, I use these settings to keep file size to a minimum while maintaining a watchable quality. I do not need a 2GB HD film when I can fit 4-5 films in that space. If I want to watch a film at a high quality I use my 42" TV, not a 7" tablet.


What you need:
  • A film to convert for use on your tablet
  • Handbrake
  • Time

How do I do it then?
  • Load up handbrake, and select your source and destination files.
  • Ensure the preset is set to "Normal"
  • On the "Picture" tab make sure "Anamorphic" is set to "None"
  • Ensure "Keep aspect ratio" is ticked
  • Set the height of the output to the max it'll allow (assuming you're using an SD film. If not, set the width to 1024)
  • Switch to the "Video" tab
  • Ensure "Constant Quality" is used, and set the RF value to ~27. Larger numbers mean lower quality, and it's a logarithmic scale.
  • Switch to the "Audio" tab
  • Change the mixdown to stereo and the sampling rate to 48
  • Hit "Start"

After a number of hours (at least the length of the film you're converting) you'll have a ~500MB video file (depends on the length of the film, and genre) ready for playback on your tab. When you hit play tap the screen, then tap the zoom setting button (top right) once. This will correct the aspect ratio.

For higher quality (and larger file sizes) make the RF lower (eg: 22).


Feedback is welcomed, I want to know how you guys do it.

Interesting posts
A few interesting posts are littered through the thread, here are a few:
http://forum.xda-developers.com/show...17&postcount=5
http://forum.xda-developers.com/show...4&postcount=28
http://forum.xda-developers.com/show...8&postcount=30
http://forum.xda-developers.com/show...6&postcount=35
http://forum.xda-developers.com/show...8&postcount=38
Nexus 4: CM10.2
Nexus 7: CM10.2

Twitter | Blog
The Following 7 Users Say Thank You to TheGrammarFreak For This Useful Post: [ Click to Expand ]
 
my_username
Old
#2  
Member
Thanks Meter 4
Posts: 66
Join Date: Oct 2010
Sounds like pretty solid advice to me. When I convert I just use a freeware converter called iWisoft which has a ton of preset options for different media devices.

I've never worried too much about trying to cut their size down though because you're right, a 700 mb movie on a laptop is perfectly watchable. And to this day, with multiple movies, backed up images and ROMs, pics, backed up apps, etc, I've yet to run out of space on my 16 gig SD.

Sent from my SCH-I800 using XDA App
The Following User Says Thank You to my_username For This Useful Post: [ Click to Expand ]
 
agentdr8
Old
#3  
agentdr8's Avatar
Senior Member
Thanks Meter 847
Posts: 1,748
Join Date: Mar 2007
Location: Cowtown, CA

 
DONATE TO ME
Thumbs up on the howto. This is how I've been converting videos for my SGS and SGT. Handbrake is great software.
 
TheGrammarFreak
Old
(Last edited by TheGrammarFreak; 27th January 2011 at 12:04 PM.)
#4  
TheGrammarFreak's Avatar
Senior Member - OP
Thanks Meter 684
Posts: 2,805
Join Date: Jul 2010
Cool. Glad you like this.

I've just done a few more and the lowest I've seen is 306 MB. Lol (short film, not action) EDIT: And I forgot to upscale. Damn
Nexus 4: CM10.2
Nexus 7: CM10.2

Twitter | Blog
The Following User Says Thank You to TheGrammarFreak For This Useful Post: [ Click to Expand ]
 
spartacusrex
Old
(Last edited by spartacusrex; 27th January 2011 at 04:29 PM.)
#5  
spartacusrex's Avatar
Member
Thanks Meter 44
Posts: 36
Join Date: Jan 2011
Well. On Linux (Ubuntu 10.10) this is what I do..

Had a load of .ogm files that won't play on default player.. so...

I have a file called convert_vids.sh

Code:
> touch convert_vids.sh
Make sure you can run it..

Code:
> chmod +x convert_vids.sh
Open in a text editor

Code:
> nano convert_vids.sh
Then copy & paste this into it..

Code:
#!/bin/sh

for z in *.ogm
do

echo Converting file "$z" to "$z".avi

mencoder "$z" -aid 1 -slang en -ovc xvid -oac mp3lame -lameopts br=192 -mc 0 -xvidencopts pass=1:bitrate=1000 -o "$z".avi
 
done
And run it in the directory you wish to convert

Just use the main function if you only want to convert a single file or to test it works first!

Code:
mencoder thefilm.ogm -aid 1 -slang en -ovc xvid -oac mp3lame -lameopts br=192 -mc 0 -xvidencopts pass=1:bitrate=1000 -o thefilm.avi
You can play with the settings but basically it'll pick the first audio track, English subtitles, and encode it to xvid with a video bitrate of 1000kbps and mp3 audio of 192kbps and output the file with the same name as before but .avi added to the end. (These settings might be higher than some people want, but I like to future proof them..)

I like my manga in the original language with subs..

Enjoy.
 
TheGrammarFreak
Old
#6  
TheGrammarFreak's Avatar
Senior Member - OP
Thanks Meter 684
Posts: 2,805
Join Date: Jul 2010
A very elegant solution.
Nexus 4: CM10.2
Nexus 7: CM10.2

Twitter | Blog
 
brilldoctor
Old
#7  
brilldoctor's Avatar
Senior Member
Thanks Meter 94
Posts: 1,521
Join Date: Aug 2010
(mac only) Or downliad the handvrake nightly and update the presets. remove it and download and open 0.9.4 and use the ipad preset (tab has a 1024 * 600 screen compared to the ipads 1024*768)

Sent from my GT-P1000 using XDA App
Devices: Nexus 4, Asus TF300T

Old: HTC Wildfire, Samsung galaxy tab, HP Touchpad, HTC Sensation

If I have helped you please click the thanks button below or click here to give me more dropbox space

DO NOT PM ME ASKING FOR HELP!

 
slamorte
Old
#8  
Member
Thanks Meter 2
Posts: 56
Join Date: Dec 2007
Is there any way to upscale standard DVDs using Handbrake or something else? I'm less concerned about the size of the file as I am with the quality of the video.

Everything I do rips only to 720 wide. It always looks pretty junky on the Tab's screen.

Sent from my SCH-I800 using XDA App
The Following User Says Thank You to slamorte For This Useful Post: [ Click to Expand ]
 
will6316
Old
#9  
Senior Member
Thanks Meter 27
Posts: 184
Join Date: Mar 2008
Ripbot264 is an excellant tool. With a lot of features and simple to use.
 
TheGrammarFreak
Old
#10  
TheGrammarFreak's Avatar
Senior Member - OP
Thanks Meter 684
Posts: 2,805
Join Date: Jul 2010
Quote:
Originally Posted by slamorte View Post
Is there any way to upscale standard DVDs using Handbrake or something else? I'm less concerned about the size of the file as I am with the quality of the video.

Everything I do rips only to 720 wide. It always looks pretty junky on the Tab's screen.

Sent from my SCH-I800 using XDA App
Yeah, follow these instructions. Use the arrows on the height field, and click the up one until it maxes out

Sent from my Legend using XDA App
Nexus 4: CM10.2
Nexus 7: CM10.2

Twitter | Blog

Tags
convert, dvd, films, galaxy tab
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes