Author Topic: After Effects HDR Video Script  (Read 14908 times)

Murphy

  • New to the forum
  • *
  • Posts: 10
After Effects HDR Video Script
« on: May 23, 2013, 02:11:38 PM »
Hi all. So i started playing around with Magic Lantern's HDR video the other day, and decided to write a little After effect script to automate my workflow, and thought I should share it here if anyone is interested.

http://www.basetheory.com.au/magic-lantern-hdr-video-script/

Its a pretty simple script, and it should be totally platform independent as long as you have AE (for all those mac heads who've been going insane with wine and enfuse).

The script will:
1) create a new composition for your video file
2) detect whether the first frame is high or low ISO
3) split the frames to seperate layers
4) tonemap those layers
5) add a few effects for fine tuning

Also totally GPL, so feel free to hack it to pieces.

Comments and criticisms are welcome. If you can think of anything that would improve the script, leave a comment.

Naturalbornsamy

  • New to the forum
  • *
  • Posts: 13
Re: After Effects HDR Video Script
« Reply #1 on: May 23, 2013, 11:43:53 PM »
hi,
wow great post, I can't wait to try it :) for now I probably did something wrong though !
I've just launched the script as I thought you explained but I got a message
seemingly saying that the error is line 65, and the "slider control" cannot be added at this point.
I don't really understand what it means or what I may have done wrong. Any idea ???
thanx in advance.

Murphy

  • New to the forum
  • *
  • Posts: 10
Re: After Effects HDR Video Script
« Reply #2 on: May 24, 2013, 03:27:23 AM »
Hmmm, if the script is running I highly doubt that its anything you did wrong.

I'm on an earlier version of After Effect, so my guess is that they may have slightly changed the code API between the versions, on how filter effects are added to layers.

The "Slider Control" is an effect which doesn't actually alter the layer in any way (kindof a dummy effect) but is useful for controlling things with expressions. The HDR script temporarily adds a Slider Control effect to the video layer, so it can run an expression to analise the pixels on frame 0 and frame 1 and determine which order the high and low ISO frames are in.

I'll see if i can get my hands on the latest version of After Effects and find out whats going on. Money is a little tight which is why i'm still on an older version, but i've been told they have a new monthly subscription thing which could make life a little easier.

I'll keep you posted.

mucher

  • Member
  • ***
  • Posts: 121
Re: After Effects HDR Video Script
« Reply #3 on: May 24, 2013, 04:39:38 AM »
This is beautiful. Thank you very much, and I will try it when I have time.

Murphy

  • New to the forum
  • *
  • Posts: 10
Re: After Effects HDR Video Script
« Reply #4 on: May 24, 2013, 06:25:49 AM »
Thanks Mucher.

Naturalbornsamy, i just installed the trial version of After Effects CS6 on my mac, and the script worked without any errors, so I'm scratching my head as too what the cause could be. Exactly what version are you running, and are you using windows or mac? Did you run it with only the HDR video files selected in the project media browser window? Also, could you go in the "Effects & Presets" panel and check under the "Expression Controls" drop down that the "Slider Control" effect is there.

Naturalbornsamy

  • New to the forum
  • *
  • Posts: 13
Re: After Effects HDR Video Script
« Reply #5 on: May 24, 2013, 11:31:45 AM »
Thanks for your answer Murphy,

- I run on Mac OS X 10.8.3, AE 11.0.2 (CS6)
- I just run it with a HDR video files only.
- I check in "effect and presets", the "Sliders Control" effect is right here.



I gonna the  clean the preference files of AE and try again...

thanks again

scheng.pell

  • New to the forum
  • *
  • Posts: 1
Re: After Effects HDR Video Script
« Reply #6 on: May 29, 2013, 06:38:38 AM »
hi, Naturalbornsamy.
Is your after effects running in English, or another Language?
I have to translate it for the german version of effects.

Paul

kgv5

  • Hero Member
  • *****
  • Posts: 643
Re: After Effects HDR Video Script
« Reply #7 on: May 30, 2013, 02:00:54 PM »
This is so cool, I love  HDR feature, is this working on windows too?
www.pilotmovies.pl   5D Mark III, 6D, 550D

Naturalbornsamy

  • New to the forum
  • *
  • Posts: 13
Re: After Effects HDR Video Script
« Reply #8 on: May 31, 2013, 10:20:18 AM »
Hi, my after effect is running in french. Do you think it could be the problem?

dlrpgmsvc

  • Senior
  • ****
  • Posts: 398
  • The 7D and 50D Robin Hood
