All posts by 3DM

“Aliasing” and “Moire”

The new “HDSLRs” do a fine job of shooting very nice HD video. But almost all are plagued by several problems that can ruin a good shot.

These problems are “rolling shutter” (previously written about on this blog), and “aliasing” and “moire”. Aliasing tends to introduce fake detail into an image, fooling people in to thinking its a sharper image than it really is – because its fake. Moire produces bizarre color patterns wherever there are narrowly spaced, using horizontal lines in the image.

This Barry Green article is the best explanation I’ve seen for explaining and illustrating the aliasing and moire problems with DSLRs shooting video:  DVXuser.com – Articles.

A great visual example of a moire pattern showing up in a real life situation is this video clip – about 30 seconds long. Just look at the roof of the hotel and watch all the false color shimmering going on. This example was shot on a Canon DSLR.

Here’s another example – look at the sofa cushions:

canon eos 60d video “moiré” problem at 1280×720 50 from emre karabakan on Vimeo.

Using the Roku Internet video box with a USB Drive

I bought a Roku box last month and its been quite a bit of fun. When we watch TV, we now watch Vimeo or Netflix. There is a lot of great “user created” content – in fact, I have not watched satellite TV in six weeks now and plan to terminate our subscription this coming weekend.

The new Roku box also supports an external USB drive – which could be either Flash or hard disk based.

Streaming my own videos from the drive has mostly worked fine. Except for some that pause frequently and say “loading, please wait”. Looking around the net, I found a number of mostly random explanations.

The simple reason is that the data rate of the videos I created (from my own video productions) was too high. I had encoded 1080/30p videos at 16 Mbps (same as BluRay discs).

I registered as a software developer (in real life I am a professional software engineer) with Roku and have downloaded the developer documentation.

According to the documentation, Roku supports .mp4 files, mov and .m4v files having h.264 video compression, and WMV9 SD and VC-1 HD video files, using constrained variable bit rate (VBR) encoding. (I have not succeeded in getting the .wmv files or .mov files to work, however.)

The frame rate must be either 23.976 or 29.97 fps and this is probably the key part – the average USB disk video bit rate is limited to 8 Mbps depending on the codec used and the peak video bit rate is limited to 1.5 x the average bit rate. (For streaming videos coming over the Internet, the data rate is limited to an average of 1.6 to 4 Mbps depending on the coding. For H.264 HD, its limited to an average of 3.2 Mbps.)

Depending on your MP4 encoding tools, you might have difficulty specifying precisely the options you want. The key goals, it appears, are to try and select a constrained VBR, set to less than 8 Mbps, at 23.976 (a.k.a. 24 fps) or 29.97 (a.k.a. 30 fps).

I am doing some experiments with encoding at different data rates to see what happens and I will probably post an update later.

One thing that is clear – encoding a 1920x1080p video is sort of a waste of time since you’ll have to encode it at less than 8 Mbps. At that level of compression, a 1280x720p at 8 Mbps will actually look much better. (Well, unless your video is mostly static images with little movement.)

Consequently, while the Roku box really does support 1080p, you are unlikely to see video clips that are actually any better than 720p. In fact, most people cannot tell the difference between 720p and 1080p anyway, especially if the screen is less than 55 inches.

Update: On Mac OS X, I used MPEG Streamclip to create some 1280×720 video files for playing off a USB drive with the Roku. At about 7.5 Mbps, the video almost plays without buffering. I probably need to pick a slightly lower data rate – may be 7.2 Mbps for the video clip.

I had much better success playing some 8, and even 12 and 16 Mbps encoded videos produced by the Magix Movie Edit Pro 17 program on Windows 7.

I am guessing that it is not strictly the data rate but the “complexity” of the h.264 encoding used as well as whatever the unspecified “peak” data rate might be. MPEG Streamclip does not provide many options to control the h.264 encoding while Magix provides overrides of just about everything. Again, I’m guessing here but I suspect that MPEG Streamclip might be using one of the higher complexity profiles, or setting the “peak” rate to perhaps 2 x the selected data rate, and the Roku just can’t keep up.

I do think we’ve identified why some of us have received the “loading” message periodically while trying to play our own videos off a USB drive using the Roku box. The solution is to encode at a data rate probably between 7 and 8 Mbps using a variable bit rate h.264 encoder and setting the peak data rate, if you can set it, to something less than 12 Mbps.

2011 Camera Predictions by Thom Hogan

2011 Predictions by Thom Hogan.

Having just returned from the 2011 CES, I find myself in general agreement with his predictions. I also see he has a Spokane, Wa connection; didn’t realize that.

Worth reading what Thom has to say – whether you agree or disagree. My sense from CES is that Sony and Panasonic are mostly heading in the right direction in the future, except for Panasonic closing off the hacking door on the GH-1. Very, very dumb move. I wish the camera makers would have their DSLR staff talk more with their video staff. They make great new DSLRs but leave out things like on screen zebras, audio level controls, or auto focus lenses – or if they have them, the focusing mechanism is noisy, which doesn’t work in audio/video!

And no one seems to have a DSLR with video that also includes a simple headphone audio output – monitoring your audio is usually pretty critical!

Canon, Nikon and the traditional camera makers seem bent on ever more pixel resolutions – although most camera makers are now acknowledging the need for better low light performance. Low light and super high resolution imagers are generally at odds with one another.

Canon introduces new “low light” camcorders

Canon today introduced a new high end consumer camcorder line that features 1/3 sq in CMOS sensors – but having only 1920×1080 resolution. Rather than the typical gigapixel sensors being put into many consumer camcorders or still cameras, they have opted to go with a larger sensor having fewer pixels. This means each pixel’s surface area is larger and can capture more light. That in turn means the new cameras will work much better in low light and have greater dynamic range.

Looks like the new cameras also shoot 24p, in addition to 30p (wrapped inside a 60i stream) and 60i.

More information here – watch the Canon video explanation.