|
|
INDEX F.A.Q. SEARCH LATEST POSTS
Rules Register Profile Private messages Login
| Author |
Message |
Truman Moderator
Joined: 19 Feb 2001 Location: Berlin, Germany
|
|
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....
|
|
Truman Moderator
Joined: 19 Feb 2001 Location: Berlin, Germany
|
|
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,180,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,720,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,180,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,720,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,180,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,720,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,180,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,720,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
|
|
tigerten Member
Joined: 15 Sep 2001
|
|
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)
|
|
tigerten Member
Joined: 15 Sep 2001
|
|
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?
|
|
Truman Moderator
Joined: 19 Feb 2001 Location: Berlin, Germany
|
|
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.
|
|
tigerten Member
Joined: 15 Sep 2001
|
|
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.
|
|
tigerten Member
Joined: 15 Sep 2001
|
|
yes, they work perfectly, except for the "trim" function.
|
|
Truman Moderator
Joined: 19 Feb 2001 Location: Berlin, Germany
|
|
| tigerten wrote: |
| yes, they work perfectly, except for the "trim" function. |
Even if you loop the short small clips?
|
|
tigerten Member
Joined: 15 Sep 2001
|
|
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.
|
|
tigerten Member
Joined: 15 Sep 2001
|
|
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.
|
|
batman0105 Member
Joined: 10 Oct 2002
|
|
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?
|
|
Truman Moderator
Joined: 19 Feb 2001 Location: Berlin, Germany
|
|
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.
|
|
ejp Member
Joined: 28 Jun 2002
|
|
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?
|
|
wgamer Member
Joined: 10 Jan 2004
|
|
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.
|
|
klavijatura Member
Joined: 27 Aug 2009 Location: Croatia
|
|
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 !!!
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You can vote in polls in this forum
|
|