Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to Do Batch/Script Work on Combining Multiple Images.
#1
Hello, everyone!

I am independent filmmaker who is trying to do an experiment but, I am not having the best luck. I am shooting a movie and I bought a bunch of print damage to apply to the movie that I am shooting. However, I wasn't too thrilled with how the chroma keyer worked in Vegas. So, I had Vegas extract a shot and two clips of print damage and convert each individual frame into the png format and went into GIMP and I experimented with filters to degrade frames.

This is frame 81 in my folder from the shot.

   

This is frame 81 in my folder from the first clip of print damage.

   

This is frame 81 in my output folder from applying linear light to the image of damage on top.

   

I did it for the whole shot which was almost 400 frames and it looks great re-inserted into Vegas. It really gives it that faded celluloid look; which is just a red image. Is there a way other than doing it frame by frame for the whole movie; which could take a year (or years depending on how busy I am)? I download BIMP but I couldn't exactly find what to do and when I tried loading something, GIMP gave me a message stating something like "Too Many Error Messages" and I have to ctrl+alt+del myself out of the program.

Edit: GIMP 2.10.8 / Windows 10

Thank you for your time.
-Orlando Eastwood
Reply
#2
BIMP is not really the tool for this. 

As a first thought without writing a bespoke script, one of Moderator Ofnuts Wink plugins interleave_layers-0.4.py Find it here: http://sourceforge.net/projects/gimp-too...s/scripts/ dated 2012-07-09

As-is, this is for Gimp 2.8 layermodes and does not include the LAYER_MODE_LINEAR_LIGHT option. You can add it for your own use or ask Ofnuts for advice.

Then it depends on your computer capabilities to some extent. Open the frames As-Layers. Open the overlay as another image, Apply the plugin. (1) is the list of layers to choose overlay (2) is the dialogue.

   

That gives a new adjusted image, still lots of layers. There are several scripts around to save layers as individual images.

   

Bound to be a better way, maybe run that script in a batch file, or something completely different.

edit: hmm...not quite the same result...back to the drawing board - however vivid light seems to give a closer result to the target image than linear light.
Reply
#3
Thanks for the reply Rich. Here is a Youtube video of the shot that goes into detail over the two clips of films deterioration that I applied to the shot.



Reply
#4
I see you need a separate defect frame applied to each video frame. Ofnuts script can do that with that small modification for the new Gimp 2.10 layer modes. However. 400 frames = 400 HD layers = 2 GB in memory. One of those for each set and interleaved creates a third file 2 GB in memory. That is a lot of resources.

You could ask for help to create a bespoke script to run in batch mode.You might get a response.

Another way is using ImageMagick (IM) http://www.imagemagick.org where the compose operation also has the equivalent (hopefully ) lighting composition methods. All command line see http://www.imagemagick.org/Usage/compose/

A pair of images combine with a command 

Code:
magick composite -compose vivid_light  orig.jpg defect.jpg  new.png

You would need to put that into a Windows batch file. Sorry but using linux here , my Windows batch scripting is even flakier than my linux scripting Wink I pulled those 400 frames, with watermarks / text etc out of your video and using vivid light as a demo this:





https://youtu.be/OGBT3_9XSQk Duration 3 minutes

If you want to pursue that then the best place to ask is https://www.imagemagick.org/discourse-server/ in the users section. There is a Windows user there who is very helpful.
Reply


Forum Jump: