In your example you have the "big" clip, that has 601 frames. Small 1 =151 frames. Small 2-4 =150 frames each. Make sure all clips have the same number of frames.
But you are right, the small clips do not stop at the end frame. I did not notice that until now. I am not sure, why the clips do not stop and probably it would take a couple of hours to figure it out. So I have a different solution, that requires Avisynth 2.02 or newer.
big=AVIsource("F:\video\Clips\sanxia.avi").Trim(0,599)
small=AVIsource("F:\video\Clips\sanxia.avi").BicubicResize(180,120)
small1=Trim(small,0,149).loop(-1,0,149)
small2=Trim(small,150,299).loop(-1,0,149)
small3=Trim(small,300,449).loop(-1,0,149)
small4=Trim(small,450,599).loop(-1,0,149)
....etc.....etc....
+ Reply to Thread
Results 31 to 47 of 47
Thread: How to edit with Avisynth
Thread
-
Yes, I think I have found a faster and easier way. Again it requires at least Avisynth 2.02 (2.06 is recommended).
big=AVIsource("F:\video\Clips\sanxia.avi").Trim(0,599)
small=AVIsource("F:\video\Clips\sanxia.avi").BicubicResize(180,120)
small1=Trim(small,0,149).loop(-1,0,149)
small2=Trim(small,150,299).loop(-1,0,149)
small3=Trim(small,300,449).loop(-1,0,149)
small4=Trim(small,450,599).loop(-1,0,149)
v1=Layer(big, small1,"add",255,120,80)
v2=Layer(v1, small2,"add",255,420,80)
v3=Layer(v2, small3,"add",255,120,280)
v4=Layer(v3, small4,"add",255,420,280)
chap1in=Trim(v4,0,75).Animate(5,55,"BicubicResize",720,480,0,0.5,0,0,720,480,720,480,0,0.5,120,80,18 0,120)
chap1out=Trim(v4,76,150).Animate(5,55,"BicubicResize",720,480,0,0.5,120,80,180,120,720,480,0,0.5,0,0,72 0,480)
chap2in=Trim(v4,151,225).Animate(5,55,"BicubicResize",720,480,0,0.5,0,0,720,480,720,480,0,0.5,420,80,18 0,120)
chap2out=Trim(v4,226,300).Animate(5,55,"BicubicResize",720,480,0,0.5,420,80,180,120,720,480,0,0.5,0,0,72 0,480)
chap3in=Trim(v4,301,375).Animate(5,55,"BicubicResize",720,480,0,0.5,0,0,720,480,720,480,0,0.5,120,280,1 80,120)
chap3out=Trim(v4,376,450).Animate(5,55,"BicubicResize",720,480,0,0.5,120,280,180,120,720,480,0,0.5,0,0,7 20,480)
chap4in=Trim(v4,451,525).Animate(5,55,"BicubicResize",720,480,0,0.5,0,0,720,480,720,480,0,0.5,420,280,1 80,120)
chap4out=Trim(v4,526,600).Animate(5,55,"BicubicResize",720,480,0,0.5,420,280,180,120,720,480,0,0.5,0,0,7 20,480)
chap1=UnalignedSplice(chap1in,chap1out)
chap2=UnalignedSplice(chap2in,chap2out)
chap3=UnalignedSplice(chap3in,chap3out)
chap4=UnalignedSplice(chap4in,chap4out)
UnalignedSplice(chap1,chap2,chap3,chap4)
#text as above
8)
Thanks again truman,
I just gave the script (above) a try. unfortunately, it said "layer only support RGB32 and YUY2). My DV clip is RGB24.
Can I still use this method after some modification to my clip or what?
My Avisynth is the lates. (2.0.6)
I tried to convert it to RGB32 with Lead RGB converter. It worked after. But the resolution has reduced to about quarter(360*240, and i have no control of this) and the audio track (I chosed the PCM codec) is gone. The result is it animates but chopped to only a quarter of the original. Are you aware of any RGB converters that does this job well?
big=AVIsource("F:\video\Clips\sanxia.avi").Trim(0,599).ConvertToRGB32
small=AVIsource("F:\video\Clips\sanxia.avi").BicubicResize(180,120).ConvertToRGB32
If you plan to convert it to MPEG, I suggest to ConvertToYUY2 instead.
HI, truman, you are realy knowledgable on this and HELPFUL as well.
I know so little but am very willing to learn. I just started this time consuming hobby in about a month. I learned to use Philips VCD2TK (and I did it well. I figured out a better way write that image). I have also learned the VCDimager and xml stuff ( i did it not bad either). I am a biologist by profession though and have no background in computer. I was fortunate to have joined this forum. The people here are very helpful and willing to share. Without all these inputs from these genius. I would never be able do anything. The bad side of this is this intriguing and addictive thing has taken so much of my time that is meant to be for the family.
yes, they work perfectly, except for the "trim" function.
Even if you loop the short small clips?Originally Posted by tigerten
yes. They all loop as designed(within the ranges the trims define, so they do not play beyong the end-frame as it happened previously).
But TMPGenc (2.58 plus) won't open the newer script anymore (unsupported?). I have to frameserve it with VirtualDUB in order to encode it.
BTW, the trimming function does not work in the "cut and join" scipt either, if i still remember it correctly when i first tried it. I will give them another try and let you know. You can also test it and let me know.
I test some the cut and join scripts (not all though, can't see why other won't). they work perfectly.
I have tested the "rolling text" they are great.
Thanks.
Regarding the following sample:
LoadPlugin("MPEG2DEC.dll")
LoadPlugin("AVISynth_Spatial.dll")
Avisource("I:\cap\cap.avi")
Crop(4,0,632,464)
SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
TemporalSmoother(3,3)
SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
BicubicResize(480,480)
Just curious, but is there a reason for the second 'SpatialSoftenMMX()' entry?
As mentioned before, I do not use these soften filters that often.
I wont recommend any denoise filter or any filter setup, because every source requires a different filter adjustment.
The sript above is an example. If you have a very very noisy source you may try that. If you have a "normal" noisy source a single TemporalSoften might do the job, but of course you can chain as many soften filters as you like.
for some weird reason...
when i try to open a *.avs scipt in vdub or windows media player, it just closes it. like, i try to open the script in one of those applications, and a moment later, it closes. i've used avisynth scipts before successfully.
anyone have any ideas why it's not working anymore?
HI CAN I EDIT MPEGS USING AVISYNTH
BASICALLY I HAVE GOT MPEGS WITH BAD FRAMES AND I WANT
TO REMOVE THOSE FRAMES.
COULD YOU PLZ(REPEAT PLZ) GIVE ME A STEP BY STEP GUIDE
1) I HAVE TO CREATE AN AVS FILE WITH DIRECTSHOW(OK)
2) I HAVE TO USE THE TRIM COMMAND GIVING THE BAD FRAMES(DONT KNOW HOW)
IS IT LIKE THIS "
c=DirectShowSource("myclip.mpg")
f=1234 #your 1st bad frame
c.deleteframe(f).duplicateframe(f-1)
f=4567 #your 2nd bad frame
c.deleteframe(f).duplicateframe(f-1)
.
.
.
return c
3) I HAVE TO OPEN THE AVS IN VDUB??
4) THEN ..................WHAT SHOULD I DO?(WILL IT REENCODE AGAIN?)
5) CAN I DO STEP 3) IN TMPGENC?
6) THANKS A LOOOOOOOOOOOOOOOOT.
Same question...I have mpg files, recorded from dreambox (or originaly ts files) and i would like to put logo on it when I am encoding file in mkv format. Can anyone explain to me what to do ? I tried with codes but always says some errors

