VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. I would like to take the size of the cropped image and reduce it by a percentage. Something like this:

    DirectShowSource("F:\batman\batman.mpg")
    AutoCrop(mode=0,hMultOf=4,samplestartframe=200,sam ples=5)
    LanczosResize(**Autocrop Reported new Width x 0.5**,**Autocrop Reported New height x 0.5**)

    I know the above is nonsense but what would be required to achieve this?
    Quote Quote  
  2. Member
    Join Date
    Feb 2003
    Location
    United States
    Search Comp PM
    Originally Posted by daveoggy
    I would like to take the size of the cropped image and reduce it by a percentage. Something like this:

    DirectShowSource("F:\batman\batman.mpg")
    AutoCrop(mode=0,hMultOf=4,samplestartframe=200,sam ples=5)
    LanczosResize(**Autocrop Reported new Width x 0.5**,**Autocrop Reported New height x 0.5**)

    I know the above is nonsense but what would be required to achieve this?


    You can try this...

    clip=DirectShowSource("F:\batman\batman.mpg")
    LanczosResize(clip.width()/2,clip.height()/2)

    you will have to be careful with non-mod_x resizes. Some filters/codecs will only work with specific size, i.e. mod8, mod4, or mod2 sizes.


    T
    Quote Quote  
  3. Brilliant, thank you. One question though, I understand where the 'clip' has come from but what about width() and height(), are there any more such commands in Avisynth? Where can I learn about them?
    Quote Quote  
  4. Member
    Join Date
    Feb 2003
    Location
    United States
    Search Comp PM
    Originally Posted by daveoggy
    Brilliant, thank you. One question though, I understand where the 'clip' has come from but what about width() and height(), are there any more such commands in Avisynth? Where can I learn about them?
    If you have Avisynth installed, there should be a full documentation package installed with it. If not, go to Avisynth.org and the Doom9.org forums.


    T
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!