Hi! Thanks for visiting my blog. If you've received any value from my content would you mind supporting my new startup by downloading our browser add-on? It's called PriceBlink and makes online shopping a breeze. You can watch it in action here and download it for Chrome, Firefox, IE, or Safari by going to PriceBlink.com. Thank you and I hope you enjoy!

Giving More Memory to Aptana

Sep 10

The one major complaint I’ve had with Aptana on OS X is that it’s super-slow. I’m running a 1.67GHz Powerbook w/ 2GB RAM and it still brings my system to a screeching hault. I’ve been digging around trying to allocate more memory to the Java VM and finally got it working today. This is something I’ve done in the past on Windows, but wasn’t sure how to approach this on my Mac. I read in the forums that the VM arguments are maintained in Aptana.ini and I searched for a good thirty minutes trying to find this file. After right-clicking Aptana.app a few times I finally stumbled across the Show Package Contents option:

aptana_memory_allocation.png

This was the magic trick. Within this package (folder) you’ll need to browse to Contents/MacOS/Aptana.ini. Open it up and specify the appropriate memory values. On my system I’m currently running:

-Xms256m
-Xmx768m

It appears to be running smoother although not as well as I’d like. I guess at some point I’ll need to go MacBook, but I can live with this for now. Hopefully this tip will save somebody a few minutes of frustration.

Read More

Go Elf Yourself

Dec 20

Most of my friends and family know that I don’t dance. It’s something I could probably work on, but I’ve never put much time and energy into it. OfficeMax has put together an incredibly viral marketing campaign that has me dancing all over the place. I love this type of creativity and once again it demonstrates the power of Flash. This dance is for you…and please be sure to link it up and post a comment if you create a nifty dance-o-gram.

dennis_dance.jpg

Read More

YouTube To Go

Dec 09

Let me start with a disclaimer that I’m not endorsing the distribution of YouTube videos in other video formats or even saving them to your computer. This was simply a proof of concept of taking a video from YouTube and having the ability to watch it offline. Also, with my never-ending quest to master FFmpeg and it’s encoding capabilities I wanted to see if I could encode Flash video files to QuickTime. I’ve spent a lot of time learning how to encode different video formats to FLV and thought it would be interesting to go in the other direction.

This howto was accomplished using the following tools: Live HTTP headers for Firefox and FFmpeg on Linux. I can’t see this being any different for Windows, but would like to hear if the process varies. I decided to start with the crazy video of this guy flying a tiny twin engine airplane:

youtube_airplane.jpg

When the video starts playing a request is made YouTube’s servers asking for the appropriate FLV file. This can be viewed through Live HTTP headers as seen below:

youtube_live_http.gif

If you copy this URL and paste it in your browser you’ll be prompted to save this file to your computer. The original file size for this file was about 8MB. After saving it all you need to do is fire up FFmpeg and run the following command:

ffmpeg -i PlV8WJ6N3nU.flv -ab 32 -ar 22050 -b 256 -s 320×240 youtube.mpg

Let the encoding begin:

youtube_ffmpeg.gif

You can feel free to tweak the values I’ve specified for each of the parameters depending on your desired audio/video quality. The values listed above are ones that I’ve found to deliver a QuickTime video near the same quality as the original. Let me briefly describe the params:

-i input file name
-ab set audio bitrate (in kbit/s)
-ar set audio sampling rate (in Hz)
-b set video bitrate (in kbit/s)
-s set frame size (WxH or abbreviation)
and the last, of course, is the output file name. After encoding the resulting QuickTime file as about 7MB. Now all you need to do is fire up your QuickTime player and watch the vid:

youtube_quicktime.jpg

It shouldn’t take much effort to encode your video to other formats as well.  Since I wanted to watch videos on my Mac I decided to go with QuickTime.  This process is fairly straight forward and feel free to drop me a comment if you have any problems.

One again: I’m not suggesting this is something you should do.  This was a proof of concept to demonstrate the power of FFmpeg and what better place to grab an FLV file then from YouTube.  Enjoy.

Read More

Extracting Video Frame at Specific Time Using FFmpeg

Dec 03

This post is LONG overdue. I’ve been playing FFmpeg for a long time now and through trial and error, along with this page, figured out how to extract a JPG frame from a video at a specific time. A reader recently posted a question asking how to get this done and I hope he doesn’t mind me posting a frame grab here:

test.jpg

This came from a Windows Media file and was grabbed using the following command:

ffmpeg -i n.wmv -ss 00:00:20 -t 00:00:1 -s 320×240 -r 1 -f singlejpeg myframe.jpg

If you haven’t seen FFmpeg’s overwhelming parameter list then beware. This might look like a complicated command, but given FFmpeg has over 100 parameters this really isn’t much. Here’s what the parameters mean:

