VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Member geohei's Avatar
    Join Date
    May 2002
    Location
    Luxembourg
    Search Comp PM
    Hi.

    Yes, there are many tutorials here, but this is a specific question regarding aspect ratio.

    I use VirtualDub and a DivX 6.8 encoder (as compressor within VirtualDub).

    I have DVB-S compliant 480x576 (4:3) MPEG2, which I would like to convert into DivX. I found out, by trial and error, that I have to stretch the horizontal 768 to make the aspect ratio looking correct in DivX.

    Can someone confirm that a DivX stream doesn't hold something called aspect ratio flag, like MPEG2 movie does (there, 480 and 720 gets stretched automatically to 768, which is 4:3 with 576 points vertically).

    Do I have to increase the number of horizontal points from MPEG2 to DivX in order to get the correct aspect ratio?

    Thanks,
    Quote Quote  
  2. Always Watching guns1inger's Avatar
    Join Date
    Apr 2004
    Location
    Miskatonic U
    Search Comp PM
    Divx does have an aspect ratio flag, but that won't solve your problem in this case. Your mpeg file is sized at half-D1 with an aspect ratio of 4:3. You will have to resize first, then encode to Divx. After that you won't need to use the AR flag in the avi file as you will have 1:1 PAR (the default value)
    Read my blog here.
    Quote Quote  
  3. Member geohei's Avatar
    Join Date
    May 2002
    Location
    Luxembourg
    Search Comp PM
    AFAIK, half-D1 is 352x576. Mine is 480x576. It's actually 2/3 D1. But also if I use 704 or 720, the aspect ratio of 4:3 is not properly displayed in the DivX afterwards.

    If I resize, I get a correct aspect ratio. But then, the file blows up. Not desirable.

    Also, why does DivX have an aspect ratio flag if it doesn't take benefit of that one by expanding all mentioned horizontal points in such a way that the outcome is correct 4:3 aspect ratio?

    Thanks,
    Quote Quote  
  4. Both Divx and Xvid support DAR flags. Not all players will respect them.

    Quote Quote  
  5. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    If you don't want to upscale then downscale to 480x360 or use 480x576 and just use players that support DAR. .
    Quote Quote  
  6. For a video that has already been encoded with Divx/Xvid you can use Mpeg4Modifier to change the DAR flag.

    Originally Posted by geohei
    why does DivX have an aspect ratio flag if it doesn't take benefit of that one by expanding all mentioned horizontal points in such a way that the outcome is correct 4:3 aspect ratio?
    It's not the codec's job to scale to the final AR. The codec should decompress to the storage aspect ratio and pass the DAR flag to the player. It's up to the player to respond to the flag.
    Quote Quote  
  7. Member geohei's Avatar
    Join Date
    May 2002
    Location
    Luxembourg
    Search Comp PM
    Originally Posted by Baldrick
    If you don't want to upscale then downscale to 480x360 or use 480x576 and just use players that support DAR. .
    Thanks. All this is actually about a DVD/DivX player for the car.

    When I use original DVB-S 4:3 or 16:9 MPEG2 footage, the aspect ratio is correctly displayed. Hence, the player is able to deal properly with DAR (at least when MPEG2 is used). It's only when it comes to encoding in DivX where the issue arises.

    Here's the DivX configuartation. What should be set there on top?

    Quote Quote  
  8. Member geohei's Avatar
    Join Date
    May 2002
    Location
    Luxembourg
    Search Comp PM
    Originally Posted by jagabo
    For a video that has already been encoded with Divx/Xvid you can use Mpeg4Modifier to change the DAR flag.
    ...
    This tool helped to solve the problem.

    In the DivX settings, "Format in" doesn't have any influence on DAR.

    "Format out" "PAL 4:3" shows in MPEG4 Modifier Pixel AR: "4:3 PAL"
    "Format out" "Square Pixels" shows in MPEG4 Modifier Pixel AR: "Square Pixels"

    That's fine so far, but not "Pixel AR", but "Display AR" needs to be 4:3. This apparently, DivX is not able to do (please confirm). After patching the streams, the display showed fine as 4:3.
    Quote Quote  
  9. Yeah, Divx is relatively inflexible with its PAR/DAR setting. I would just use its square pixel setting then fix it with MPEG4 modifier later. Or use Xvid instead. Just as a reference:

    DAR = SAR * PAR

    4 / 3 = 480 / 576 * PAR

    4 / 3 * 576 / 480 = PAR

    1.6 = PAR

    As a sanity check 480 * 1.6 = 768. The same as your calculated width for manual resizing.
    Quote Quote  



Similar Threads

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