Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Lade Plugins und setze die globalen Variablen ###
- LoadPlugin("C:\Program Files (x86)\SagaraS Scriptmaker\Plugins\SplineResize.dll")
- Global breite = 2560
- Global hoehe = 1440
- Global AR = 0
- ### Lade Videoquellen ###
- AVIload("E:\062.avi", 0, 0, 0, -0, -0)
- ### Filter Verarbeitungszone ###
- video = Last
- watermark = ImageReader("E:\Let's Plays\Wasserzeichen.png", 0, 0, Last.framerate, pixel_type="RGB32")
- watermask = watermark.ShowAlpha(pixel_type = "RGB32")
- Overlay(video, watermark, video.width - watermark.width - 20, 0 + 20, watermask, 0.5)
- ### Funktion für Video-Laderoutine ###
- Function AVIload (String file, int loading, int cl, int co, int cr, int cu) {
- (loading == 1) ? FFIndex(file) : nop()
- clip0 = (loading == 3) ? LWLibavVideoSource(file) : (loading == 2) ? Import(file).KillAudio() : (loading == 1) ? FFVideoSource(file, threads=1) : AVISource(file, false)
- rate1 = (Round(Float(clip0.framerate * 1000)) / 1000) / 2
- rate2 = Round(clip0.framerate) / 2
- rate = (rate1 == rate2) ? 1 : 1001
- ratefaktor = (rate == 1001) ? 1000 : 1
- clip1 = (rate == 1001) ? clip0.AssumeFPS(Round(clip0.Framerate) * 1000, rate) : clip0.AssumeFPS(round(clip0.framerate), rate)
- clip1 = clip1.Crop(cl, co, cr, cu)
- clip1 = (clip1.width == breite && clip1.height == hoehe) ? clip1 : (AR == 1) ? ((float(Clip1.height * breite) / clip1.width) / 2 == round((float(Clip1.height * breite) / clip1.width) / 2)) ? ((float(Clip1.width * hoehe) / clip1.height) / 2 == round((float(Clip1.width * hoehe) / clip1.height) / 2)) ? clip1 : clip1.ConvertToRGB24() : clip1.ConvertToRGB24() : clip1
- clip1 = (clip1.width == breite && clip1.height == hoehe) ? clip1 : (AR == 1) ? (((clip1.width * hoehe) / clip1.height > breite) ? Clip1.Spline100Resize(breite, ceil(float(Clip1.height * breite) / clip1.width)) : Clip1.Spline100Resize(ceil(float(clip1.width * hoehe) / clip1.height), hoehe)) : clip1.Spline100Resize(breite, hoehe).ConvertToYV12(matrix = "Rec601")
- back = (clip1.width == breite && clip1.height == hoehe) ? clip1 : (AR == 1) ? (0 == 1) ? ImageReader("", 0, clip1.framecount, clip1.framerate).ChangeFPS(round(clip1.framerate) * ratefaktor, rate).Spline100Resize(breite, hoehe).ConvertToYV12(matrix = "Rec601") : BlankClip(clip1.framecount, breite, hoehe, "YV12", round(Clip1.framerate) * ratefaktor, rate).KillAudio() : clip1
- Return (clip1.width == breite && clip1.height == hoehe) ? clip1.ConvertToYV12(matrix = "Rec601") : (AR == 1) ? Overlay(back, clip1, (back.width - clip1.width) / 2, (back.height - clip1.height) / 2) : clip1
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement