Bat Converter Alpha

Bat Converter

Did you think I fell off the face of the earth?  No, I’ve just been busy moving Bat Converter up to its Alpha release.

Bat Converter is a Windows-only tool I developed to automate a process in which I regularly engage – converting video formats.  The three options are to set it up to (1) convert TV Recordings to mpeg, (2) convert any other video to a format compatible with the iPad or new iPhone as well has many Android devices (like my Droid Incredile), and (3) to convert to an iPad version, an iPhone 3GS version, an OGV version, and a flash video.   That’s right, Option 3 generates four output files for every one that you feed it.  Conversions occur in a minimized console.  When they are complete the destination folder will open with all your newly converted videos.  Other than the .wtv to .dvr-ms conversion, there is no progress window.  Converting videos is a long process.  I like to run my program and go to bed.  In the morning, there is my window open with all those files ready to do my bidding.

Specifically, I record TV using the Media Center in Windows 7, but I want to be able to watch it on my wife’s iPad, one of the few XP notebooks, or the Tivo HD.  That means the Windows TV (wtv) container has to be changed.  (Bat Converter uses the Windows 7 WTVConverter utility to generate the episode in the dvr-ms format.)  The original and this copy are left in the original folder.  The dvr-ms episode retains all of the original metadata and quality.  The dvr-ms episode is then converted to mpeg at the same quality level but without the metadata.  (Somebody please tell me how to retain the metadata.)  The conversion from dvr-ms to mpeg is done using an older version of FFmpeg.  The newer releases seem to have this ability broken.  By putting this mpeg version in the My Tivo Recordings folder, I can watch it on my Tivo in the other room (or change the name to the right format and watch it on XBMC).

By default, I place the mpeg version in the ‘Videos2Convert’ folder.   Along with most other formats (and more to come in future releases), any videos in this folder can be converted using option 2 or 3.  This is accomplished using the newer version of FFmpeg.  This software uses code of FFmpeg licensed under the LGPLv2.1. This software uses libraries from the FFmpeg project under the LGPLv2.1.  Since I have included the libx264 libraries, be advised that they cannot be used for any commercial purpose and are subject to the restrictions of their copyrights.

We like to have some shows on the iPad in case we get rained in at camp.  Using Option 2 and changing the output folder to the ‘Automatically Add to iTunes’ directory, makes those videos available the next time I sync the iPad with iTunes (find them under ‘Movies’).  I also use option 2 to convert videos family members have recorded in the myriad of current formats used by today’s cameras. Less often, I’ll use it to convert videos I downloaded from the internet.

The third option is handy for those of us who want to post videos for HTML5 compatible browsers.  It generates the three top formats.  By using those three formats with the <video> tag, the video can be used with the latest version of all the major browsers.  A bonus flash video is also generated just in case you want to degenerate to flash for users confined to older non-HTML5-compliant browsers.

Bat Converter can be placed anywhere on your computer.  You could even make three copies and configure one for each option.  Every time you run setup it reverts to the original default path configuration, though, so make sure the paths still point to the right place before you click one of the ‘Save” options.

A further note.   The graphical user interface (GUI) for configuration is on the MS Internet Explorer/Windows Scripting Host platform so if you don’t have those you’ll have to change the ‘batconverter-configuration.dat’ folder manually and skip running ‘setup.bat.’  I tested Bat Converter on four computers and the GUI did not function fully on one of them. I have one more project I want to finish using batch files, VBScript, and HTA.  Then, I’ll start working on learning a language that is less platform specific.  I love Linux, but I had to start somewhere and since I use Windows as my DVR . . .

This is an alpha release.  Your comments and feedback can help to make further versions better.  If anyone at FFmpeg or MPEG LA has a problem with how I’m distributing, I am happy to change or pull my product.  If you would like to thank me for building this for you, please feel free to make a donation to Habitat for Humanity ($3 suggested).

And now, without further ado, I give you the download link:

BatConverter.zip

UPDATE:  Per the comment below,There was a glitch in the initial release by which the ‘Save and Run’ button during setup only saved. That button has been removed. Please save the setup and then just run BatConverter.cmd until you need to change the setup. Then just run ‘Setup.bat’ again to make and save your changes.

BatConverter-alpha01.zip

Posted in Geeky | Tagged , , , , , , , | 1 Comment

Google TV

I admit that I am a borderline Google fanboy.  I am quite interested in the upcoming Google TV and read today’s post from Google with great interest.  Netflix, Amazon Video on Demand, YouTube?  Check.  Check.  Check.  Yes, they also have blip.tv and Pandora.

