Hello!
I recently tried my camera on a night shot (in the middle of a snow storm) and ... let's just say the footage was atrocious. I got the green pixel servings of death LOL
To salvage the result I extracted all the images as individual .PNG files (with the VLC player) and decided to go the G'MIC command line way with the following batchfile :
Note: There's 240 pictures in all
@Echo off
FOR /f "tokens=*" %%G IN ('dir IN\*.png /b') DO (call :subroutine "%%G")
Pause
GOTO :eof
:subroutine
gmic -input IN/%1 fx_dreamsmooth 3,0,1,0.8,0,0.8,4,24,0 jl_colorgrading 0.127,-3,1,1,-10,-15,50,10,0,0,1,0.442,0,0,70,0,0,0,0,0,70,180,0,1.092,0,10,0 -output OUT/%1
GOTO :eof
This code passes every file from the IN\ folder, does a few G'MIC operations and then saves the result (with the same name) into the OUT\ folder
This works great ... until you have 5-6 operations and then the command line is too big to be processed.
I think I've read the whole damn manual and I'm only finding partial answers and no solutions.
I'm trying to find :- A way to bypass the command line length limitation?
And/ or- A way to import a script file into G'MIC --> gmic @scriptfile.txt
And / or- A way to create a G'MIC script that will load all the pictures in sequence and do all the operations I require
I don't really want to create a custom filter unless I don't have a choice (it's not meant to be part of a GUI or whatnot).
I'd rather do all the processing in one shot instead of calling G'MIC multiple times (I "preview" the operations in GIMP so they can be processed linearly using only G'MIC)
Each filename is padded with zeros so that's to be considered if we ask G'MIC to load files sequentially (scene00001.png, scene00002.png, scene00003.png, etc).
Any help will be really appreciated!
I might also post a link to the final video if I can get this to work
![Wink ;)](./images/smilies/icon_wink.gif)
I'm using G'MIC CLI 2.9.6