-i input file name
-ss set the start time offset
-t set the recording time
-s set frame size (WxH or abbreviation)
-r set frame rate (Hz value, fraction or abbreviation)
-f force format

The last paramter is actually the output file name. I can’t tell you how excited I am to finally get this working. If you have any problems with the command above then please be sure to contact me.

Read More

Introducing Ublip.com – Location matters

Nov 29

I’ve had this idea for over a year now about the ability to share important locations with friends and family. Call it a digital canvas on a map that allows you to pinpoint a location, tell a story, and share photos for all to see. This stems from my passion for location based services and seeing the potential of marrying an on-line social network with mobile devices. As the mobile device market is still very fragmented, and due to carrier restrictions devices with GPS capabilities are few and far between, it made sense to deliver this experience initially through a desktop browser. This little concept is called Ublip (www.ublip.com).

While having lunch with a good friend of mine, Nick Palmby, we discussed the idea and he encouraged me to bring this idea to life. Ideas are plentiful for me, yet sometimes it takes the motivation of friends and families to push the concept over the edge. In most cases, the next step is validating whether the idea will sink or swim. In this case feedback from the user community has been very positive, and to be honest, it’s hard to keep up with the demand. We’re not attempting to be the next MySpace or Facebook as there are plenty of social copycats. I believe there’s something more to social networking that ties into location and having the ability to share common interests geographically. I’m by no means declaring ownership of this space. If you look around you’ll see many ventures aimed at the same market: Flagr, Platial, Plazes, and Wayfaring to name a few. Yet this doesn’t deter me from investing time and energy into Ublip. There’s unlimited potential with what can be done with a service like this. Realistically, it comes down to finding that niche and pushing forward with it. The niche IS NOT sharing locations on map as I mentioned earlier that’s being done in many different manners. It extends beyond that and I’ll follow up with a few posts discussing what I’ve learned over the past couple of months.

Nick has been responsible for being the “voice of the community” and done a tremendous job at that. Many friends have consistently provided feedback and helped understand what our users are asking for (a special thanks to Marwan, Tony, Matt, Curtis, Mike, Bill, Adam and many more). I’ve been trying to stay involved at some level, but have spent lots of late nights building Ublip using Ruby on Rails. It’s been a tremendous learning experience and we’re continuously brainstorming ways to differentiate ourselves and build something that sets us apart from the rest.

I get a lot of emails asking “what’s next for Ublip?” and “where do we go from here?”. All I can say is that we’ve BARELY scratched the surface and as I mentioned earlier the mobile device integration is an essential piece to this puzzle. There is a mobile application under develpment, but once again there are so many delivery platforms (WAP, J2ME, Symbian, Brew, Windows Mobile, etc) that it tends to get a bit overwhelming. We’re starting with J2ME since most of our users have Java enabled devices. Yet, once again, GPS is limited so the process of adding a “blip” will be somewhat manual initially. There are many talented engineers trying to solve the problem of pinpointing a device’s location so we’re constantly trying to keep informed of what’s happening in the LBS space.

I’ve mentioned the term “blip” and I’d like to take a minute to clarify that. Merriam-Webster defines a blip as “a spot on a radar screen“. It seemed fitting to me to add “blips” on a map and since users are doing it the term Ublip resonated. I can’t even begin to describe the lengthy and painful process of determining a name for this venture. My thoughts are find something you love and stick with it. We could have easily settled on “geotaggedmaps” or “locationbasedmaps”, but those are hard to use in an active context: “you should blip that restaurant because it had great salsa”. I think Google can take credit for becoming a verb used in everyday conversations.

It’s incredible to see what users are posting and how Ublip is becoming a part of their daily lives. Ublip is still a work in progress and through this process we’re learning more about users want on how to create an appealing service that keeps them coming back. There’s been quite a buzz in the community about Ublip and the fact that it’s just Google Maps with some user-generated content overlayed. Agreed, but there’s much more to it than that. Or I should say there’s much more planned for future releases. Many investment dollars are being spent on trying to find where this space is headed and we’re doing the same….through sweat equity and lots of late nights. I’m positive we’ll figure out our niche and in the meantime we’ll pull our hair out and enjoy every minute of it.

If you’re reading this post I encourage you to sign up for a free account and give it a test drive. All you’re investing is a little time and a few keystrokes. At the very least you can share your favorite Christmas light display with the community! If you have any suggestions or comments you can share below or contact me directly: dennis at ublip dot com. Enjoy and thanks for reading!

Read More

CAPTCHA = I Must be Going Blind

Nov 19

I must not be human because I failed the CAPTCHA test three times before getting my post to go through on a highly trafficked community site. I wanted to share a couple of the CAPTCHA challenges and have you tell me whether or not I’m blind. It’s gotta be the white text on a light background (excuses, excuses).  I won’t share my guesses just yet until I get a few replies…..

captcha.gif

Read More