Apply a Tilt-Shift Effect to a Video Using Photoshop

Apply a Tilt-Shift Effect to a Video Using Photoshop

Tutorial Details
  • Program: Adobe Photoshop CS+
  • Difficulty: Beginner
  • Estimated Completion Time: 1 Hour
Download Source Files

Final Product What You'll Be Creating

Tilt-shift is an effect that when applied to an image or in this case, a video, will create the illusion of miniaturization, making it seem as if the video is shooting a model set and not real life. To create one of these videos outside of Photoshop would require an expensive camera and and an even more expensive lens, which can cost into the thousands of dollars. In this tutorial I will show you how to create this effect using only Photoshop and how to apply it to almost any video.


Tutorial Assets

The following assets were used during the production of this tutorial.


Download Original Footage

Before you begin. Let’s take a look at the original footage. Make sure to download it from here.


Step 1

Before opening Photoshop, install the Extension that was included in the tutorial assets. Open the Adobe Extension Manager, which should be found in the Adobe folder.

PC users, if for some reason, it will not let you install the Extension, close and re-open the Extension Manger by right-clicking on the program in the start menu and selecting “Run as administrator”.

With the Extension Manager open, click the install button, and locate where you saved the Iterate Action extension.


Step 2

Open Photoshop and then choose File > Import > Import video frames to layers.

For those users using CS5 or higher you’ll need to use the 32bit version of Photoshop that should have been included in your install. You have to use the 32bit version because unfortunately Import video frames to layers utilizes the Quicktime API which remains a 32bit application.

For PC users, you should find the 32bit version in the Start menu, right next to the 64 bit version, if it’s not there check the (x86) folder, still not there then re-install, the 32bit version was unchecked during the initial installation.

For Mac users, open the Photoshop folder in a finder window and Command/Ctrl-click on the Photoshop icon, then click on Get info, click the check mark to run the program in it’s 32 bit mode.

Import video to layers offers a few options for importing. Depending on the video, you can grab the whole thing or just a selected range. Make sure that “Make Frame Animation” is checked and then for this video limit the imported frames to every 15th frame. Doing this is going to not only cut the length of the video it’s also going to mimic a stop-motion effect which will help sell the overall effect.

Note: You can work with video frame layers in the 64bit version. To do so import the video using the 32bit version, save the file as a .PSD file, then open the file up in the 64bit version.


Step 3

Before moving on, it will be helpful to setup your workspace, in the top right corner there are a number of workspace presets, you can select the Motion preset to load a number of popular tabs. However for this tutorial you will only be needing the Animation tab, Layers tab, Action tab and History tab.

To begin applying the tilt-shift effect press (Q) to enter the Quick mask mode. Press (D) to reset your Foreground/Background colors, then select the Gradient tool. In the top left of the screen there are a number of Gradient styles, select the Reflected Gradient which is the fourth style from the right. While holding the Shift key, draw a line from the bottom of the staircase to just above the railing.

You’ll now see a light red gradient running horizontally across the screen. This red area will be the area of focus for the tilt-shift effect, don’t be afraid to play with different widths and positions for the mask. Moving the mask higher or lower will allow you to place the area of focus for the effect. The focal point doesn’t necessarily have to be centered to be effective. For more complicated video’s you could paint in the the mask but for most videos, this step should be sufficient.

Once satisfied with the placement of the mask press (Q) to exit the Quick mask mode. You should now have and upper and lower selection.

Note: This selection MUST remain in place throughout the rest of the tutorial. DO NOT deselect or else the effect will not work.


Step 4

With the selection in place, Choose Filter > Blur > Lens Blur. For this video the default settings are bit too much, so reduce the Radius to 20. Drop the Curvature to 27 and kill the Noise. Be advised that this filter can take some time to refresh on slower machines, so be patient. When you are happy with the effect press OK to apply.


Step 5

For the next two steps you’ll want to try and exaggerate the brightness and color to help sell the effect. Choose Image > Adjustments > Brightness/Contrast, bump the Brightness by 50 and the Contrast by 25.

Then Choose Image > Adjustments > Vibrance and bump the Vibrance by +100 and the Saturation by +25. Experiment with different setting’s, now is the time to find which settings create the most dramatic effect.


Step 6

Now that you have an effect that you are happy with, it’s time to apply it to the rest of the video. First save your file out as a .PSD file, then undo everything back to Step 4. Make sure that you DO NOT deselect the selection created in step 3.

To create an Action, open the Action tab, press the new Action button near the bottom of the tab. Name the Action "titlshift", making sure it is saved in the Default Actions folder, (This will be important later on) then press Record. The round button at the bottom of the Action tab should turn red when recording.


Step 7

Now that Photoshop is recording, you can begin by re-applying the Lens blur effect. Choose Filter > Blur > Lens Blur or press Command/Ctrl + F to apply the last filter. Then Choose Image > Adjustment > Brightness/Contrast and apply the same setting’s as before. Then Choose Image > Adjustment > Vibrance and apply the same settings as before. Double check that Photoshop only recorded these three actions. If Photoshop accidently recorded an extra step, don’t worry, press the stop button, drag the unwanted step to the garbage can at the bottom right corner, then press the round record button to begin recording again.

Now that the Filter and Image Adjustments have been recorded you need to record an Action that will move the Animation frame forward. If you simply selected Animation frame 2, Photoshop would record “Select animation frame 2″ which when you played the Action back it would not advance forward but remain on frame 2 indefinitely. To record a generic Action that moves the selection forward one frame, press the Fast Forward button at the bottom of the Animation tab. This will record an Action that tells Photoshop to “Activate next animation frame”.

However you are not done yet, telling Photoshop to activate the next animation frame is not enough, if you left it at that you would move the Animation frame forward but Photoshop’s ability to apply your setting’s would remain on Layer One. A little confusing, but what is happening is that an Animation frame only effects the visibility of a layer, not whether Photoshop can edit that Layer. To fix this you need to add one last step in our Action. As with the Animation frame you need to use a generic command to move forward one layer, press Alt/Command + ] to record the Action “Select forward layer”.

These last two actions are critical to the looping script you are going to use. All the looping script is doing is pressing the play button a set number of times for us, by having Photoshop move the selection forward, it is going to allow the looping script to move up the layers in the file applying the effect.

With this last step recorded, press the square Stop bottom at the bottom of the actions tab to end the recording.


Author’s Note

It’s time to test your Action. Press the Play button a couple of times to ensure that it is applying the effect the way you want and that it is moving the selections forward. Now is the time to make adjustments if needed. Remember to save the document if you haven’t already.

Before you proceed, I need to take a moment and give credit to Dr. WooHoo who has generously provided the Iterate script free of charge to the world. It was published in the May/June 2009 issue of Photoshop User Magazine and is also available on his website here.


Step 8

If you have ever played around with Photoshop Actions, you may have come across this odd limitation within Photoshop’s extensive Automation tools. For whatever reason, Photoshop cannot loop Actions to multiple layers within a single file, it is this limitation that Dr. WooHoo script corrects. If you haven’t already installed the Iterate script then save your work, close Photoshop and jump back to Step 1. If the extension’s been installed, then choose Window > Extension > Iterate Actions.

Click the Loop button.

Enter the Actions name exactly as you spelled it. Remember the Action must be located in the Default Actions folder or else the script will not be able to run the Action.

It will then ask how many times to repeat the Action. Press OK and it will start applying the Action to each layer, this may take some time.

(Don’t worry if your off a frame or two, you can always manually run the action if the script misses a few frames, However make sure you don’t tell the script to run more times than you have frames, once the script hits the last frame, it will start over with frame one.)


Step 9

Once it’s done applying the effect, play the video through a couple times, If you are happy with the final effect, its time to render the video out. First step is to change the frame delay from it’s native 0.04secs to 0.1 secs. To change the delay, select Frame One then scroll down and Shift-Click on the last Frame, you should then see a blue outline around all the Frames. Click on on the small black arrow just under the right corner of the one of the Frames, and change the delay to 0.1 secs. Changing this setting’s will adjust the rendered video playback speed, leaving it at 0.04secs would have the video playing back a bit too fast.

Then Choose File > Export > Render video. Name your file and select where you want to save it. Then you have a couple of options for exporting your video.

Option One: Export as a compressed video file, perfect if the video is a stand alone piece.

Option Two: If your using this video as part of a larger project, export the video as an image sequence, you’ll retain the highest image quality possible, however this method will require the use of another program, such as After Effects, when it comes time to export the image sequence as a video file.

To render as a movie, click on Setting’s then on the Video Setting’s button

My personal preference leans to the .mov format using H.264, the file size will be tiny and the video quality will remain excellent. Press OK and in a moment your video will be ready to amaze the world.