My question is how are they going to compete with my Boxee experience.  Boxee on my PC doesn’t support Amazon VoD but it beautifully integrates the TV shows I stream with those I record locally.  (The Boxee Box will have Amazon VoD.)  The Boxee clicker app makes it easy to search for shows.  I get video feeds from my Facebook friends and can easily send videos I see on my computer to Boxee for viewing on the TV.

The user interface isn’t as slick as XBMC or iTunes or Windows Media Center but the functionality seems to be all there.  It would seem like the only way Google TV could compete with Boxee would be to make the user interface better and, let’s face it, that has never been Google’s strength has it?  So, I’m looking forward to seeing what Google TV has in store for us, but, so far, I remain skeptical.  See what Google has to say for itself and let me know your expectations in the comments.

Posted in Geeky | Tagged , | Comments Off on Google TV

Verizon Brews a Virus

Until my Droid Incredible received the FroYo update, I had forgotten why I left Verizon those many years ago.  Now, I remember.

Verizon crippled the use of Google maps in order to get people to pay an extra $10 a month for VZ Navigator.   I wanted the Google experience then and I want it now.  So, I was greatly disappointed when I finally got my FroYo goodness to find that whenever I connected to my phone to my computer for those simple drag’n’drop file transfers that make my old iPhone green with envy, I now got not just a Verizon pop up trying to get me to download their software onto my computer, but Verizon hijacked my computer and took it to a web page touting that service.  And it did it every cotton pickin’ time I hooked up my phone to my computer.

Revenge of the Googler.  A little Googling lead me to this post by Adam3914.  I show it here as my continuing battle against corporations that use their position of power to exploit their consumers.  SHAME on you Verizon.  Your phone service is great, but your disrespect of you customers is deplorable.  And, yes, I know that Verizon is not the only carrier to strip features from their phones or an OS in order to peddle their goods.  They are, however, the only ones I know of to purposely install what I would consider to be a virus on what otherwise is a perfectly good phone.

So, without further ado, and a thank you to Adam3914.  Here is the cure:

dial ##7764726
Hit Call
Type Password 000000 (that’s 6 zeros)
Hit Feature Settings
Choose CD ROM
Click Disable
Hit menu, commit modifications (it will say no item changed)

There.  That’ll show’em.  Right?

Posted in Geeky | Tagged , , , | 2 Comments

I Never Said It Was Fast

If you read this blog for my religious, political, or environmental perspectives, this post is dangerous for you and you should just move on. If you worry that a program you don’t understand will screw up your computer, move on. This post is to share a pre-alpha batch file. You’ve been warned.

Problem:
Some smartphones, camcorders, and cameras record video in a format that cannot be viewed on the iPad. Viewing 720p on the iPad is awesome.

Solution:
If those videos are in any of the containers listed below, Bat Converter will convert them. “Bat” comes from “batch file” and does not in any way promise that the conversion will be fast. In fact, this program is pre-Alpha and may smoke your entire computer. I have tested it in Winows XP on a netbook. Some development work was done in Windows 7 on a proper computer but the project in its currrent state has not be tested on the platform.

Converts from:
wmv
avi
mpg
dvr-ms
mp4
flv
3gp

If you are the “dealer” to an iPad video addict, this tool may help. If you can improve it (shouldn’t take much) please share that back here with us.

1. Download Bat Converter
http://blog.trlong.com/wp-content/resources/BatConverter.zip

2. Unzip Bat Converter placing the folder in your “Program Files” directory

3. Download ffmpeg for Windows
http://ffmpeg.arrozcru.org/autobuilds/

4. unzip ffmpeg into the /BatConverter/batconverter-data/ directory

5. Place videos to be converted into the “Videos2Convert” directory

6. Run “setup.bat” once

7. Run “BatConverter.cmd” from hence forward until such time as you wish to change the paths where things are stored (in which case loop back to 6). If you’d like, set Windows to run it on a schedule.

I’m not that adept with ffmpeg parameters and am open to suggestions for improvements. I’m just happy this works for Joy’s iPad. I make no promise to develop this further since it works fine for me and I have a day job. Consider this a gift rather than a commitment (-:

For a more robust and user-friendly approach, check out Lifehacker’s iPad preset for Handbrake. I preferred my program because I can schedule Windows to run it on a regular interval and just “have my iPad videos appear.”

Posted in Geeky | Comments Off on I Never Said It Was Fast

In the Works

Just a heads up. I am nearing the final stages of my “watch my video recordings (Windows 7 and Tivo) anywhere on any device” mission. Part of that solution is home grown. When I finish my little portable app, I promise to share. Got an iPad or other portable 720p-capable device? This could help.

Posted in Geeky | Comments Off on In the Works