Vittle’s 720p HD Letterboxing

by qrayon 12. May 2013 16:25

Vittle banner 325x50

Vittle produces letterboxed (actually pillar-boxed) 720p HD videos, with black bars on the sides. There's an interesting reason for this: It turns out that YouTube and other services will only enable the HD option if your video is 720p (1280x720 pixels) or higher. 720p is also a 16:9 ratio, and of course the iPad's screen has a 4:3 ratio.

YouTube 720p Letterbox

In designing Vittle, we considered the following options:
1. Stretch the visible canvas from 4:3 to fill 16:9. This will cause distortion.
2. Letterbox the 4:3 content with black bars
3. Fit a 16:9 canvas in 4:3, which would lead to a smaller (20% shorter) effective canvas for writing on.
4. Only show 4:3 on the iPad, but actually record more of the canvas for 16:9 (making the viewport harder to control).
5. Record in the iPad's native aspect ratio, but then HD won't work in YouTube.

We picked option 2 as the one we think most people will prefer. This allows a perfect 1:1 mapping of the image you see on your iPad and the pixels in the generated video, so there are no surprises. This also enables fast native recording, avoiding a lengthy video processing step.

What do you guys think of the pillar-boxes? Is there another option you would much prefer? Please let us know. If enough folks need it, we’ll consider adding an option for other output sizes.

Cropping with iMovie

In the meantime, if you absolutely must remove the black bars or wish to stretch your video to fill the screen, iMovie for the Mac does have a handy crop feature. This Apple support document describes how. Your favorite movie editing tool on other platforms probably has a similar feature.

 

Thanks for your feedback! Hope you guys are enjoying Vittle!

Under the Hood: Insight into App Crashes - It’s all about the Memory

by qrayon 10. May 2010 00:00

In building Stickyboard and Quarter Shuffle, we’ve had to work very hard to optimize dynamic memory (RAM) usage on the iPad. Dynamic memory is not the same as storage memory (i.e. the 16GB, 32GB, 64GB of flash ram), which is analogous to hard drive storage on your laptop computer. All versions of the iPad contain only 256MB of dynamic memory, the same as the iPhone 3GS (the iPhone 3G only has half as much). In comparison, a typical laptop computer has 8 or 16 times that amount of RAM.

Actually, it’s worse than that. The base operating system on the iPad takes up over 100MB of that memory, which leaves around 150MB for services and Apps.

What makes things interesting is that certain built-in apps, namely Safari, Mail, and iTunes, actually run in the background and take up memory even when not active! Here’s a snapshot of one of our test iPad’s memory usage (using the Instruments tool):

image

Here, those 3 apps take up another 50MB of memory. After subtracting out all the other miscellaneous services (e.g. Bluetooth, DRM, location services, etc.), Apps are only left with around 50MB of memory to use. If an App ever tries to allocate more memory than what is available, it crashes, usually without warning.

The problem is that because background memory usage can vary quite a bit, it’s very hard for App Developers to predict what a safe maximum available memory is. For instance, you can see above that Stickyboard is taking up around 27MB of memory as a baseline. However, this can spike when loading boards, drawing lines, etc. In our testing, we’ve made sure not to exceed around 40MB of memory to leave a safe buffer. But if someone were to have a lot of tabs and complex pages open in Safari, or a large email active, available memory could possibly be lower than what is expected.

Tip: If you ever find your Apps frequently crashing on your iPad, try doing a hard reset. Hold down the Home and Power buttons down simultaneously for around 15 seconds until you see the Apple logo. This should reset background Apps enough to free the maximum RAM available.

 

Jailbreakers Beware

While we haven’t done any testing on Jailbroken iPads, we know that one of the top features is the ability to run apps in the background. This is going to dramatically reduce available memory for the foreground app! If you are running J/B, be careful about monitoring available memory. While we wish running any app in the background were possible today, it’s pretty clear that the planned multitasking services in iPhone OS 4 are the right way to deal with the very limited memory on the iPad and iPhone.

Let’s hope that the next version of the iPhone and iPad come with much more dynamic memory. Especially if the rumors about higher resolution screens and cameras are true, this will almost certainly require double or quadruple the RAM needed, just in order to deal with higher resolution images.

Powered by BlogEngine.NET 1.6.1.0 - based on Old School Theme by n3o Web Designers