09/24/2011, 03:43 PM
Attention: Query string updated 9/26 with better aspect ratio control and file size
Took me a while to find a good method for easily converting any file to a TouchPad compatible format with minimal user input, good file size, acceptable quality and most importantly, working in the stock media player. Figured I'd post my findings here in case anyone else is interested in a similar setup.
What This Does:
Right click any file, Send To > Convert for TouchPad and your file gets copied to the watch folder with your suffix (e.g.- .touchpad) and WatchFolder automatically begins converting it and then drops it in your destination folder. You will be able to see the encoding progress in a small transparent window on the bottom right of your screen. If your TouchPad is plugged in you can have WatchFolder automatically copy files to it after encoding is complete.
1. WatchFolder for Handbrake - download here
2. My batch file - code here or below
WatchFolder.exe monitors a given directory (or two) for new files and then converts them using the Handbrake CLI with the specified profile (or custom query).
The batch file simply takes any file, appends your specified suffix and then throws it in the watched folder for conversion.
Step by step:
1. Download Watchfolder
2. Install it, run it, open the settings dialog (right click in system tray > settings).
3. Choose your source directory. This is the folder where you drop files to be converted.
4. Choose your target directory. This is the folder where files will be placed after conversion. This folder can be the same as source, just make sure you have "ignore m4v and mp4 files" checked so it doesn't keep trying to convert your files over and over.
5. File extension: mp4
6. The other settings are just preference, here are mine:
7. Under Choose Preset, paste the following into the text area:
Note: If you want a slightly better quality, change "-q 22" to 20 or 18. I found 22-24 is great for most tv shows but some movies weren't quite up to par unless I went with 20 or less. Personal preference. The lower you go, the bigger the file.
-f mp4 -w 1024 --loose-anamorphic -e x264 -q 22 -a 1 -E faac -6 dpl2 -R Auto -B 160 -D 2 -x bframes=0 --verbose=1
8. Click "Save As Custom Query"
9. Click "Update settings..."
10. Right click the tray icon > settings and this time under Choose Preset: pick "Custom Query". You should see the text you pasted earlier.
Optional: If you want to automatically transfer files you convert to your TouchPad, make sure your TouchPad is plugged in (USB Drive Mode), click the "After Encode" tab at the top of the WatchFolder program and browse to the directory you want your file to be copied to on the TouchPad. Make sure to check "Enable this feature?".
11. Update settings one more time.
12. Create a new file in notepad with the following code:
13. Edit the WATCHDIR and SUFFIX variables to match your setup.
:: this should be the same as "Source - Directory to Watch" from Watchfolder.exe (local or network path)
:: change this to whatever you want to append to the output file or leave blank to keep filename the same
:: create a variable with the new filename
:: copy file to watched directory using new filename as destination change this command to "move" if you would rather move the file.
copy %1 "%WATCHDIR%\%NEWNAME%"
:: uncomment the line below if you want the window to stay up after copying until you press a key
14. Save it as something like "convertfortouchpad.bat", doesn't matter where.
15. Go to start > run, paste "%APPDATA%\MICROSOFT\WINDOWS\SENDTO" and press enter.
16. Create a shortcut here to the .bat file you saved in step 14 and name it something like "Convert for Touchpad"
17. Done! Right click any file, Send To > Convert for TouchPad.
The resulting files are a reasonable size (~1gb for full movies), maintain a pretty good image quality and play 100% in the stock media player. This method also embeds metadata so you actually see a thumbnail in the media player and not just a generic media file icon.
Next thing I'd like to do is create an automated task for moving converted files to the media folder on the TouchPad that gets triggered when it's plugged in as opposed to relying on having the TouchPad plugged in while the files are being encoded. Anyone have some leads on the easiest way to do this?