Want more features on Pastebin? Sign Up, it's FREE!
Guest

Content aware scale video tutorial 26/12/2013

By: pastepotato on Dec 25th, 2013  |  syntax: None  |  size: 4.12 KB  |  views: 10,089  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Feel free to message me on youtube or tumblr if you have any questions!
  2. http://vicariouspotato.tumblr.com/ask
  3. http://www.youtube.com/user/VicariousPotato
  4.  
  5. Content aware scale video tutorial
  6. Tools needed:
  7.  
  8. •Your video editing software of choice (and some knowledge on how to use it, I can't really help you here sorry!)
  9.  
  10. •Neil Cicierega's content aware scale script http://neilblr.com/post/42948042669
  11.  
  12. •photoshop cs5/6, make sure you have quicktime installed too or you won't be able to import video into Photoshop
  13.  
  14. •Some patience, these videos take a little while to make, but once you get the hang of it you'll be shitting them out in no time, also the patience to read this WALL OF TEXT.
  15.  
  16. Lets get started shall we?
  17.  
  18. If the video I'm using is longer than about 15 seconds, I cut the video i'm using into 15 second chunks in premiere and save them. Next I convert the video frames to layers in Photoshop
  19. (File->Import-> Video Frames to Layers)
  20. You have to work with roughly 15 second chunks of video because Photoshop has a 500 frame import limit,  if the video you're working with is 30fps then 30*15= 450, the chunks could be a bit longer with 24fps video, but just use 15 second chunks.
  21.  
  22. You COULD bypass the frame limit by importing multiple video chunks into the one photoshop document I guess, but fuck that, photoshop has a 2gb file size limit, I wouldn't even try it.
  23.  
  24. Now, before you go running the content aware scale script, save yourself some time by copying a few layers of the video into a new document and try playing around with them using the content aware scale tool (Shift+Ctrl+Alt+C is the shortcut on Windows), scale them around a bit and take note of the scale width and height up at the top, that will be what you'll want to put into the script tool later for the desired effect, there's also a button that looks like a little man called "Protect skin tones", try playing with that too! It's good to find the effect you want before you commit 15 minutes of your time to running the script and then finding out it looks like shite.
  25.  
  26. Anyway, back to the actual video part! By this stage you should have the script installed, you'll find it under
  27. File->Scripts->Animated Content Aware Scale.
  28.  
  29. Now, to get the same constant effect, move the Starting width and height sliders to wherever you want them to be, and set the ending height to the same number, for all of my videos I use the first Algorithm;
  30. "Content aware scale -> scale"
  31.  
  32. If you want to squish your subject gradually, it's best to do this if your video is under the 500 frame limit/15 or so seconds, because you will have to break up the effect over the several chunks of video and I cannot into math/it's a massive pain in the arse so you can figure that out for yourself.
  33.  
  34.  
  35.  
  36. Basically just set the starting height and width to 100 and just change the ending height and width to  whatever you want for a gradual squishing effect, or the same if you want to scale it bigger (script lets you scale up to 300%)
  37. Depending on the resolution and your computer it can take 5-10 minutes or so to do one chunk of video.
  38.  
  39.  
  40. Then I render the finished thing as a video File-> Export-> Render Video
  41. I usually use H.264, make sure your framerate and resolution match the source video!
  42.  
  43. Finally I throw all the video into premiere, sync it up with the original audio (might need to adjust each piece on the timeline if you fucked up the framerate I think, otherwise the audio might be longer than the video)
  44.  
  45. And then I export it and laugh at my own work.
  46.  
  47. Please note that adding 500 frames into photoshop all at once and then running the script may make your computer stand up, find some pants, put them on and shit in them if it's not very powerful, I have a pretty nice pc with an i5 2500k and 8gigs of ram and I still get the low memory warning from Windows, so try not to run too much shit in the background when you're messing around with it.
  48.  
  49. Hopefully this tutorial was somewhat useful, I'm sorry if it was kinda long winded and shite.
  50.  
  51. Once again, feel free to message me on youtube or tumblr if you have any questions!
  52. (This is the most I have typed all year, my wrists hurt)
clone this paste RAW Paste Data