VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Member
    Join Date
    Dec 2009
    Location
    Australia
    Search Comp PM
    can anyone explain to me in plain english what to do to get a correct aspect ratio for avi file, Ive got a Avi file that i wanna hard encode subs to, the avi has letterbox ontop and below, the file info is below

    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 700 MiB
    Duration : 2h 3mn
    Overall bit rate : 795 Kbps

    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings, BVOP : Yes
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Custom
    Muxing mode : Packed bitstream
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 2h 3mn
    Bit rate : 689 Kbps
    Width : 704 pixels
    Height : 288 pixels
    Display aspect ratio : 2.40:1
    Frame rate : 23.976 fps
    Resolution : 8 bits
    Colorimetry : 4:2:0
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.142
    Stream size : 607 MiB (87%)
    Writing library : XviD 1.0.0 RC4 (Hola) (UTC 2004-04-05)

    I used auto gordian knot to add the subs, however the file comes out slight vertically streched, I dont know what to do to get it right, the log from auto gk is

    [27/12/2009 5:47:17 PM] AutoGK 2.55
    [27/12/2009 5:47:17 PM] OS: WinXP (5.1.2600).2
    [27/12/2009 5:47:17 PM] Job started.
    [27/12/2009 5:47:17 PM] Input file: C:\Documents and Settings\Administrator\Desktop\Windstruck\Windstru ck.2004.DVDRip.XviD.AC3.2CH.avi
    [27/12/2009 5:47:17 PM] Input codec: XviD
    [27/12/2009 5:47:17 PM] Source duration: 2h 3mn 10s 891ms
    [27/12/2009 5:47:17 PM] Output file: C:\Documents and Settings\Administrator\Desktop\Windstruck.2004.DVD Rip.XviD.AC3.2CH_agk2.avi
    [27/12/2009 5:47:17 PM] Output codec: XviD
    [27/12/2009 5:47:17 PM] Audio 1: 96 Kbps AC3 2ch
    [27/12/2009 5:47:17 PM] Subtitles: from external file: C:\Documents and Settings\Administrator\Desktop\Windstruck\Windstru ck.2004.DVDRip.XviD.AC3.2CH.srt
    [27/12/2009 5:47:17 PM] Format: AVI
    [27/12/2009 5:47:17 PM] Target quality: 100%
    [27/12/2009 5:47:17 PM] Audio 1 settings: Auto
    [27/12/2009 5:47:17 PM] Started encoding.
    [27/12/2009 5:47:17 PM] Source resolution: 704x288
    [27/12/2009 5:47:17 PM] Source fps: 23.976
    [27/12/2009 5:47:17 PM] Output will contain 177204 frames
    [27/12/2009 5:47:17 PM] Demuxing audio.
    [27/12/2009 5:48:22 PM] Preparing subtitles.
    [27/12/2009 5:48:22 PM] Using VAQ in XviD
    [27/12/2009 5:48:22 PM] Running single pass encoding.
    [27/12/2009 5:48:22 PM] Writing the following script to C:\Documents and Settings\Administrator\Desktop\agk_tmp\Windstruck. 2004.DVDRip.XviD.AC3.2CH_agk2_movie.avs
    ================================================== =========
    LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
    LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dl l")
    LoadPlugin("C:\PROGRA~1\AutoGK\filters\vsfilter.dll")
    LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain SSE2.dll")

    movie = DirectShowSource("C:\Documents and Settings\Administrator\Desktop\Windstruck\Windstru ck.2004.DVDRip.XviD.AC3.2CH.avi",23.976).KillAudio ()
    movie = isRGB(movie) ? ConvertToYV12(movie) : movie
    movie = isYUY2(movie) ? ConvertToYV12(movie) : movie
    cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples= 10,aspect=0,threshold=0,samplestartframe=0,leftadd =0,rightadd=0,topadd=0,bottomadd=0)
    fixed_aspect = 1
    c_width = width(cropclip)
    c_height = round(height(cropclip) / fixed_aspect)
    input_par = float(c_width)/float(c_height)
    out_width = 704
    out_height = round(float(out_width) / input_par)
    hmod = out_height - (floor(out_height / 16 ) * 16)
    out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
    new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
    autocrop(movie,mode=0,wmultof=4,hmultof=4,samples= 10,aspect=new_aspect,threshold=0,samplestartframe= 0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
    LanczosResize(out_width,out_height)
    TextSub("C:\Documents and Settings\Administrator\Desktop\Windstruck\Windstru ck.2004.DVDRip.XviD.AC3.2CH.srt")
    ================================================== =========
    [27/12/2009 8:15:55 PM] Duration was: 2 hours 27 minutes 32 seconds
    [27/12/2009 8:15:55 PM] Speed was: 20.02 fps.
    [27/12/2009 8:15:55 PM] Job finished. Total time: 2 hours 28 minutes 37 seconds

    new file info is

    Format : AVI
    Format/Info : Audio Video Interleave
    File size : 1.03 GiB
    Duration : 2h 3mn
    Overall bit rate : 1 194 Kbps
    Writing application : VirtualDubMod 1.5.4.1 (build 2178/release)
    Writing library : VirtualDubMod build 2178/release

    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings, BVOP : Yes
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Custom
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 2h 3mn
    Bit rate : 1 091 Kbps
    Width : 704 pixels
    Height : 288 pixels
    Display aspect ratio : 2.40:1
    Frame rate : 23.976 fps
    Resolution : 8 bits
    Colorimetry : 4:2:0
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.224
    Stream size : 961 MiB (91%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)

    the avi starts as 704/288 and ends up the same, but the letterboxing is gone and the video is slightly vertically streched, pls pls pls help me if anyone knows what to do
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Rerip from your original dvd and include the subtitles in autogk.
    Quote Quote  
  3. Originally Posted by neds81
    can anyone explain to me in plain english what to do to get a correct aspect ratio for avi file, Ive got a Avi file that i wanna hard encode subs to, the avi has letterbox ontop and below, the file info is below
    AutoGK assumes the aspect ratio is correct already for AVI files (unless DV AVI). If you downloaded garbage from somewhere, it'll be easier for you to fix it using manual methods.
    [27/12/2009 5:47:17 PM] Source resolution: 704x288
    It's already 2.44:1 and it has letterboxing? Are you sure about that? Open it in VDubMod and if there aren't any black bars, your player is adding them. If there are black bars, then it's probably squished, making people look fat, and removing them and resizing to the same resolution makes it 'normal' again. IMDB says it's a 2.35:1 movie. This thing must have been created by idiots:
    Audio 1: 96 Kbps AC3 2ch
    That's not the retail source audio. It was reencoded by someone that doesn't know what he's doing. As Baldrick says, reencode from the original DVD.
    Quote Quote  
  4. Member
    Join Date
    Dec 2009
    Location
    Australia
    Search Comp PM
    Hi manono, thanks for the info. when i open up the orig file in vdubmod there is no letterboxing, so must be the player adding them. why whould the player add black bars to the orig file, but not add them to the reencoded subbed file i make?

    well my only question now i guess is if there any way to fix this avi file?
    Quote Quote  
  5. Originally Posted by neds81
    well my only question now i guess is if there any way to fix this avi file?
    You're saying the original looks fine when played and has the black bars, but the reencoded one looks 'vertically stretched' (people too tall and too thin?), and they're both exactly the same resolution? I have no idea what the problem is, but AutoGK isn't the tool to use. You'll have to resize, perhaps in an AviSynth script or perhaps in VDub, and then encode it yourself. Maybe you can set a PAR using MPEG4Modifier that'll have it play correctly in some players, but that's not my thing and maybe someone else can help.
    Quote Quote  
  6. Member
    Join Date
    Dec 2009
    Location
    Australia
    Search Comp PM
    Thanks manono, yeh it seem to be that way, only thing i can figure is perhaps the orig file is not in the right aspect anyway (croped top/bottom) and when i encode it, it gets fixed to correct aspect but that squishes the image. Anyway thanks for the help. I think itll just be easier to rerip the dvd
    Quote Quote  



Similar Threads

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