VideoHelp Forum




+ Reply to Thread
Results 1 to 21 of 21
  1. Member
    Join Date
    Oct 2005
    Location
    united states
    Search Comp PM
    Well I'm trying to resize this video but whenever I run the avisynth in virtualdubmod; it simply goes through the routine and leaves me with nothing changed but my emotion going from hopeful to pissed off.


    Code:
    # -= AviSynth v2.0.8.0 script by FitCD v1.2.8 =-
    AVISource("C:\Documents and Settings\xxxx\My Documents\DOWNLOADS\xxxxx\xxxx.avi")
    AddBorders(64,0,64,0)
    Trim(0,32792).FadeOut(150)
    That's my script. I'm trying to resize it from 640x480 to 640x322.

    can someone please help me out? This is infuriating me :/
    Quote Quote  
  2. Member gadgetguy's Avatar
    Join Date
    Feb 2002
    Location
    West Mitten, USA
    Search Comp PM
    The only size change in your script is to add borders but it will increase the horizontal size, not decrease the vertical size.

    Edit: I'm not sure I understand your goal. Are you trying to resize (thus distorting the picture), or do you want to crop (preserving aspect ratio, but losing part of the picture)?
    "Shut up Wesley!" -- Captain Jean-Luc Picard
    Buy My Books
    Quote Quote  
  3. Hi-

    And you sure as heck don't want a vertical height of 322 pixels as it's only Mod2. It's usually recommended that it be Mod16 (divisible by 16). That would make your height either 320 or 336. 640x320 has an AR of 2:1, almost unheard of. 640x336 is more common.

    I'm with gadgetguy. What are you trying to accomplish? It also sounds to me like you want to crop it, perhaps turning fullscreen into widescreen (God knows why, because I sure don't). If that's your goal, then you might try this:

    AVISource("C:\Documents and Settings\xxxx\My Documents\DOWNLOADS\xxxxx\xxxx.avi")
    Crop(0,80,0,-80)

    That will give you a 640x320 AVI, if the original was 640x480. And if you decide you want 640x336, then:

    AVISource("C:\Documents and Settings\xxxx\My Documents\DOWNLOADS\xxxxx\xxxx.avi")
    Crop(0,72,0,-72)
    Quote Quote  
  4. Member
    Join Date
    Oct 2005
    Location
    united states
    Search Comp PM
    Basically I'm trying to watch a video with subtitles that are cut off on my television so I would need to make the height smaller so I can see it all. I can see portions of the subtitles and maybe the width slightly bigger aswell.
    Quote Quote  
  5. Member gadgetguy's Avatar
    Join Date
    Feb 2002
    Location
    West Mitten, USA
    Search Comp PM
    To be able to watch the poorly encoded subtitles without distorting the picture you will need to add borders all the way around and then resize back to 640x480. You will have to experiment with the size of the borders to determine how big they need to be to get the subtitles within the safe area.
    "Shut up Wesley!" -- Captain Jean-Luc Picard
    Buy My Books
    Quote Quote  
  6. Member
    Join Date
    Oct 2005
    Location
    united states
    Search Comp PM
    How might I go about doing that. Is there a tutorial in which I could do that? Or do the above posters answer that?
    Quote Quote  
  7. Member gadgetguy's Avatar
    Join Date
    Feb 2002
    Location
    West Mitten, USA
    Search Comp PM
    In your original script you have the addborders command.
    Then use
    Lanczos4Resize(640,480)
    to resize it back.
    "Shut up Wesley!" -- Captain Jean-Luc Picard
    Buy My Books
    Quote Quote  
  8. Member
    Join Date
    Oct 2005
    Location
    united states
    Search Comp PM
    also when I run that avisynth script in vdubmod, it simply runs it and doesn't save. Is there a command for an output file?
    Quote Quote  
  9. Well, you have to choose a codec, set up the 2 passes with your settings including bitrate. That's what guides are for.
    Quote Quote  
  10. Member
    Join Date
    Oct 2005
    Location
    united states
    Search Comp PM
    alright, also is there a way to mute vdubmod while it's encoding?

    EDIT- Update

    Code:
    LoadPlugin("C:\Documents and Settings\Jonathan\Desktop\Video Tools\VirtualDub\MPEG2DEC.dll")
    AVISource("C:\Documents and Settings\xxxx\My Documents\DOWNLOADS\xxxx\xxxx.avi")
    AddBorders(64,25,64,25)
    Lanczos4Resize(640,480)
    look good? vdubmod gives me an error saying there is no function called Laczos4Resize. I'm using AviSynth v2.08.[/code]
    Quote Quote  
  11. Mute it? What do you mean?

    Upgrade your AviSynth to v 2.56 to use Lanczos4Resize without having to load it as a plugin. Make sure you set Video for Fast Recompress for faster encoding. Also, your script will give your AVI a very bad aspect ratio For a better script, try:

    LoadPlugin("C:\Documents and Settings\Jonathan\Desktop\Video Tools\VirtualDub\MPEG2DEC.dll")
    AVISource("C:\Documents and Settings\xxxx\My Documents\DOWNLOADS\xxxx\xxxx.avi")
    AddBorders(32,24,32,24)
    Lanczos4Resize(640,480)

    That's still a helluva lot of added black bars.
    Quote Quote  
  12. Member
    Join Date
    Oct 2005
    Location
    united states
    Search Comp PM
    ok I just upgraded avisynth and downloaded the new codec and ran one trial which did not save the video at all

    here is my avisynth script:
    Code:
    LoadPlugin("C:\Documents and Settings\Jonathan\Desktop\Video Tools\VirtualDub\MPEG2Dec3.dll")
    AVISource("C:\Documents and Settings\Jonathan\My Documents\DOWNLOADS\xxxx\xxxxx.avi")
    AddBorders(32,24,32,24)
    Lanczos4Resize(640,480)
    anyone got any idea?
    Quote Quote  
  13. Member gadgetguy's Avatar
    Join Date
    Feb 2002
    Location
    West Mitten, USA
    Search Comp PM
    When you run the script into Virtualdub it won't save anything until you tell it to. What format are you trying to end up with? What encoders or compression codecs do you have?
    "Shut up Wesley!" -- Captain Jean-Luc Picard
    Buy My Books
    Quote Quote  
  14. Member
    Join Date
    Oct 2005
    Location
    united states
    Search Comp PM
    I'm trying to end up with the same format. I have xvid/divx for encoding. How do I tell it to save something? After the script runs in Virtualdub if I try to go to saveas it will try to reencode it. Am I suppose to do that?
    Quote Quote  
  15. VH Veteran jimmalenko's Avatar
    Join Date
    Aug 2003
    Location
    Down under
    Search PM
    Originally Posted by subcomply
    I'm trying to end up with the same format. I have xvid/divx for encoding. How do I tell it to save something? After the script runs in Virtualdub if I try to go to saveas it will try to reencode it. Am I suppose to do that?
    Yes. AVISynth serves uncompressed AVI and PCM WAV audio to your encoder (in this case virtualdub). If you want to resize then you have to re-encode, unless you are just using the script for playback on a PC to resize "on the fly".
    If in doubt, Google it.
    Quote Quote  
  16. Member gadgetguy's Avatar
    Join Date
    Feb 2002
    Location
    West Mitten, USA
    Search Comp PM
    Yes, but you need to select a compression codec first. Go to Video/Compression and select the xvid/divx encoding codec. Set parameters as you want it. Then Save As AVI.
    "Shut up Wesley!" -- Captain Jean-Luc Picard
    Buy My Books
    Quote Quote  
  17. Member
    Join Date
    Oct 2005
    Location
    united states
    Search Comp PM
    Originally Posted by manono
    Mute it? What do you mean?
    ok the whole setup went fine and it works perfectly however when running the avisynth script it plays the audio in virtualdubmod. is there anyway I can mute this instead of triyng to play music over it?
    Quote Quote  
  18. Member gadgetguy's Avatar
    Join Date
    Feb 2002
    Location
    West Mitten, USA
    Search Comp PM
    Originally Posted by subcomply
    Originally Posted by manono
    Mute it? What do you mean?
    ok the whole setup went fine and it works perfectly however when running the avisynth script it plays the audio in virtualdubmod. is there anyway I can mute this instead of triyng to play music over it?
    I still don't understand what you're asking. If you are playing the script in VirtualDub, then yes the audio will play, but when you are encoding it doesn't. Encoding does not take place while you are playing in VirtualDub, encoding happens when you Save AVI. Are you saying you hear the audio when you Save AVI?
    "Shut up Wesley!" -- Captain Jean-Luc Picard
    Buy My Books
    Quote Quote  
  19. Member
    Join Date
    Oct 2005
    Location
    united states
    Search Comp PM
    When I run the avisynth script in virtualdub is plays the audio. Is there anyway to mute that? Weh nI save the AVI it does not.
    Quote Quote  
  20. Member The_Doman's Avatar
    Join Date
    Feb 2004
    Location
    Netherlands
    Search PM
    Originally Posted by subcomply
    When I run the avisynth script in virtualdub is plays the audio. Is there anyway to mute that? Weh nI save the AVI it does not.
    To open a videoclip in avisynth without audio use the following:
    AVISource("videoclip.avi",false)

    I always use this because somehow the avisynth seems to corrupt the video when I have audio enabled and playing it with mediaplayer or encoding with procoder.
    Quote Quote  
  21. Member gadgetguy's Avatar
    Join Date
    Feb 2002
    Location
    West Mitten, USA
    Search Comp PM
    But keep in mind that will remove the audio from encoding also.
    "Shut up Wesley!" -- Captain Jean-Luc Picard
    Buy My Books
    Quote Quote  



Similar Threads

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