Is it possible to simulate a filstrip (i.e. 2 or more consequtive fremes stacked horizontally)?
I tried this, but it doesn't work:
l0=avisource("test.avi")
l0=l0.converttoYuY2()
l1=l0.selectevery(4,0)
l2=l0.selectevery(4,1)
l3=l0.selectevery(4,2)
l4=l0.selectevery(4,3)
last=stackhorizontal(l1.showframenumber(),l2.showf ramenumber(),l3.showframenumber(),l4.showframenumb er())
StackVertical(last, last.reverse()) #reverse is only for demo
Background: many TV stations overlap the movie after a comercial, i.e. some seconds (from 5 to 30), are shown gain, when the next part of the movie is transmitted.What I need is, to find the exact frame#s (end of 1st part and start of 2nd part) for cutting the comercials. It would be nice, to be able to preview the cutting points with VDub, showing part 1 in the upper half and the next in the lower part.
But with my example, all frames are the same! Any idea, how to solve that? Or isn't it possible in the first place?
+ Reply to Thread
Results 1 to 6 of 6
-
-
I found my error:
if I had written it this way:
.
.
.
l1=l0.selectevery(1,0)
l2=l0.selectevery(1,1)
l3=l0.selectevery(1,2)
l4=l0.selectevery(1,3)
.
.
it should have worked.
Now it works. -
Your second version doesn't do what the original version was intended to do.
- Your original version is intended to "page" through the filmstrip, so that each frame appears only once, on one Vdub "page."
- Your second version instead "scrolls" through the filmstrip, such that each frame can appear up to four times, because each frame gets shifted one position to the left on each subsequent VDub "page-view" of the filmstrip.
l0=avisource("test.avi").showframenumber()
l0=l0.converttoYuY2()
l1=l0.selectevery(4,0)
l2=l0.selectevery(4,1)
l3=l0.selectevery(4,2)
l4=l0.selectevery(4,3)
last=stackhorizontal(l1,l2,l3,l4)
StackVertical(last, last.reverse()) #reverse is only for demo
In brief: Your original version did produce the desired output, but numbered the frames incorrectly. -
*gig*, might not be the worst idea to set threads 'read only' if they hit some 'expiration date' (in example after 5 years),....
-
I responded to the above because I haven't found any other discussion on how to use AVISynth to convert a video into a filmstrip-type format.
If you know of any, please post its link here.
Otherwise, the post I responded to is not outdated, no matter when it was posted. And both it any my response may serve others who have a similar interest in creating filmstrips.
Similar Threads
-
New AVISynth UI
By tin2tin in forum Latest Video NewsReplies: 23Last Post: 19th Jan 2012, 01:53 -
avisynth
By sportflyer in forum Newbie / General discussionsReplies: 1Last Post: 16th Feb 2010, 04:36 -
Using avisynth
By bsuska in forum Video ConversionReplies: 8Last Post: 16th Jul 2009, 08:32 -
AVIsynth help!
By helper in forum Newbie / General discussionsReplies: 11Last Post: 15th Oct 2008, 03:35 -
Avisynth 3.0
By nbi in forum LinuxReplies: 1Last Post: 30th Oct 2007, 16:50