PLEASE HELP !!!
Total noob here. Had the following script to edit SD clips in the past:
**********
Loadcplugin("c:\program files\avisynth 2.5\plugins\yadif.dll")
Clip1=DirectShowSource("M:\UnconvertedVideo\Clip 017.m2t").Trim(160,320)
Clip2=DirectShowSource("M:\UnconvertedVideo\Clip 015.m2t").Trim(50,350)+Trim
Dissolve(clip1,clip2,10)
yadif()
**********
Now trying to use same scipt on HD clips (*.m2t) files. VirtualDub doesn't load this script.
My questions:
1.Why doesn't VirtualDub load my script?
2.Which filter do you recommend for voiceovers (to replace original bad audio) and what would be its usage?
Sorry, if I'm asking in wrong topic. I need to edit the Avisynth => Edit filtering script many times. So, how or where do I have to edit and then make as the new edited as default? I don't want to edit before all encoding, it really sucks. Thanks and sorry!
Similar Threads
-
Is there a program to edit HDDVD like Clown_BD can edit Blu-ray?
By c627627 in forum Authoring (Blu-ray)Replies: 0Last Post: 3rd Jan 2011, 23:35 -
AVSTODVD: Avisynth script edit - colorspace conversion question...
By JRM75 in forum Video ConversionReplies: 2Last Post: 26th Jul 2010, 18:43 -
Why does the video I edit in Cyberlink look darker after I edit it and post
By Chubby Johnson in forum Newbie / General discussionsReplies: 1Last Post: 30th Jun 2010, 05:08 -
Edit, add, extract WAVE and edit file tags with new Machete 3.5
By MacheteSoft in forum Latest Video NewsReplies: 0Last Post: 23rd Dec 2009, 10:05 -
need help in choosing a format after video edit (DV then edit then DVD)
By shade_2 in forum Newbie / General discussionsReplies: 5Last Post: 5th Jul 2008, 13:13
StatisticsNewest guidesLatest tool updatesNew media comments



Quote