This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

SelectEvery für Color Filter
#5
(11.03.2021, 19:45)Selur Wrote: Mach das, werde ich mir dann vermutlich in Ruhe am WE anschauen und drüber nachdenken ob und wie ich das eventuell hinzufügen würde. Smile
(draufschauen werde ich je nach dem noch heute Abend, aber vermutlich noch nichts entscheiden)

Cu Selur
Genau alles ohne hektik . und vielen Dank fürs zeit nehmen Smile

Also der script steht soweit , nur gibt es noch einen kleinen bug den ich wohl nicht ganz verstehe. Der Script klappt gut bis er die clips interleaved, obwohl beide clips mit AssumeFPS auf 25fps gesetzt werden, wird der zweite cip mit 50fps (oder doppelter frame anzahl) zusammen gemischt. Den fehler versuche ich dann morgen zu finden zsm mit einenr schönen sample stelle.
(anmerkung: das ist nur ein Beispiel Script)
scriptPath = 'C:/Home/Apps/Hybrid/64bit/vsscripts'
sys.path.append(os.path.abspath(scriptPath))
core.std.LoadPlugin(path="C:/Home/Apps/Hybrid/64bit/vsfilters/ColorFilter/TimeCube/vscube.dll")
core.std.LoadPlugin(path="C:/Home/Apps/Hybrid/64bit/vsfilters/Support/RemapFramesVapoursynth.dll")
import adjust
#
# split clips with SelectEvery
clipEven = core.std.SelectEvery(clip=clip, cycle=2, offsets=[0])
#
# Do stuff with Even frames
#
# ColorMatrix
clipEven = core.std.SetFrameProp(clip,prop="_Transfer",intval=1)
clipEven = core.resize.Bicubic(clip=clipEven, matrix_in_s="2020cl", matrix_s="240m", range_in=0, range=0)
clipEven = core.std.Levels(clip=clipEven, min_in=0, max_in=255, min_out=0, max_out=235, planes=[0])
clipEven = core.remap.Rfs(baseclip=clipEven, sourceclip=adjust.Tweak(clip=clip, hue=0.00, sat=0.56, cont=0.50, bright=0, coring=True))
clipEven = core.resize.Bicubic(clip=clipEven, format=vs.RGB24, matrix_in_s="240m")
clipEven = core.timecube.Cube(clip=clipEven, cube="C:/Home/Apps/Hybrid/64bit/vsfilters/ColorFilter/TimeCube/PQ_to_BT709_slope_v2.cube")
#
# split clips with SelectEvery
clipOdd = core.std.SelectEvery(clip=clip, cycle=2, offsets=[1])
#
# Do stuff with Odd frames
#
# Interleave clips back to one
clipEven = core.std.AssumeFPS(clip=clipEven,fpsnum=25, fpsden=1)# new fps: 25
clipOdd = core.std.AssumeFPS(clip=clipOdd,fpsnum=25, fpsden=1) # new fps: 25
clip = core.std.Interleave(clips = [clipEven, clipOdd])
clip = core.std.AssumeFPS(clip=clip,fpsnum=50, fpsden=1)# new fps: 50

Und fake HDR frames kann man mit merge zusammenfügen zb 1 zu 1 oder 75% etc http://www.vapoursynth.com/doc/functions...#std.Merge



*Edit: Oh so funktionierts. clipEven = core.std.SetFrameProp(clip,prop="_Transfer",intval=1) war das problem im gegensatz zu den anderen steht hier nicht clip=clip, so hab ich übersehen es clipEven zu zuordnen
#
# split clips with SelectEvery and Assume FPS
clipOdd = core.std.SelectEvery(clip=clip, cycle=2, offsets=[1])
clipOdd = core.std.AssumeFPS(clip=clipOdd,fpsnum=25, fpsden=1) # new fps: 25
#
#
# split clips with SelectEvery and Assume FPS
clipEven = core.std.SelectEvery(clip=clip, cycle=2, offsets=[0])
clipEven = core.std.AssumeFPS(clip=clipEven,fpsnum=25, fpsden=1)# new fps: 25
#
# Do stuff with Even frames
#
#
# Do stuff with Odd frames
#
# Interleave clips back to one
clipEven = core.std.AssumeFPS(clip=clipEven,fpsnum=25, fpsden=1)# new fps: 25
clipOdd = core.std.AssumeFPS(clip=clipOdd,fpsnum=25, fpsden=1) # new fps: 25
clip = core.std.Interleave(clips = [clipEven, clipOdd])
clip = core.std.AssumeFPS(clip=clip,fpsnum=50, fpsden=1)# new fps: 50
#
# Do stuff with all frames
#
# End-1 Extract Even/Odd Frames
clip = core.std.SelectEvery(clip=clip, cycle=2, offsets=[0])
#
# End-2 Merge Dark and Bright or HDR and LDR Frames
clip = core.std.Merge(clipHigh, clipLow, 0.5)

(was mir grade einfällt: Im prinzip ist das wie mit photoshop und layern zu arbeiten = großes potential oder ?)
http://www.vapoursynth.com/doc/plugins/morpho.html
http://www.vapoursynth.com/doc/functions...merge.html
Reply


Messages In This Thread
SelectEvery für Color Filter - by BinaryPic - 11.03.2021, 19:16
RE: SelectEvery für Color Filter - by Selur - 11.03.2021, 19:27
RE: SelectEvery für Color Filter - by Selur - 11.03.2021, 19:45
RE: SelectEvery für Color Filter - by BinaryPic - 12.03.2021, 00:12
RE: SelectEvery für Color Filter - by Selur - 12.03.2021, 06:49
RE: SelectEvery für Color Filter - by Selur - 12.03.2021, 21:20
RE: SelectEvery für Color Filter - by Selur - 12.03.2021, 22:19
RE: SelectEvery für Color Filter - by Selur - 13.03.2021, 01:45
RE: SelectEvery für Color Filter - by Selur - 13.03.2021, 14:27
RE: SelectEvery für Color Filter - by Selur - 14.03.2021, 09:14
RE: SelectEvery für Color Filter - by Selur - 14.03.2021, 11:30
RE: SelectEvery für Color Filter - by Selur - 15.03.2021, 06:53
RE: SelectEvery für Color Filter - by Selur - 15.03.2021, 07:45
RE: SelectEvery für Color Filter - by Selur - 15.03.2021, 22:02
RE: SelectEvery für Color Filter - by Selur - 15.03.2021, 22:15

Forum Jump:


Users browsing this thread: 2 Guest(s)