Now in the script is generate the string "dd_method_params=[0.6,2,0.15,0.2]", while should be generate "dd_method_params: list = [0.6, 2.0, 0.15, 0.2, False]" if "invert merger order" is unchecked and "dd_method_params: list = [0.6, 2.0, 0.15, 0.2, True]" if "invert merger order" is checked.
I'm looking to a way to stabilize the colors. This filter must be a temporal filter.
The simplest way is to average the current frames with the previous frames.
I found the description of misc.AverageFrames
But I was unable to find it.
This code is not working:
would work. (assuming it's not loaded for another filter by Hybrid)
If it's used, for a specific dd_method I can adjust Hybrid to automatically load it.
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
good news! I found an effective way to stabilize the clip's colors by using the filter AverageFrames.
Unfortunately I cannot add it in my filter because in not working if called inside a vpy filter.
So this filter must be managed directly in Hybrid's GUI.
This filter act as a temporal filter since the average is performed both on past and future frames.
The type of average can be controlled using the weights, the max number of weights is 31, and must be used a (integer) odd number of weights because it is used a central average.
It is better add this filter as a post process filter in the "Coloring" page.
The options to be added are:
1) Number of frames (integer, max 31)
2) The type of average: Central Average, Left Average (only past frames), Right Average (only future frames)
3) Scene Change detection (boolean): if true in the case of change scene detection the future frames are not used
Weight computation:
Given N the number of frames detected [if N%2==0: N+=1, N=min(N,31)]
The lateral weights can be calculated as: Wi=trunc(100/N)
Then the central weight can be calculated as: Wc=100-(N-1)*Wi
The Average must be performed on YUV color-space, using only the plans "U","V", because we are interested in stabilize the chroma components.
The attached file VideoTest_small1_DV+DD_AF31C.zip is an example of result obtained using a "Central Average" with 31 frames and scenechange =False, using the code
Quote:Unfortunately I cannot add it in my filter because in not working if called inside a vpy filter.
any details on that?
I think the most sensical way would be to write a Python script which stabilizes the chroma using AverageFrames.
=> I'll think about it a bit.
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
# convert the clip format for deoldify and std.Levels() to RGB24
clip_rgb = clip_yuv.resize.Bicubic(format=vs.RGB24, matrix_in_s="709", range_s="limited", dither_type="error_diffusion")
return clip_rgb
I will add this filter directly in ddeoldify, but the plugin "MiscFilters.dll" must be loaded by Hybrid.