Hi there
I would like to block off a section of rolling credits in a video. How would I animate my overlay to go from y=0 to y=-1080 in a period of 204 frames? This is my code so far:
I don't know how to fill those arguments in the Animate function.Code:Credits=ffvideosource("E:\JAP.mkv").Trim(120491,120695) mask=BlankClip(Credits, length=787, color=$347A34) video=overlay(Credits,mask,x=0,y=0,opacity=1) #So I would like it to start here video=overlay(Credits,mask,x=0,y=-1080,opacity=1) #And animate until here
I would appreciate any assistance, thanks!
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 17 of 17
Thread
-
-
The easiest way to do this is to create your own function with only one variable and animate that:
Code:function MyOverlay(clip v, clip o, int ypos) { Overlay(v, o, x=0, y=ypos, opacity=1) } Credits=ffvideosource("E:\JAP.mkv").Trim(120491,120695) mask=BlankClip(Credits, length=787, color=$347A34) Animate(0,204, "MyOverlay", Credits,mask,0, Credits,mask,-1080)
-
In case it's just rolling text, creating ass-Subtitles and adding them through a subtitle filter might also be an easy solution,..
users currently on my ignore list: deadrats, Stears555 -
Thanks I didn't think of creating a custom function. This works well, putting overlay directly in Animate was giving me problems.
@Selur It's only a section I wanted covered after which I want it to continue as per normal. Thanks for the suggestion. -
What do you use to load ssa files?
I've tried this:
Code:JAP=ffvideosource("E:\JAP.mkv") JAP=TextSub(JAP,"C:\VirtualDub2_43602\JAP.ssa") JAP
-
AssRender or one of the VSFilter versions (https://code.google.com/archive/p/vsfiltermod/, https://www.videohelp.com/software/VSFilter-DirectVobSub, http://www.codeforge.com/article/338839) should all work (depending on the sbutitle file one or the other might work better)
users currently on my ignore list: deadrats, Stears555 -
I tried VSFilterMod, so there is a bit of an improvement. The video is the correct frame size, but the text is still covering most of the frame even though I specified size, font and position when converting to ssa.
AssRender seems good, do you know where I can get a compiled file for AviSynth+? Or if not then anything that'll work for AviSynth+? -
users currently on my ignore list: deadrats, Stears555
-
https://forum.doom9.org/showthread.php?t=148926 links to compiled version, for example: http://srsfckn.biz/assrender/assrender-0.25.7z
users currently on my ignore list: deadrats, Stears555 -
Okay so I managed to get this code running:
Code:JAP=ffvideosource("E:\JAP.mkv") AssRender(JAP,"E:\JAP.ass", hinting=2, charset="UTF-8")
-
Possible cause:
NOTE: the included fontconfig directory MUST be in the same folder as the .dll, or it'll crash!
Note 2: loading something the first time can be pretty slow, especially if you have a lot of fonts installed, because fontconfig needs to cache all your system fonts.
Also since you are not using
Code:string fontdir: Additional font directory. Useful if you are lazy but want to keep your system fonts clean.
Cu Selurusers currently on my ignore list: deadrats, Stears555 -
Hi there everyone
I was wondering if there is a filter or something that could output a trimmed subtitle file. Let's say I started like this:
JAP=ffvideosource("E:\JAP.mkv")
JAP=TextSub(JAP,"C:\VirtualDub2_43602\JAP.ssa")
and then I make a few edits
JAP.Trim(A, B)+JAP.Trim(C,D)
and then output an edited subtitle file that'll go with this footage. How could I do this in AviSynth?
Thanks for all the help -
You can probably use MKVToolNixGUI for something like that, although you'll be limited to cutting on keyframes.
Open the MKV, add the subtitles file, use MKVToolNixGUI to cut out the section you don't want (split by parts based on frame numbers A-B,C-D), and finally extract the subtitles from the output MKV with gMKVExtractGUI or MKVCleaver.
I think that will work, otherwise you'd probably have to create the edited video, and manually edit the subtitles to match with something like SubtitleEdit.
Similar Threads
-
overlay red?
By honikerxmckillop in forum EditingReplies: 4Last Post: 28th Feb 2019, 11:06 -
Can anyone help me with this Overlay?
By Guernsey in forum EditingReplies: 8Last Post: 24th Jul 2018, 02:11 -
Using VSDC to animate a banner
By jbearnolimits in forum EditingReplies: 1Last Post: 9th Jun 2016, 08:44 -
AviSynth - Animate Position
By lomaidala in forum EditingReplies: 6Last Post: 15th Sep 2015, 13:46 -
ffmpeg overlay question
By Basher06 in forum Newbie / General discussionsReplies: 0Last Post: 19th Jun 2015, 04:52