VideoHelp.com Forum
+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 47 of 47
Thread
  1. Member
    Join Date: 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....
    Quote Quote  

  2. Member
    Join Date: 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,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)
    Quote Quote  

  3. 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)
    Quote Quote  

  4. 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?
    Quote Quote  

  5. Member
    Join Date: 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.
    Quote Quote  

  6. 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.
    Quote Quote  

  7. yes, they work perfectly, except for the "trim" function.
    Quote Quote  

  8. Member
    Join Date: Feb 2001
    Location: Berlin, Germany
    Originally Posted by tigerten
    yes, they work perfectly, except for the "trim" function.
    Even if you loop the short small clips?
    Quote Quote  

  9. 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.
    Quote Quote  

  10. 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.
    Quote Quote  

  11. 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?
    Quote Quote  

  12. Member
    Join Date: 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.
    Quote Quote  

  13. 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?
    Quote Quote  

  14. 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.
    Quote Quote  

  15. Member
    Join Date: 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 !!!
    Quote Quote  

  16. Member
    Join Date: Sep 2009
    Location: United States
    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?
    Quote Quote  

  17. 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!
    Quote Quote  




Similar Threads

  1. Replies: 0
    Last Post: 3rd Jan 2011, 23:35
  2. Replies: 2
    Last Post: 26th Jul 2010, 18:43
  3. Why does the video I edit in Cyberlink look darker after I edit it and post
    By Chubby Johnson in forum Newbie / General discussions
    Replies: 1
    Last Post: 30th Jun 2010, 05:08
  4. Edit, add, extract WAVE and edit file tags with new Machete 3.5
    By MacheteSoft in forum Latest Video News
    Replies: 0
    Last Post: 23rd Dec 2009, 10:05
  5. need help in choosing a format after video edit (DV then edit then DVD)
    By shade_2 in forum Newbie / General discussions
    Replies: 5
    Last Post: 5th Jul 2008, 13:13
Search   Contact us   About   Advertise   Forum   RSS Feeds   Statistics   Tools