View Full Version : Some kind of stack function ?
Betsy25
10th March 2009, 19:24
Hi,
I'm in the process of testing x264 encoding using MeGui with different options, therefore I have files like :
- Movie-EQ.mkv
- Movie-Insane.mkv
I know almost nothing about Avisynth, and the website times out here, I can never reach the Avisynth site (don't know if other can)
I read about the StackHorizontal and StackVertical filters, but I would like to do something for better comparing the 2 movie clips.
I would like a script to switch movies like every 10 seconds.
So, my mediaplayer should play 10 secs from "Movie-EQ.mkv", then goes on playing 10 secs from "Movie-Insane.mkv" , etc...
Is there something available that can do something like that please ?
Thanks in advance.:)
Sagekilla
11th March 2009, 00:12
Try Interleave(). This script will let you do frame by frame comparisons of each. just open it up in mpc, pause it and press left/right to step through the movie.
a = Directshowsource("Movie-EQ.mkv")
b = Directshowsource("Movie-Insane.mkv")
Interleave(a,b)
Betsy25
11th March 2009, 00:40
Thanks a lot Sage,
will test this out tommorow !:)
stickboy
11th March 2009, 01:56
BTW, when you install AviSynth, it installs documentation too.
Betsy25
11th March 2009, 12:40
BTW, when you install AviSynth, it installs documentation too.
Oh, I see now ! :)
Only the help file is quite large and digging every single filter and the helpfile is really overwhelming and a bit Chinese for beginners,
I would never found the option SageKilla posted when I had to search the helpfile myself.
Thanks ! :o
Betsy25
11th March 2009, 13:00
Try Interleave(). This script will let you do frame by frame comparisons of each. just open it up in mpc, pause it and press left/right to step through the movie.
a = Directshowsource("Movie-EQ.mkv")
b = Directshowsource("Movie-Insane.mkv")
Interleave(a,b)
Well, I only get this error message :
Interleave: Videos must be of the same size :(
hanfrunz
11th March 2009, 16:20
then you have to resize or better in this case add borders to the smaller one.
I will not give a an exact script, because you should learn :) , but if you study these filters and still have questions, please come back and ask.
info()
addborders()
converttoyuy2()
bicubicresize()
hanfrunz
Betsy25
11th March 2009, 16:58
then you have to resize or better in this case add borders to the smaller one.
I will not give a an exact script, because you should learn :) , but if you study these filters and still have questions, please come back and ask.
info()
addborders()
converttoyuy2()
bicubicresize()
hanfrunz
Thanks a lot ! I go to learn now !:o
Well, to be honnest, I really don't know what proper reason one should have to use interleave, since it can only play 1 frame before switching to the other file, I really wanted something like play me 1000 frames and then switch.
Also, I don't find any filter which shows what file the currently played frame is from. I tried .Info but unfortunatelly it showed many things, but no filename.:(
Sagekilla
11th March 2009, 19:45
Do you mean something like:
A# = frame # from A
B# = frame # from B
A0, ..., A999, B0, ... B999, A1000, ... A1999, B1000, ... B1999
or
A0, ... A999, B1000, ... B1999
Basically, in example 1, it shows 1000 frames from A, then the same 1000 from B. Example 2 shows 1000 from A, then next 1000 from B.
Leak
11th March 2009, 20:07
Also, I don't find any filter which shows what file the currently played frame is from. I tried .Info but unfortunatelly it showed many things, but no filename.:(
I think you're looking for Subtitle()... ;) (No, there's no way to get the filename, but you can just use any descriptive text for both videos...)
As for the switching - something like
ConditionalFilter(a,a,b,"current_frame % 500","<","250")
should do the trick to alternatingly show 250 frames of one source (a) followed by 250 frames of another source (b) - at least as far as the video is concerned; the audio will always come from a that way...
np: Vangelis - Blush Response (Blade Runner Trilogy - 1994 OST (Disc 1))
Betsy25
11th March 2009, 21:37
Many thanks for the help guys, I'm coming closer !:)
matrix
14th March 2009, 00:54
There is a plugin Alternate, you can find it on warpenterprises filter colection, see the stickies.
Try something lile this
a=Movie-EQ.mkv
b=Movie-Insane.mkv
alternate(a.subtitle("Movie-EQ"),b.subtitle("Movie-Insane") ,duration=300)
Betsy25
21st March 2009, 23:31
There is a plugin Alternate, you can find it on warpenterprises filter colection, see the stickies.
Try something lile this
a=Movie-EQ.mkv
b=Movie-Insane.mkv
alternate(a.subtitle("Movie-EQ"),b.subtitle("Movie-Insane") ,duration=300)
Great tip matrix ! Thanks a lot ! :o
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.