Freitag, 18. April 2014

I want the best and I want it fast - debayering Magic Lantern raw footage

You might already guessed it from my previous posts - Magic Lantern raw recording is the best thing that happenend to the Canon 5D Mark III in a long time. It actually made me consider it a proper tool for filmmaking again. I love the sharpness, the colors and the resolution.

What I don't like very much is how long it takes to debayer footage with the ACR (Adobe Camera Raw) solution.

The other option is CPU-supported debayering via Resolve (I know, I already pointed that out in the previous entry). Andy and the other good people over at Cinelog actually made a huge improvement to the whole process and they're making it better as I type these words. I had a chance to try out the beta versions of the (yet unreleased) Cinelog-C LUTs, which will make it a whole lot easier to achieve even better Rec.709 results that don't require any change in saturation or mid gain.


While they're still optimizing the new LUTs for the Cinelog LUT bank, I want to present my way of working with Cinelog LUTs in Resolve Lite with this little tutorial - enjoy!

Sonntag, 13. April 2014

Working with 5D3 Magic Lantern raw footage on OSX

Magic Lantern is the one free software add-on for the Canon 5D3 that offers the incredible possibility to record full-frame film in uncompressed 14bit raw. Explained in short this means the information from the 5D3's bayer sensor is directly recorded, bypassing the shortcomings of the standard h264 recording codec of the camera. We'll end up with much sharper, detailed material that doesn't fall apart when being graded. Apart from that there are more features that come with the Magic Lantern add-on, for example Zebra, Peaking or the possibility of "cropping" the sensor readout (3x magnification without any loss in pixel resolution).

In case you're interested in the details, visit the Magic Lantern homepage and / or check out the DVXUser guide to Magic Lantern raw.

Even though the Magic Lantern software add-on is for free (but you're invited to tip those extremely talented programmers via Bitcoin), it still comes at a certain price concerning storage and workflow:

As the data rate of raw video is way higher than the usual h264, reliable raw recording of full HD (1920x1080) material at 24 or 25 frames per second will only be possible by using really fast CF cards. After trying out a variety of UDMA7-compatible types of CF cards (Lexar, SanDisk, Komputerbay), I found the (rather expensive) SanDisk Extreme Pro 160MB/s the most reliable option for my camera, at least at the size of 128 GB.


That being said, even those cards delivered some drop frame errors when being formatted as ExFAT, but with the camera-internal FAT formatting, they proved to be a reliable option (don't worry, the raw video files will be split to overcome the 4GB-per-file limit of FAT). 

There are two different file formats that Magic Lantern offers to record raw video, RAW (only video information) and MLV (video & audio information). As I always need sound as sync source on my jobs, I only record in MLV. 

Once the recording is finished, the MLV files will be transferred to my Apple workstation. Don't forget, we are recording raw information directly from the Bayer sensor inside the camera (kinda like REDRaw, but without the 1:2 compression), these visual informations need to debayered before they can be taken to the NLE of your choice. The cool thing is: we're dealing with raw information, so white balance, tint etc. can all be set after the actual recording has taken place. I would call that "recording without a picture profile". 

There are a couple of tools available on the OSX platform to process MLV files: 

The MlRawViewer makes it possible to watch MLV files directly from the Finder without prior debayering. A very nifty solution on set, as it is impossible to play back the recorded files directly on camera in real time (but they can be watched in non-realtime to check the framing etc.). MLRawViewer can also be used to debayer the images properly and export them either as DNGs (single raw image sequences) or Apple PRORES files (set white balance first!), but at the moment, this process is CPU-based and takes quite a while. 

The option I am using at the moment to debayer my recorded videos is decoding the MLV files as DNG sequences via MLV Mystic and then importing these into Blackmagicdesign's DaVinci Resolve Lite 10. This free version of the popular color grading solution is able to perform a GPU-based debayering of the raw image sequences in realtime on my workstation. In conjunction with the awesome Cinelog LUTs for DaVinci Resolve, which will help to interpret the color information from the 5D3 sensor properly, we have the possibility to obtain proper PRORES422 or PRORES4444 video files for hassle-free editing (or further grading) within the NLE of choice. 
For quick jobs, we can choose to debayer directly to REC709, while staying on the Cinelog profile or exporting as Arri Alex Log C gives us the freedom to further grade the footage to our likes. 

While the method mentioned above is my personal preferred path to deal with DNG sequences out of MLV, there are other options to debayer the recorded 5D3 sensor information. ACR (Adobe Camera Raw that comes with Photoshop or Lightroom) does probably the best job in interpreting this data, but it is not really batch-able and takes a longer time. As a sidenote, the Cinelog profile mentioned before is also available for ACR. 
Some NLEs can also interpret CDNG (Cinema DNG) sequences directly, but the lack of possible white balancing within FCPX makes it a lesser option in my case. 

Here's a quick comparison between the different debayering possibilities (no color change applied) while we can also see how much resolution is being "taken away" when using the internal h264 recording:

h264 vs Cinelog Resolve vs Cinelog ACR from superhypernatural on Vimeo.

Sonntag, 6. April 2014

Going back to Full Frame - the return of the 5D3

My first ventures into the land of DSLR shooting were with the good old Canon 7D back in the beginning of 2010. A lot of effort was put into getting the DSLR to a level on which it would be possible to do video / film work with it efficiently.
And while the shallow depth-of-field look and the colors were appealing, moiré and aliasing made a lot of pictures I envisioned impossible. Even though, there was enough film work done with the camera to justify the expenses. 

Still, it was not pleasing enough, which made me return to standard videographer equipment later that year. The Canon XF305 I purchased in late 2010 still is my main partner for ENG work. Convincing professional codec, reliability and ease of use.

When Canon released the 5D3, I immediately hopped on board to use it for a short film that still hasn't been released. Most of the lenses and rig equipment I owned from my 7D days were compatible, so the transition was smooth. The picture quality was much more appealing than the 7D, gone were the days of moiré and the aliasing is as good as it gets for a 1080p camera. With a bit of sharpening in post, the 5D3 finally delivered lush full-frame videos. 

Because of lacks in regards to handling and versatilty, the 5D3 was mostly used for still photography after my short movie shoot. The XF305 was simply the better camera for everyday video needs. The acquisition in a broadcast standard 4:2:2 50 mbps codec gives me footage that wouldn't break apart as easily as the 5D3's h264, so there simply was no reason to pick up the DSLR for motion pictures. 


2013 was packed with on-location audio & video jobs for a variety of different production companies and TV stations. Work got a bit slower in the beginning of 2014, which also gave me some time to re-think possibilities and tinker with the tools I already had in my closet. The one thing I had heard about a lot but never actually implemented was the Magic Lantern "operating system addition" for Canon DSLRs done by extremely talented programmers. While ML adds a ton of useful tools for video acquisition like Zebras and Peaking, it also enables my Canon 5D3 to capture full HD raw video with a color resolution of 14 bit, turning it into one of the only full-frame raw video cameras on the market today. 

And while the workflow is a wee bit complicated, the results are so impressive that my focus for filmic work is back on the 5D3.