From WebOS101
@ECHO OFF
REM I'm trying to fit some exercise videos onto my Palm Pre v1. My priorities are that video and
REM audio are useable, that I reduce file size as much as possible because I'm fitting
REM hours of DVDs into the 8GB device and want to leave space for normal things like
REM like my MP3s and any pix or videos I capture with the camera.
REM
REM In the below, I tried several things including:
REM
REM - MPEG-4 encoding. I tried x264 but the video player wouldn't use it.
REM - Dimensions: 480x368
REM - 2-pass encoding. I can't tell what difference this is making but I don't mind
REM the process take longer if it means I'm happier in the long run with the work
REM product.
REM - reduced the video kbps bandwidth
REM - 1000 and higher. I think something like 1000 or 1500 is the default but
REM this left my phone "stuttering" and unable to play back the file.
REM - 400 looks good. I ran across internet pages suggesting that their ordinary
REM DVDs were transcoded down to 500 kbps.
REM - 300, currently unknown how it behaves. Still transcoding for it
REM - 200 very chunky and I'm not sure if it's useable for me
REM - Color video. I tried using the "-g" black and white setting but this turns out
REM not to reduce file size at all.
REM - AAC audio at 64 kpbs. This sounds great so I'm tempted to see how it sounds if
REM I reduce it further.
REM
REM Tools I'm using and why:
REM
REM - Handbrake for Windows
REM
REM I was only transcoding the 13 P90X DVDs so my experience is limited.
REM
REM It was easy for me to use and it was recommended to my by the Apple-using folks.
REM I had a lot of trial-and-error to arrive at settings that would work. Key here
REM is to actually test the output on the device. I lost a lot of time to assuming
REM that the x264 support would work flawlessly.
REM
REM The title/chapter system for the first disk read flawlessly. There were two
REM primary "movies" and Handbrake automatically identified the longest one when
REM told to run in full-auto mode.
REM
REM I eventually settled on running Handbrake from a batch script because it was
REM to experiment with varying options or to do disks in bulk by just using one
REM command as template with copy/paste.
REM
REM Further, the next 12 disks seem to have some problem with unscannable titles.
REM This problem doesn't show up when using the disks as intended as a regular DVD
REM but did cause seeming I/O errors. I think there's just something funny about
REM the titles 10-13 on these disks. To get around that, I used Windows Media Player
REM to identify exactly which titles and chapters to use.
REM
REM - Windows Media Player
REM
REM This is pretty key for identifying which title I wanted to extract and which
REM chapters. I was unable to use Handbrake's title scanning feature because of
REM some bugs with the DVD's programming.
REM
REM Even so, it's a nice touch to know that I want "-t 1" for title #1, and chapters
REM "-c 2-25" to skip over the splash-screen in chapter 1 and some adverts in the last
REM couple chapters. I'd now probably do title/chapter selection by handle all the time
REM since the final output is so much nicer, getting to skip
REM
REM - AnyDVD 1.6.8.0:
REM
REM I thought maybe this would help Handbrake get a handle on some DVDs it wasn't
REM quite able to read. Now I'm not sure if I need this or not. It seems like
REM the proper way to use this is just to have it running when I use a DVD.
REM
REM I'd probably need this if I had to deal with region-restricted disks like that
REM UK-only disk I've got an eye on.
REM
"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "D:\VIDEO_TS" -t 2 -c 2-25 -o "C:\Users\jjore\Documents\p90x\power90-uml.m4v" -f mp4 --detelecine -w 480 -l 368 -e ffmpeg -b 300 -2 -a 1 -E faac -6 mono -R Auto -B 64 -D 0.0
"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "D:\VIDEO_TS" -t 3 -c 2-25 -o "C:\Users\jjore\Documents\p90x\power90-cardio.m4v" -f mp4 --detelecine -w 480 -l 368 -e ffmpeg -b 300 -2 -a 1 -E faac -6 mono -R Auto -B 64 -D 0.0
"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "D:\VIDEO_TS" -t 1 -c 2-51 -o "C:\Users\jjore\Documents\p90x\01-chest-and-back.m4v" -f mp4 --detelecine -w 480 -l 368 -e ffmpeg -b 300 -2 -a 1 -E faac -6 mono -R Auto -B 64 -D 0.0
"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "D:\VIDEO_TS" -t 1 -c 2-56 -o "C:\Users\jjore\Documents\p90x\02-plyometrics.m4v" -f mp4 --detelecine -w 480 -l 368 -e ffmpeg -b 300 -2 -a 1 -E faac -6 mono -R Auto -B 64 -D 0.0
"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "D:\VIDEO_TS" -t 1 -c 2-57 -o "C:\Users\jjore\Documents\p90x\03-shoulders-and-arms.m4v" -f mp4 --detelecine -w 480 -l 368 -e ffmpeg -b 300 -2 -a 1 -E faac -6 mono -R Auto -B 64 -D 0.0
"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "D:\VIDEO_TS" -t 1 -c 2-84 -o "C:\Users\jjore\Documents\p90x\04-yoga.m4v" -f mp4 --detelecine -w 480 -l 368 -e ffmpeg -b 300 -2 -a 1 -E faac -6 mono -R Auto -B 64 -D 0.0
"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "D:\VIDEO_TS" -t 1 -c 2-45 -o "C:\Users\jjore\Documents\p90x\05-legs-and-back.m4v" -f mp4 --detelecine -w 480 -l 368 -e ffmpeg -b 300 -2 -a 1 -E faac -6 mono -R Auto -B 64 -D 0.0
"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "D:\VIDEO_TS" -t 1 -c 2-52 -o "C:\Users\jjore\Documents\p90x\06-kenpo.m4v" -f mp4 --detelecine -w 480 -l 368 -e ffmpeg -b 300 -2 -a 1 -E faac -6 mono -R Auto -B 64 -D 0.0
"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "D:\VIDEO_TS" -t 1 -c 2-45 -o "C:\Users\jjore\Documents\p90x\07-strech.m4v" -f mp4 --detelecine -w 480 -l 368 -e ffmpeg -b 300 -2 -a 1 -E faac -6 mono -R Auto -B 64 -D 0.0
"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "D:\VIDEO_TS" -t 1 -c 2-33 -o "C:\Users\jjore\Documents\p90x\08-core.m4v" -f mp4 --detelecine -w 480 -l 368 -e ffmpeg -b 300 -2 -a 1 -E faac -6 mono -R Auto -B 64 -D 0.0
"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "D:\VIDEO_TS" -t 1 -c 2-45 -o "C:\Users\jjore\Documents\p90x\09-chest-shoulders-triceps.m4v" -f mp4 --detelecine -w 480 -l 368 -e ffmpeg -b 300 -2 -a 1 -E faac -6 mono -R Auto -B 64 -D 0.0
"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "D:\VIDEO_TS" -t 1 -c 2-51 -o "C:\Users\jjore\Documents\p90x\10-back-biceps.m4v" -f mp4 --detelecine -w 480 -2 -l 368 -e ffmpeg -b 300 -2 -a 1 -E faac -6 mono -R Auto -B 64 -D 0.0
REM 10-back-biceps
REM 11-cardio
"C:\Program Files (x86)\Handbrake\HandBrakeCLI.exe" -i "D:\VIDEO_TS" -t 1 -c 2-16 -o "C:\Users\jjore\Documents\p90x\12-ab-ripper-400.m4v" -f mp4 --detelecine -w 480 -2 -l 368 -e ffmpeg -b 300 -2 -a 1 -E faac -6 mono -R Auto -B 64 -D 0.0