I have 400 lame-encoded albums (alt-preset-standard MP3s). [Well, some I care less about are AACs at 192kbps if I'm too lazy, don't care about sharing the music with others, or don't care about the album enough to wait for the sluggish iTunes Blacktree compiled Applescript plugin (
http://blacktree.com/apps/iTunes-LAME).]
But one of my absolute
MUSTS is to have video that plays well on television without sacrificing too much space. I'm willing to deal with a few MPEG artifacts here and there (like some blockiness in total blackness), but I rarely notice at the settings I'm about to share (unlike the H.264 videos I get from iTunes or other iPod-ready apps). I average around 578MB per picture -- the larger ones being the longer ones, animation, or things I've converted from MacTheRipper.
BTW, with those 400 music albums, I've also got 53 movies on this 60GB ipod. I always carry a ipod to television converter, and I also use the doc w/ the MacBook Pro's remote control to be able to pause, rewind, etc (it's not like I'm going to use the remote for Front Row on the laptop for chrissakes

.
Anyway, my optimal settings are:
I pick out the main title (Handbrake usually figures this out for me, but when there are a lot of extra features, I make sure by running DVD player and look at the on screen stats to be sure). Get all the Chapters.
File Format:
MP4 file (uncheck "Create chapter markers")
Codecs:
MPEG-4 Video / AAC Audio
Video:
Framerate (fps):
Same as source
Encoder:
FFmpeg
2-pass encoding:
ON
(note: I
never use Grayscale encoding on modern movies (e.g. The Man Who Wasn't There by Cohen Brothers, shot in black & white. It just looks bad. But old grainy Hitchcock movies from the 30s or something, it's fine.)
Quality:
Average bitrate (kbps):
575-675
I usually use an average bitrate of
600kbps, but for my favorite movies I use 650-675, and for movies that don't have a lot of action, I might go as low as 550-575 (like, oh, say, "Dogville"

) From calculating the average of the iTunes reported "Total Bit Rate" for each of the 53 movies, the average came to be 576.23 kbps for all of them. Almost all of them were 576 and 577 kbps, but there were a handful that I had to rip using MacTheRipper, which oddly enough had the highest bitrates somehow (in the 800-860 range). Not sure why.
Limitations of H.264 and MPEG-4: As I'm sure it's been discussed, the reason I don't use H.264 (and maybe my info's outdated now) are the restrictions on making it work on the iPod. I want to watch my movies on the iPod
and on the television (admittedly, I use the TV most of the time). I can live with the iTunes episodes in H.264, but they're not up to my standards.
Here's some facts you probably already know about the iPod video:
[list=]Both MPEG-4 and H.264 cannot exceed 30fps.
If you use H.264 you
must use the
x264 baseline profile for iPod.
If you use MPEG-4, select
FFmpeg.
H.264 must
not exceed an
Average Bitrate of 768kbps.
MPEG-4 cannot exceed
2500kbps.
H.264 cannot contain more than
76,800 pixels (size of height x size of width which is measurement of total screen pixels.
MPEG-4 cannot exceed
230,400 pixels.
H.264 cannot have more than
300 macroblocks (This is
important; I'll explain this in a second).
MPEG-4 cannot exceed
900 macroblocks.[/list]
Picture Settings:
As I'm sure everyone here knows the video iPod (at least when I got my 60GB one) has limitations in total pixels. Since I use MPEG-4, that's what I'll discuss:
First off,
always use 2-pass encoding. I know it takes forever (not so much on these new Intel Macs, but the extra pass makes a world of difference.
Now click on the "Picture Settings" button. The newer version of Handbrake does a good job of calculating what will fit, but not always. Most everything on DVD will be
720x480 = 345,600 pixels, which won't fit within the 230,400 pixel limit. So, in the picture box that pops up:
[list=]Click
Keep aspect ratio if it's not already on.
UNCLICK Anamorphic (PAR) option.
Set Crop to
Automatic.
Click
Deinterlace Picture. Many DVDs don't need to be deinterlaced, but I always keep it on because I've run into too many old (and even NEW DVDs that weren't encoded right).
[/list]
NOW: calculate the Width and Height measurements by multiplying the two numbers. If it's more than
230,400 pixels, then nudge the
Width down until multiplying the numbers fall under the 230,400 number above.
Once you're under the 230,400 pixel maximum, there's one last thing you have to do: Make sure you don't exceed the max number of macroblocks. Take the Width, divide it by 16 and remember that number. Then take the Height, divide it by 16, and remember that number. Then multiply those numbers together and see how it compares the the maximum MPEG-4 limit of 900 macroblocks. If it's over 900, you'll have to nudge down your width (since Aspect Ratio was checked, the height will lower when appropriate) in order to keep this calculated number below 900 macroblocks.
Once you've got the picture size under control, the worst is over. You've not maximized the size of your video for television use without having to compromise using Handbrake Lite or one of the crappy knock offs that are one-press crappy encoders.
Now go back to your main screen (Close button at the bottom of the Picture Settings screen).
Personally, I always turn on the "Enable queue" button and then click the "Add to queue" button. Out of paranoia and double checking, I then click the "Show queue" button to show the list of the two passes. Close that, then click "Start".
Now
wait. If you need to leave or something, click the "Pause" button, put your laptop to sleep, and then resume later.
p.s. If you absolutely MUST use h.264, I've never run across a better codec than the VideoLAN x264 codec that comes with HandBrake. The only other codec that comes close is On2's latest codec that Macromedia/Adobe snatched up (which really isn't mentioning since it's non-standard/proprietary).
Good luck,
--
Jefe