December 22, 2010

2011 Updates!

Filed under: General — spiro @ 10:33 pm

I took some time to work on my blog before the new year…

  • New background image, courtesy of Dotter. Dotter generates a polka dot background picture based on colours you specify.
  • New CSS to make things look more web 2.0-ish.
  • You need to solve a CAPTCHA to post a comment, so spammers can’t pollute the comment moderation queue.

Let me know what you think of the new design, and most importantly, if you find display bugs.

Happy holidays and happy new year.

Edit: Here’s how the old theme looked like, for archival purposes:

Stripping Commercials Out of Media Center TV Recordings

Filed under: Microsoft,Technology — spiro @ 7:40 pm

I loathe being advertised to, and I don’t understand how ads are even effective, since I very rarely ever go buy a product/service based on an ad I’ve seen. When they appear on a DVR recording, I have to manually fast-forward them, and they waste precious space on my hard disks. Fortunately, there are tools that allow you to do that. Unfortunately, they’re generally buggy, don’t come with any documentation, and difficult for one to understand and use.

One such tool is DVRMSToolbox. Unlike other tools, it actually works on Windows 7, but it’s essentially a mish-mash of executables, with documentation for Windows Vista that’s hard to follow and to make matters worse, a web forum with loads of “me too, I can’t get this working either, please help” kind of replies instead of working solutions. I was able to get something working, though I could not figure how on earth to get it to work with .wtv files (it’s built for Vista which uses .dvr-ms files). Another issue I ran into is that it works on the recordings as they come in, which grinds the system down to a halt (even on a quad-core).

Fortunately, I was able to poke around and take a look at the package and figure out what’s going on, and how to write batch scripts to accomplish things, and wrote a nice batch file which I can trigger through the built-in Windows Scheduler at 4 am when I am sleeping and the system is idle:

@echo off
set mediafolder=%1
set wtvconverter=%systemdrive%\windows\ehome\wtvconverter.exe
set dvrmstool=%systemdrive%\Program Files (x86)\DVRMSToolbox\DVRMStoMPEG.exe

echo Usage: runcomskip.cmd [path/to/media/folder]
if mediafolder=="" goto:eof
for /r %mediafolder% %%a in (*.wtv) do call:do_conversion "%%a"
goto:eof

:do_conversion
rem do conversion here args = %~1 ...
set wtvfile=%~1
set dvrmsfile=%wtvfile%.dvr-ms
set mpegfile=%dvrmsfile%.mpeg
echo *** Begin processing file %~1 ***
echo Converting to dvr-ms %dvrmsfile%
%wtvconverter% "%wtvfile%" "%dvrmsfile%"
echo Running comskip and converting to mpeg %mpegfile%
"%dvrmstool%" /if="%dvrmsfile%" /of="%mpegfile%" /p=32 /act="converttompgwocommercials"
rem Rename the wtv file so we don't attempt to re-convert it if we run the script again.
rem I'll be changing this to delete the file when I'm sure my script works 100% of the time.
rename "%wtvfile%" "%wtvfile%.old"
echo *** End processing file %~1 ***

goto:eof

(to use, copy this into a text file and save it as runcomskip.cmd)

I’m using the WTV to DVR-MS converter that ships with Windows to convert the files to the older DVR-MS format. There are no tools (that I know of) that will work with WTV. Once the file has been converted, DVRMStoMPEG will run Comskip, a freeware tool included with DVRMSToolbox to find commercials in the video, and will output the stripped video to MPEG. I ouptut MPEG since it’s a lot  more portable than DVR-MS and WTV, and AFAIK there’s no transcoding involved, all it should be doing is changing the container. I’m a bit wary of deleting the original files just yet. I want to make sure that the tools work right before running it on my recordings. I rename it so that the same files don’t get processed twice. The next step is to find a good batch encoder for archival purposes before my 1 TB DVR disk fills up. Right now I’m thinking of writing a simple cmd line encoder using the Expression SDK.

December 2, 2010

Hello Windows Phone 7!

Filed under: Microsoft,Technology — spiro @ 10:39 pm

After much wait, I am now proudly flaunting a Windows Phone 7.  Initially, I was planning to get the Dell Venue Pro, but the long wait for the device, and it’s bulkiness steered me towards the HTC HD7, on T-Mobile.

The Device

The HTC HD7 is a nice phone overall. I love the size of the screen on it, and its slimness: it fits better in my pocket than my older, tiny-screen HTC Touch. The 5 MP camera is totally amazing, and the LEDs do a good job as a flash, or even as a flashlight. It would be nice if they’d have a Super AMOLED screen instead of an LCD. A few disappointments, however, it uses a micro-usb instead of a standard mini-usb to sync so I have to buy new cables, and I wish the battery could hold more power.

The Carrier

In the process, I switched from Sprint to T-Mobile because Sprint doesn’t yet have WP7 devices yet, and I’ve really had enough of my HTC Touch. I’m a quite disappointed at the coverage, and the data speed. Indeed, in spite of being practically non-existent outside North America, CDMA is a much, much better cell phone system!

WP7

Finally, let’s get to Windows Phone 7. Overall I think they’ve done a great job, and my assessment is that it’s at least the equivalent, or better than the iPhone, give or take a few features. And if the rumored “January update” is true (I don’t know, I don’t work on the WP7 team), WP7 really can kick some serious iPhone ass! Sure, I think Android is way ahead in the game, but if they keep a fast-paced update release schedule, and does a good job supporting developers as well as device makers, I think WP7 has lots of potential.

  • The phone has a new UI. It works great after maybe 1-2 hours at the most of getting used to it. Perhaps a more complete setup wizard that does more than setup Hotmail would be nice.
  • I like the way the facebook/outlook/contacts/hotmail/gmail contacts sync together in the people hub. They need to include Twitter, and Ideally have an API that social netwok sites themselves can maintain.
  • It would be nice if calendar services like Google Calendar and Facebook’s events could also appear in the phone’s calendar.
  • The folder list in Outlook e-mail gets the job done, but looks very, very, very bland.
  • The marketplace is getting very crowded. That’s a good thing, but that will require at least organizing alphabetically.
  • The lock screen and password input is really nice. If you’ve used Windows Mobile, you know what I mean!
  • Internet Explorer sucks, but it’s way better than the one that shipped with Windows Mobile.
  • No ability to map the address of a Facebook event, not even on the Facebook application.
  • Bing search is quirky. Often, it will say Bing is not available after a long, long wait, even if I have a data and/or WiFi connection going on. If I try it a second later, the search results will show up quickly as expected.
  • IE has Google search as default, due to the carrier customizing it. Why the hell do we allow this? BING is the proper search engine now :p