Skip navigation
jb.uk
Currently Being Moderated

Match a 3:2 DSLR still with 16:9 DSLR footage

Apr 11, 2012 3:34 AM

I'm not sure if this is the right forum, but I'm hoping someone here might be able to help.

 

I have a still taken with a canon 60d. I also have movie footage, taken from exactly the same position. I want to match up the still pixel-for-pixel with the footage. The difficulty is that the still is 5184x3456 = 3:2 and the movie footage is 1920x1080 = 16:9

 

What I want to do, is take the still into Photoshop and crop/resize it so that it is 1920x1080, and it has a pixel-for-pixel match with the movie footage.

 

Looking at a screengrab from the footage, and comparing it to the still, it's clear that the still is cropped, but I haven't been able to work out exactly what sequence of actions will match the still to the screengrab.

 

A further complication is that 60d actually records at 1920x1088, not 1920x1080, although After Effects seems to ignore this.

 

 

Any help would be much appreciated.

 
Replies
  • Currently Being Moderated
    Apr 11, 2012 6:56 AM   in reply to jb.uk

    If the angle of view is the same there is nothing you can do but accept the limitations of failing to plan this out carefully before you started shooting. Regardless of the number of pixels avaialble within the still image, you cannot create background that isn't there. However, you CAN bring a still image from the video into PS and assemble it into the photo to extend the background. It will always look like exactly what it is: simulated. The color spaces and scaling operations are totally different. It's like combining Kodachrome 25 with Ektachrome 400 that was pushed to1600; they're both transparency images but that's about all you can say.

     

    There are also numerous tutorials for AE that offer advice and techniques for background extension. These assume some pre-planning.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2012 9:55 AM   in reply to jb.uk

    Place your video clip on the Make Comp icon at the bottom of the project window,  and change the comp's duration to the amount you want.

     

    Add the still to the comp on the layer above and reduce its opacity to... oh, say, 50%. 

     

    Play with this layer's Scale & Position properties until the two shots match.  There's nothing automatic about this.

     

    Change the upper layer's opacity back to 100% and move its in point as desired.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2012 10:44 AM   in reply to jb.uk

    It would be good to know why this somewhat-strange practice is so important.  It would be good to know what you're trying to accomplish.  We may be able to offer better alternatives.

     

    It isn't necessary for stop-frame animation.  The most important things in stop-frame animation are planning, math and frame rate.

     

    If you're trying to get a DSLR behave like a 4K RED camera for cheap, I can only say "good luck".

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2012 11:31 AM   in reply to jb.uk

    Oh, now I understand -- thanks! 

     

    This isn't an After Effects issue, it's a photography issue: gel the window before you shoot. 

    They make great, big gels that also do daylight-tungsten correction.  Combined with similarly-sized neutral-density gels, you can make the window look just the way it should.

     

    If you happen to respond, "Well, we've already shot this and we can't shoot over again," I'm afraid you're out of luck. 

     

    You can certainly use Mocha to track the still of the properly-exposed window into the shot: you don't need Photoshop for this.  However, there are bound to be reflective surfaces in this room that won't look natural once you motion track the replacement window into place.  And God help you if anyone in the room passed in front of the window in question: your woes are compounded by the phenomenon of light wrap.  You'll never get those people to look right, even with painstaking rotoscoping.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2012 4:44 PM   in reply to jb.uk

    > I have a still taken with a canon 60d. I also have movie footage, taken from exactly the same position. <

     

    Oh, you mean you shot video with the same camera. I thought you were using a real video camera. Attempting to do HDR with a combination of video and stills is as interesting idea but it would have been easier if you had lit the scene properly for video.

     

    Hope LaRonde can figure it out for you.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2012 5:45 PM   in reply to jb.uk

    how to crop/resize a raw still to end up with a 1920x1080/8 frame, in the same way the camera does it, then I'll have a fix that I can use for every job from here on in.

     

    That is impossible from a technical point of view, plain and simple. Your camera doesn't crop when it shoots video, it simply doesn't use the entire sensor area in the fist place and then applies it's chroma undersampling and spatial interpolation algorithms to produce the video image, meaning that in fact it may only use every second or third row and column in the sensor and switches the rest into a redundant mode to gather more light or turns them off plus leaves a pretty big margin near the edges of the sensor for electronic stabilization and to avoid edge noise from random electrical discharges. It's a simple matter of limited processor power being available in the camera - it couldn't record full size and crop if it as much as anyone wanted it to. Therefore there is no way to 100% line up everything, since different crop area/ filmback means a slight discrepancy in the resulting projection which cannot be eliminated without using further algorithms. So no matter what you try, there wil lalways be some odd areas. Things like lens distortion removal in Photoshop may help, though.

     

    Mylenium

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 11, 2012 6:13 PM   in reply to jb.uk

    It's not that simple. Even this pattern may shift around, as the camera may use an odd/ even alternating mode to optimize processing speeds further and minimze rolling shutter by doubling the temporal precision. If there were a surefire way to tell you that the images align at certain coordinates by scaling them by a certain factor, I'm sure everybody would do it already, but alas, since things aren't that way, you will just have to figure this out. I'm sure looking up the specs of the camera and determining the actual crops used on teh sensor could help figure out the basic math and the rest is really just experimentation and comparing stuff with the Difference blending modes...

     

    Mylenium

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 12, 2012 7:59 AM   in reply to jb.uk

    jb.uk wrote:

    I'm convinced that it must use the same set of pixels for every frame, otherwise the image would be jumping around all over the place.

     

    You may be correct, but there's yet another consideration: the codec of the video.  It's H.264, which has 4-2-0 color sampling, aka color resolution. 

     

    Think of the video image as having two layers -- luminance and color -- that combine to create the total image.  Your camera records each and every luminance pixel.  However it only records every fourth color pixel, a bandwidth-saving trick that is inherent in the codec and can NOT be turned off.  When the image is played back, those color pixels are blown up four times to cover the entire image.  The result is good enough to fool the human eye, but not a computer.

     

    When your camera's in the still mode, it faithfully records each and every pixel available to the sensor in the highest quality possible: a far different result.

     

    Thus, the resolution of the colors will never match from video to still. 

    I fear you're tilting at windmills here.  Time to haul out the gels for the windows.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points