Re: After Effects HDR Video Script
« Reply #9 on: May 31, 2013, 11:47:49 AM »
Great Murphy ! Many thanks from me and all the ML community for sharing your great work !  ;)
If you think it's impossible, you have lost beforehand

kgv5

  • Hero Member
  • *****
  • Posts: 643
Re: After Effects HDR Video Script
« Reply #10 on: June 02, 2013, 09:26:31 PM »
Come on, people, Is there a way to use this on windows?
www.pilotmovies.pl   5D Mark III, 6D, 550D

Naturalbornsamy

  • New to the forum
  • *
  • Posts: 13
Re: After Effects HDR Video Script
« Reply #11 on: June 03, 2013, 12:41:28 AM »
I switch my After Effect in english and the script works well! thx ;)

Murphy

  • New to the forum
  • *
  • Posts: 10
Re: After Effects HDR Video Script
« Reply #12 on: June 03, 2013, 08:05:22 AM »
Thanks for the kind words guys. Also thanks to scheng.pell again for the German translation and working out the bug. It didn't even occur to me that AE scripts would break depending on the language version.

kgv5, there's no reason i can think of why it shouldn't work in windows. The adobe scripting API is the same for both systems and should be platform independent (like python or JRE). If you want to give it a test, let us know if you have any problems.

kgv5

  • Hero Member
  • *****
  • Posts: 643
Re: After Effects HDR Video Script
« Reply #13 on: June 03, 2013, 08:54:43 AM »
Murphy, thank you very much for your response  :) So I will have to try this once again  :D
www.pilotmovies.pl   5D Mark III, 6D, 550D

moemitgalaxy

  • New to the forum
  • *
  • Posts: 1
Re: After Effects HDR Video Script
« Reply #14 on: October 26, 2013, 11:38:53 PM »
Hi,

thanks for this tool. How I have to export this file to use it in premerie pro???

I use:

Win 7, AE und PP CS 6, 25 fps

thanks

Joachim Buambeki

  • Freshman
  • **
  • Posts: 78
Re: After Effects HDR Video Script
« Reply #15 on: October 27, 2013, 06:58:43 PM »
Interesting script.
Would it be possible to modify that script that it loads a bracketed RAW timelapse sequence and does the same than with the laternating video sequence?
If yes, could ghosting be removed aswell?

That would be great, because one could skip the HDRI creation of bracketed timelapse sequence totally. :-)

SteveScout

  • Freshman
  • **
  • Posts: 99
Re: After Effects HDR Video Script
« Reply #16 on: January 19, 2014, 01:19:58 PM »
Murphy, thanks for writing this!!
Unfortunately .. here it does not work. Could it possibly produce errors on videos which don´t have the full 1080-height, since I captured in another aspect ratio?

It creates the comp, the high and low layer and an adjustment layer on top, but you still see the interlace lines after running it.

On the high exposure it applies the shift channels, an "invert alpha" and a curves effect with no change to the image.
On the low exposure image there is no effect applied at all.And the adjustment layer has just a curves effect without anything and a unsharp mask. But no sliders etc. anywhere. What could be wrong?

thanks!!

Steffen

djxltecno

  • New to the forum
  • *
  • Posts: 4
Re: After Effects HDR Video Script
« Reply #17 on: February 16, 2014, 10:30:51 PM »
Hi, interesting script, but i don´t know how run it. I have bright and dark .DNG files mixed in the same folder after pass through Raw2dng .

How is the process to get the .mov files you show in that picture http://www.basetheory.com.au/wp-content/uploads/2013/05/HDR_HowTo.jpg ?

Will be great if you explain all process.

I can import the DNG secuence with bright and dark .DNG files mixed, directly to AECS6, before AECS6 lets me adjust the first and applies the adjust to all the secuence of .DNG with Adobe Camera Raw. Maybe is there any script that shall be able to separate bright and dark .DNG files of the secuence of .DNG and after combines it to create an HDR secuence?

Sorry for my english

Thx

STELYA

  • New to the forum
  • *
  • Posts: 27
Re: After Effects HDR Video Script
« Reply #18 on: November 23, 2014, 02:18:08 AM »
Hey...
Unfortunately this script seems dead on my After CS6...or I dont know how to use it :0

Anyhoo I import HDR footage in AE and go to File/Scripts/This Script and nothing happens :(
Not sure Im doing it correctly, could anyone help? Do I need to extract hi/low ISO pictures from video first and how and then what?

Thanks!