00:00
63
EDIT: You can now do this workflow with the beta. The Merger in the zip file has an option to merge the alternating frames into a sequence or EXR files.

After checking out the Magic Lantern HDR footage yesterday (amazing) I decided to do a few tests here. Here's how the shots break down.

1. The original data flickers each frame between an overexposed and underexposed image. The "Underexposed" set is all the, well, underexposed frames.

2. The "Overexposed" set is the same scene but about 4 EV brighter. The original data was 25 FPS. You can think about the Underexposed and Overexposed sets as two separate 12.5 FPS tracks.

3. "Mask" is the generated mask using only the overexposed frame. Rather than blending the two streams using some crazy scheme, we're only going to take data from the Underexposed track only when the Overexposed track needs it.

4. The two tracks aren't sync'd. Hence the ghosting in some videos. Let's pick frame 82. The frames will come in this order:
- Underexposed Frame 82
- Overexposed Frame 82
- Underexposed Frame 83.
So we need to synthesize an Underexposed frame in-between 82 and 83. You could do this intelligently by using optical flow, but I've just done a per-channel MAX operation.

5. The Retimed track brought up by 4 EV and then blended with the Overexposed track using Mask as the mask. Then we get a sequence of EXRs which we can load into After Effects and edit with Ginger HDR. *EDIT: fixed.*

6. Tonemapped. In the interest of full disclosure, the parameters shown in the video don't exactly match the final output. I couldn't resist changing the parameters some more and didn't have time to recapture.

A few points:

1. Personally, I have a religious conviction against raw exposure blending. You shouldn't have the peculiarities of the exposure differential determining what your final image looks like. IMO you should convert to HDR and then tonemap which will give you far greater control of your image.

For example, you can't do the "Contrast" operation from the video properly if you just have two tracks fudged together. With a proper merge to HDR every pixel will move away from the same linear reference point. But with hacky blending every pixel would move away from a different linear reference point. And don't get me started on interpolating clamped/unclamped values, non-monotonically increasing response curves (think about it), and trying to composite CG elements in linear space.

The other gotcha is that with exposure blending you have to make sure that every single edge in both tracks lines up. But if you use one track as your base and only take what you need from the other one then you have far fewer edges to worry about. Do you really want to match up every single leaf blowing in the wind?

2. This video isn't really the best test case. Making clamped-out light bulbs less clamped isn't that exciting. I'm really interested in seeing more daytime shots and fixing skies, shadows, and specular highlights from the sun. The footage is great for showing how Magic Lantern works and what it can do, but it's not so good at showing why you would want to do it.

3. What Magic Lantern has done is really, really cool. Being able to get HDR video out of a Canon SLR is amazing.

4. Frame rate is an issue. In this test, the raw data was shot at 25 FPS meaning the effective output rate was 12.5 FPS. So if we want 30 FPS then we have to shoot at 60 (bummer). Since we are peaked at 1080p @ 30 FPS, and 720p @ 60 FPS, we can only do HDR 1080p @ 15 FPS and HDR 720p @ 30 FPS. Rather, with the Scarlet you should be able to do 3k @ 30 FPS with HDRx if I remember correctly.

5. There should be better ways of blending frames. We should be able to use the information from the other tracks to guide the optical flow solver. If that's the case, we would be able to output at the same FPS that we shoot at, which would be awesome. It will be interesting to see what solutions everyone comes up with. Any fast movement or quick pan or camera shake is going to be interesting.

6. HDR should be something you don't notice. Hopefully, we're all done with the "HDR Look" that we all know and hate. It's fine for a zombie movie, but for me HDR is best used when the viewer doesn't know that you're using it.

7. I'm actually not a big fan of capturing an "Underexposed" and an "Overexposed" track. Rather, I'd prefer an "Even" track and a "Very Underexposed" track. You want to take as little data as possible from the darker track. Just because you can recover all the detail from the dark area under your bed doesn't mean that you should.

