Manual resolution adjustment

Discussion in 'MPEG-1 and MPEG-2 encoding (AVI to DVD)' started by davexnet, Feb 29, 2008.

  1. davexnet

    davexnet Active member

    Joined:
    Jul 7, 2003
    Messages:
    1,856
    Likes Received:
    0
    Trophy Points:
    66
    Hello, if I start out with a 624/352 avi (square pixels)
    and want to encode it to NTSC dvd, what resolution must I set
    in avisynth (along with borders if necessary) so that HCenc
    will encode it with the correct aspect ratio ?

    I did some calculations, 624/352 = 1.77, therefore for a 4:3 TV,
    640/1.77 = 362. So in avisynth,
    Avisource("j:\test.avi")
    LanczosResize(720,362)
    AddBorders(0,59,0,59 )
    ConvertToYV12()

    Is this correct ? As an experiment I fed the avi in Tmpgenc 2.5
    directly and let Tmpg pick the resolution (as it handily does)
    Tmpgenc rounded up the size to 368, so I modified my avisynth like this:
    Avisource("j:\test.avi")
    LanczosResize(720,368)
    AddBorders(0,56,0,56 )
    ConvertToYV12()

    And reran HCenc. So what is the rule for manual resize?
    Calculate as I did, then round up to the nearest 8 divisor ?
     
  2. MysticE

    MysticE Active member

    Joined:
    Nov 15, 2003
    Messages:
    2,396
    Likes Received:
    0
    Trophy Points:
    66

Share This Page