Final Video

  • http://www.twecommend.me TJ

    Woah! It looks really cool.

    Is there anyway to adjust how quick/how long the final video will be?

    • http://nndustriemedia.blogspot.com/ Nathan White

      TJ, to adjust how quick/long the video will play, simple change the frame delay(step 9). Import video frames to layers defaults to .04 seconds which would export a video of about 3 seconds. I changed the frame delay to .01 seconds to prolong the video to about 10 seconds.

  • http://sexidesign.com Melody

    The end result reminds me of stop motion animation…I’m guessing this would take fewer steps in After Effects, but it’s still cool to know–that program drives me nuts anyway lol. Will be interesting to play with other effects aside from the blur.

    • http://nndustriemedia.blogspot.com/ Nathan White

      Melody:

      The stop-motion effect is created by the import video frames to layers, in the tutorial I’am having Photoshop only import every 15th frame and ignore the rest. You could just as easily tell Photoshop to import every frame but keep in mind it maxes out at 500 frames.

  • Mat

    OK, first-off I should say that this is a nice tip on working with photoshop automation and getting around its limitations with the help of what looks like a useful script.

    Having said that, this is – once again – a really bad example of the ’tilt shift’ effect. If you’re aiming to recreate the stop-motion animation of a model, then the key is to recreate the narrow depth-of-field that one sees when shooting like that. What this tutorial shows is a blurry effect at the top and bottom of the image, irrespective of the distance from the lens – the railings on the left and those on the stairs, which are much further away, are equally sharp.

    Either the selection needs to be modified to include areas which are a similar distance from the lens, to recreate a credible depth-of-field or, since you use the Lens Blur effect in the tutorial, you could create a depth map to do the same thing.

    • http://NNdustrieMedia.blogspot.com Nathan White

      Mat:

      I appreciate what your saying, I was aware when writing the tutorial that the effect might be classified by some as more of a selective focus than tilt-shift but in my opinion it’s a close enough approximation. When I was running tests on the video, I played with a number of methods of applying the blur to the video frames but in the end the method I used seemed the most effective.

      The subject of the video also makes a difference, I shot a number of videos to test the process, you can see the other test clips on my blog: http://nndustriemedia.blogspot.com/2011/04/create-tilt-shift-video-in-photoshop.html. There was one clip that I shot from the highest window of a library that better mimics a tilt-shift effect but because it was shot through a window it didn’t look as crisp as the stairs video.

      Please by all means add your own touch to the process, I would honestly love to see what you come up with.

  • Michael Owens

    Everytime I import the video to layers, it tells me it requires QuickTime V7.1.
    I have Quicktime installed fine.

    Even tried an uninstall and reinstall of Quicktime, to no avail.

    Anyone got any ideas?
    So want to try this on a video too!!

    :(

    • Michael Owens

      Nathan White?
      Any help?

      • http://nndustriemedia.blogspot.com/ Nathan White

        Michael: Sorry, I have not run into this particular problem, I’am sure you have but have you downloaded the latest version of quicktime yet? I apologize but I don’t have an answer for you!

  • http://aevion.net AEVION

    Wild! Very neat idea, and great execution.

  • MacMechanic

    Michael,

    Ensure that you are running Photoshop in 32 bit mode, as Quicktime is unavailable in 64 bit mode.

    If you are using a Mac and check the box in the Get Info window – and Photoshop is already open, you must Quit and restart Photoshop for that to take effect.

    The fastest way I have found to tell if you are in 32 bit mode is that you will not find the Variations option in the Image –>Adjustments menu in 64 bit mode – at least on a Mac.

    Not sure this will fix you, but it may help.

    • MIchael Owens

      Hey mate,

      Thanks – I work on a PC (boo! lol) but yeah, I do have the latest version of Quicktime, and I am running in 32bit mode.

      Weird thing is, I have always had this problem with importing videos, ie. I have been unable too since day one of installing Photoshop, as the same error comes up all the time.

      I have searched google, various forums – even Adobes official forums, but never been given a full answer on why its happening, or how to fix it.

      :(

  • http://ashish4design.wordpress.com Ashish

    Wow, it’s nice to know that a video can be modified in photoshop….
    thanks!

  • http://www.pitsos.eu Angelos

    This is exactly like the introduction videos of Eurovision contest 2011. Isn’t it?

    I’d like them so much and I was wondering how they were produced…!

    Thank you for sharing this tutorial!

    Angelos Pitsos

  • TH

    I try to import video file but just get a black screen. What is going on?
    Please help

    • http://NNdustrieMedia.blogspot.com Nathan White

      What type of video file are you trying to import?

      • TH

        It was just the MP4 file from the provided download. I just imported that file into premiere and converted the output to a quicktime file and now am able to import into Photoshop. Looks like that will work but still not sure why the original MP4 file did not work.

  • Duky

    i have trouble with alt+] in recording a action dont do anything. so last step i dont know how to do it in action.
    can you help me pls. ty

  • http://nndustriemedia.blogspot.com/ Nathan White

    Duky:

    The most probable issue is how Photoshop uses the move layer forward or backward command, ALT ] moves forward and ALT [ moves backward, this command isn’t static however, meaning that depending on the last time you moved your layer selection it alters which direction Photoshop sees as forward or backward. If you last moved your layer selection from say layer 8 to 7 then Photoshop see the forward as Layer 6. If you last moved your selection from layer 7 to 8 then Photoshop would see the backward layer as layer 7. I got hung up on this for while trying to figure our why sometimes it ran fine and other time’s it would go all screwy on me.

    Try selecting layer 1 then select layer 2 and then run the action a few time to ensure it’s moving the selection the way you want.

    • Andreas

      Nathan,

      I also have some trouble to get the ALT ] to work. I have read your reply to Duky but still cant get it to work. Can you please clarify which keys to press and in which order, thanks. In the turtorial in says Alt/command key which I get a bit confused by.

      Thanks for a great turtorial!

      /Andreas

      • http://nndustriemedia.blogspot.com/ Nathan White

        Sorry about the late reply, I hadn’t check the tutorial in while.

        The command sequence goes like this: (press and hold the) ALT (key, While still holding the) ALT (Key down press the) [ (key, or the) ] (key to record the command that move forward or backward a layer)

        Depending on the type of machine you are using, the “ALT” key is for a PC and the “Command” key is for a Mac.

        Hope the helps!

  • http://www.madefordesigners.net Rachael

    I saw this effect on this years Eurovision and thought that it looked pretty cool and fun. I don’t work with video but have been meaning to try this kind of effect in photography.

    • mhopkins

      If you just want to play around with tilt shift for stills, go to tiltshiftmaker.com for a super easy and free way to do it.

  • http://www.linkmesh.com Fantasia Linkmesh

    I would like to replicate this effect, but in real life! XD

  • glutenfree4u

    every time I get to step 7 and press command/alt/+ it just zooms in on the canvas!
    very annoying because I have been trying forever to get a good tilt shift effect and had thought i had found one.

    • http://nndustriemedia.blogspot.com/ Nathan White

      Glutenfree4u

      I think the problem you having is your pressing the actual “+” key. The plus sign is not actually meant to be pressed, it’s only telling us the command combination.

      Thus Alt + [ is telling us to hold the “ALT” key while pressing the ” [ ” key.

      Hope that helps!

  • http://barbourjacket.wordpress.com Barbour Fan

    I’ve never really done anything in Photoshop with videos. To be honest I didn’t really know you could do that much but this has really shown me something new. Thanks very much for sharing

  • http://J4M.es J4M

    Problem with filter:

    Hellos, I’m using iMac.

    I can only do step 1 to 3.
    When I see de selection done with the mask, the menu filters doesn’t contains nothing to apply.

    I don’t know the solution.

    Can you help me?

    Thank you very much,

  • http://J4M.es J4M

    Sorry,

    the problem is that “CMD” +” ]” don’t work, don’t do nothing. The key “]” has the “+” symbol too.

    Thanks for your help,

  • http://J4M.es J4M

    I found it!

    “CMD” + “]” IS: “ALT” + “.” (period) in a MAC with Lion OS.

    :-)

  • Erik

    Hey, it’s Utah Valley University!

    • http://nndustriemedia.blogspot.com/ Nathan White

      Yep, I shot this from the third floor of the CS Building.

  • Douglas Clark

    When I try to add the Tilt Shift action to the rest of my frames it makes them ALL blurry.

    • Douglas Clark

      Scrap the last question.

      Actions now applied to all layers.

  • Hanoihancock

    Great tutorial and neat video!

    I’m kind of a Photoshop noob, so forgive if these questions are less than intelligent…

    Photoshop only lets you import 500 frames? So any video project done in Photoshop has a maximum length of 16.6 seconds (at 30FPS)?

    I’m currently using Photoshop 5.0. What version of Photoshop would I need to perform the tasks described in this tutorial? Would Premiere Elements 10 do the trick ($150), or would I need to spend $700 on CS6?

    Thanks!

    • http://nndustriemedia.blogspot.com/ Nathan White

      Sorry for the delayed response.

      You can get around the 500 frame limitation a coupe of ways, however they require the use of an a video editor, how effective either method really is, is up to you?

      Option 1. Import 500 frame chunks and in the export function, render the video back out as an image sequence, repeat in 500 frame chunks until your entire video is render frame by frame.

      Option 2. Use another video editor program to render your video as a image sequence, there some free opensource programs that will do this.

      Setup your action as the tutorial specifies.

      Instead of running the action on the PSD layers, you go to > File > Automate > Batch Process and apply your action to the folder where all your frames are stored.

      The tricky part is reassembling them back to a video file. Again you are limited to 500 frames by Photoshop so you are forced to use either an opensource video editor or a program such as Premiere or After effects to import your frames and export a new video file.

      Best of Luck

  • Jake

    Hey when I do step 8 it just goes from layer 1 to layer 2 over and over.Also when I press play after step 7 it doesnt play all the frames it just play the first image on all layers. Any help?