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
#11
Hab glaub ich ne Methode gefunden wie es geht und sie mal für die Color Filter implementiert (8 Stunden später, kaum getestet).
Lies Dir mal [INFO] About Vapoursynth Filter Order/Queue durch, damit Du weißt wie die Vapoursynth FilterQueue benutzt werden kann.

Wenn Du z.B.
  • Tweak mit Gamma 2 auf alle cycle=2, offsets=[0], und
  • Tweak mit Gamma 0.5 auf alle cycle=2, offsets=[1]
anwenden wolltest, müsstest Du, bei aktivierter FilteQueue, entsprechend 2x Tweak mit unterschiedlichen Gamma, 'Apply only to' cycle&offset zur FilterQueue hinzufügen.
Die FilterQueue sieht dann in etwa so aus:
Deinterlace:*,*:QTGMC (Vapoursynth):*,*:vsQTGMCBob;false:*,*:vsQTGMCSelect;Even:*,*:vsQTGMCPadToMod16;false:*,*:vsQTGMCPreset;Fast:*,*:vsQTGMCCPreset;Slower:*,*:vsQTGMCDenoiser;auto:*,*:vsQTGMCInputTyp;0:*,*:vsQTGMCOrder;-1:*,*:vsQTGMCInputTyp;0:*,*:vsQTGMCTr2;1:*,*:vsQTGMCSharpness;1.0:*,*:vsQTGMCSourceMatch;off:*,*:vsQTGMCNoisePreset;Fast:*,*:vsQTGMCShow;false:*,*:vsQTGMCShowNoise;false:*,*:vsQTGMCUseEzd;false:*,*:vsQTGMCUseEzk;false:*,*:vsQTGMCEzdValue;0.00:*,*:vsQTGMCEzkValue;0.00:*,*:vsQTGMCLossless;off:*,*:vsQTGMCOpenCL;false:*,*:vsQTGMCMatchEnhance;0.50:*,*:vsQTGMCMatchPreset;default:*,*:vsQTGMCMatchPreset2;default
Crop:*,*:nonea
Rotation:*,*:flipVideo;false:*,*:flipVideoHorizontal;false:*,*:rotate;false:*,*:rotateValue;off
Frameinterpolation:*,*:none
Resize:*,*:none
Letterboxing:*,*:none
AddingSubtitle
Color - Levels:*,*:vsLevels;true:*,*:vsLevelsMinIn;16:*,*:vsLevelsMaxIn;235:*,*:vsLevelsMinOut;16:*,*:vsLevelsMaxOut;235:*,*:vsLevelsPlanes;luma only:*,*:vsLevelsGamma;2.00:*,*:vsLevelsFrame;false:*,*:vsLevelsUseRGB;true:*,*:vsLevelsApplyOnlyToEvery;true:*,*:vsLevelsApplyOnlyToEveryCycle;2:*,*:vsLevelsApplyOnlyToEveryOffsets;0:*,*:vsLevelsOnlyRange;false:*,*:vsLevelsRanges;
Color - Levels:*,*:vsLevels;true:*,*:vsLevelsMinIn;16:*,*:vsLevelsMaxIn;235:*,*:vsLevelsMinOut;16:*,*:vsLevelsMaxOut;235:*,*:vsLevelsPlanes;luma only:*,*:vsLevelsGamma;0.50:*,*:vsLevelsFrame;false:*,*:vsLevelsUseRGB;true:*,*:vsLevelsApplyOnlyToEvery;true:*,*:vsLevelsApplyOnlyToEveryCycle;2:*,*:vsLevelsApplyOnlyToEveryOffsets;1:*,*:vsLevelsOnlyRange;false:*,*:vsLevelsRanges;
und Hybrid würde dann etwas wie:
# Imports
import vapoursynth as vs
core = vs.get_core()
# Loading Plugins
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/SourceFilter/FFMS2/ffms2.dll")
# source: 'F:\TestClips&Co\files\test.avi'
# current color space: YUV420P8, bit depth: 8, resolution: 640x352, fps: 25, color matrix: 470bg, yuv luminance scale: limited, scanorder: progressive
# Loading source using FFMS2
clip = core.ffms2.Source(source="F:/TestClips&Co/files/test.avi",cachefile="E:/Temp/avi_078c37f69bb356e7b5fa040c71584c40_853323747.ffindex",format=vs.YUV420P8,alpha=False)
# making sure input color matrix is set as 470bg
clip = core.resize.Point(clip, matrix_in_s="470bg",range_s="limited")
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# adjusting color space from YUV420P8 to RGB24 for vsLevels
clip = core.resize.Bicubic(clip=clip, format=vs.RGB24, matrix_in_s="470bg", range_s="limited")
# Color Adjustment
clipA = core.std.SelectEvery(clip = core.std.Levels(clip=clip, min_in=16, max_in=235, min_out=16, max_out=235, gamma=2.00), cycle=2, offsets=[0])
clipB = core.std.SelectEvery(clip=clip, cycle=2, offsets=[1])
clipA0 = clipA
clipB1 = clipB
clip = core.std.Interleave(clips=[clipA0,clipB1])
# Color Adjustment
clipA = core.std.SelectEvery(clip = core.std.Levels(clip=clip, min_in=16, max_in=235, min_out=16, max_out=235, gamma=0.50), cycle=2, offsets=[1])
clipB = core.std.SelectEvery(clip=clip, cycle=2, offsets=[0])
clipA1 = clipA
clipB0 = clipB
clip = core.std.Interleave(clips=[clipB0,clipA1])
# adjusting output color from: RGB24 to YUV420P8 for x264Model (i420@8)
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, matrix_s="470bg", range_s="limited")
# set output frame rate to 25.000fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Output
clip.set_output()
erzeugen. Ist zwar nicht wirklich 'schön', aber sollte funktionieren.
-> Habe Dir mal nen Link zu ner dev Version (per PM) zum Testen geschickt. Smile

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
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 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: 3 Guest(s)