VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Is it possible to automatically resize a video at a resolution below 1080p to 1080p video using AviSynth while preserving the aspect ratio?

    For example; 640x480(4:3) to 1440x1080(4:3) or 1280x720(16:9) to 1920x1080(16:9)
    Quote Quote  
  2. Code:
    target_h = 1080
    target_w = int(float(Width) / Height * target_h / 2) * 2  # *2 to keep even number
    Lanczos4Resize(target_w, target_h) # or whatever resizer you prefer
    should work, assuming a 1:1 PAR(=pixel aspect ratio) and that the output resolution needs to be mod2.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  3. Code:
    AVISource("C:\Users\Administrator\Downloads\File\s ample.avi").Lanczos4Resize(int(float(Width) / Height * 1080 / 2) * 2, 1080)
    will not work, since cramping everything into one line without taking into account into what that line that actually means,...
    Code:
    AVISource("C:\Users\Administrator\Downloads\File\sample.avi")
    Lanczos4Resize(int(float(Width) / Height * 1080 / 2) * 2, 1080)
    works fine.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  



Similar Threads

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