Congrats Magic Lantern! Well done.
  • FulguraFrango 2 months ago
    Thanks and congratulations. While agreeing with your final point to some degree, I do believe that any attempt to improve Canon's DR will seriously benefit the aspiring filmmaker. It's not because we need to show what's under the bed; It's because sometimes we cannot even show the bed and the window behind properly. Even daytime, in rainy weather, my zebras show how limited DR I have in my 600D. The moment the sky is exposed properly, the shadows under the trees disappear. We need to solve this problem and expanding the range on both sides is the only way.
  • I honestly hope that Canon is paying close attention to what the people from Magic Lantern et al are doing. This is such a common problem and HDR technology is the way forward.
  • 19lights plus 2 months ago
    Good point. I didn't mean to say that you should never bring up your blacks, but rereading it I can see how it came out that way. Suffice it to say, it was a long night and I was a little bleary-eyed.

    What I would say is that people should think about what exposure they actually want before they shoot. I see a lot of photographers just go two stops over and two stops under because that's what some random forum poster told them to do.

    So I think we're actually in agreement. If you need to overexpose your base track to get important shadow detail then of course you should do it. But don't overexpose just because everyone else does. Of course, if you're checking everything and using a zebra then you know what you're doing.

    Now that I think about it, it would make more sense to overexpose with a Canon workflow than with a Red HDRx workflow. The Canon writes out to compressed H.264 stream so you don't have any "extra" data in your blacks. Whereas with the Epic/Scarlet you have a lossless stream of RAW files on a camera with good DR anyways. On Epic/Scarlet you should be able to pull a few stops from the bottom end if you need them, but with a Canon workflow you've got nothing down there.
  •  
  • Wow! What an amazing achievement!

    I wholeheartedly agree with you that HDR is a tool we should use to overcome the deficiencies of cameras (not being able to see the latitude our eyes can adjust to). Please feel free to join the HDR video group here on Vimeo and submit your videos there as well: vimeo.com/groups/hdrvideo
  •  
  • Tim Peare 2 months ago
    Stoked to hear that a Mac beta is coming soon!
  •  
  • Emilian Dechev 2 months ago
    This method is a great breakthrough and maybe it is practical to assume, that a Canon 7D with its 2 CPUs could handle 1080p at 48fps, so the HDR comes at 24p?

    Anyway,
    what about the native canon function called "highlight tone priority" (HTP).
    We all know how it works. It takes the highlights from a lower ISO. But there is only 1 f-stop available.

    Is it possible for ML to hack this and give us 2 or 3 ISO steps for HTP?
  •  
  • FulguraFrango 2 months ago
    As to 7D issue; no and unfortunately there may never be because there is no ML available for the 7D due to two-chip design. Anyway, the two DIGICs are there to benefit still pictures mode and have no benefit for the video shooter. Anyway, if the ML team can change this, that would be a breakthrough.

    HTP is there to bring down the highlights and it is already a hack-as-feature put there by Canon. I am not sure how this could be exploited further.
  •  
  • aombk 2 months ago
    19lights, what you say in point 5, is a very interesting idea.
  •  
  • Jakob Teuffel 2 months ago
    Please stay Free even after finishing beta !
  • 19lights plus 2 months ago
    Well, you can always hope. (-: How about this: Ginger HDR will be free as soon as After Effects, Windows, and Mac OS are free too.

    Seriously though, the priority is to charge for the After Effects plugin. But I could see making the workflow to convert from the flickered MOV file to a sequence of EXRs a free product though.
  •  
  • Dieter Goerke 2 months ago
    Thx man! Good job and a good comment about HDR-look!
  •  
  • Manbear Pig 2 months ago
    How are you applying your plug-in to the media? I split the sample video into two new ones, one with the even frames, one with the odd frames. I imported the two videos into my AE comp, then applied the plug in to the first video in the comp.. This is obviously not the right way to do it... any suggestions?
  • 19lights plus 2 months ago
    Actually, are you sure you aren't a Bear PigMan?

    For now, you have to merge the frames yourself, and I haven't looked too thoroughly at the other workflows. I did it with a custom program that I threw together. It's not released yet, but I'm trying to get a demo out soon (next week or two).
  • Manbear Pig 2 months ago
    I'm half man, half bear, and half pig.

    OMG I'm so confused... As Manbearpigs often are. So you are building a series of EXR's (out of the two exposures), importing them as a sequence into AE, and using your GingerHDR, the two-level merge finds the two exposures within the EXR and builds the mask from that?
  • 19lights plus 2 months ago
    Well, it's easy to be confused when Al Gore is hunting you.

    Yes, you are partially correct. I'm building a series of EXRs, importing the sequence into AE, and using GingerHDR. The mask is used during the "make into EXRs" step. At that point though it's all merged into just one stream. And in this case I used the Filmic Curve, Local Contrast, and Color Adjustments (contrast), but no Two Level Merge.
  •  
  • Pash Geronimo 1 month ago
    Congratulations!
  •  
  • paul herrin 1 month ago
    "And don't get me started on interpolating clamped/unclamped values, non-monotonically increasing response curves (think about it), and trying to composite CG elements in linear space."

    Please enlighten us with your thoughts... :)
  •  
  • freelookdesign 1 month ago
    I have installed on your Magick Latern 600d but I can not turn this feature
  •  
  • Joel Kaye 1 month ago
    re: Point 7 - Agree. The choice to use an under and over track is not optimal. OK - it actually should be fixed. The better choice simply to let us add highlight protection to our current exposure. The "even" or "optimal" exposure should be as close to "right" as possible and then we blend in a tasteful amount of the highlight protection track. This approach is MUCH easier to use because we can use the normal camera exposure tools to get the optimal exposure right. If we want to simulate the over/under approach then we just increase the "optimal/even" exposure and increase the EV value. But the default behavior should be proper exposure +highlight protection because it's so much easier on set and in post.
  • 19lights plus 1 month ago
    Agreed. That's a good way to describe it.
  •  
  • Pash Geronimo 1 month ago
    How you convert mov in EXR?
  • 19lights plus 1 month ago
    I'm using a custom workflow that I threw together. Currently putting a more stable workflow together for general use.
  • Pash Geronimo 1 month ago
    Do you mean OpenEXR_Photoshop-1.2.1.Win.zip ?
  • Pash Geronimo 1 month ago
    Merger-win64.exe ?
  • 19lights plus 1 month ago
    Neither unfortunately. The Merger only works for timelapse shots with RAW data from SLRs.
  • Pash Geronimo 1 month ago
    Please answer simply. How you convert/merging MOV to EXR? How you getting a sequence of EXRs from MOV?
  • 19lights plus 1 month ago
    Sorry for the misunderstanding. The tool I used isn't released yet, but will be released soon.
  • 19lights plus 1 month ago
    Hi Pash. The Merger was just updated, so you should be able to convert to EXRs now. You have to export a sequence of PNG/JPG files and the merger will get you to EXRs.
  •  
  • yellow 1 month ago
    Pash, here's a route to 16bit exr's you'll need Avisynth etc and lots of memory & disk space.

    blendervse.wordpress.com/2011/09/16/8bit-video-to-16bit-scene-referred-linear-exrs/

    I can simplify it to 8bit exr's if you have problems with it.
  • Pash Geronimo 1 month ago
    Thanks. A try with Photomatix ))
    youtube.com/watch?v=nmOPPxe9T2E
    Maybe some parameter are AUTO - cause flicker...I think

    This make musing Virtual and Avithinth
    youtube.com/watch?v=R6PVyK1hQZs
  • Joe Moya plus 1 month ago
    Interesting use of Photomatix... but, did you try to use just "Average" to achieve a less "contrasty" and saturated look... then, compare it to a HDR look generated using the Ginger plug-in?
  •  
  • Lucas Pfaff 1 month ago
    I didn't made to really get in touch with GingerHDR by now, maybe I'm a bit too lazy to learn it correctly.
    But I like the Idea of this Plugin, and I featured it in my Guide (even though, I didn't payed too much attention to it)

    vimeo.com/34444543

    How much will it cost when the Beta is over?
  •  
This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

About this video

MP4
00:01:03
  • 1280x720, 61.6MB
  • Uploaded Thu December 22, 2011
  • Please join or log in to download

Statistics

Date Plays Comments
Totals 10.5K 59 32
Feb 23rd 9 1 0
Feb 22nd 46 0 0
Feb 21st 69 0 0
Feb 20th 64 1 0
Feb 19th 67 0 0
Feb 18th 57 0 0
Feb 17th 78 0 0