#481 yv12 output not using correct ratio

open
nobody
None
5
2006-01-18
2006-01-18
cc979
No

avi:xvid's don't display correct DAR in yv12
overlay-mode but work fine in vmr9 renderless-mode and
also using rgb32-overlaymode.

mp4:xvid's do display correct DAR in yv12-overlay and
vmr9 modes.

any idea ?
i've been looking thru your code to see whats going on
bit over my head

ps.

would it be possible to implent the same type of
brightness controls for vmr9-rendless ?

Discussion

  • Anonymous - 2006-04-26

    Logged In: YES
    user_id=547197

    AVIs don't store aspect ratio in headers which ffdshow
    receives before starting the playback so it has to change
    aspect ratio during playback (this feature has to be
    enabled on the Output page in config. dialog). There are
    some problems signalling this change to overlay mixer and
    I'm don't know how to solve this yet.
    mp4 files deliver aspect info to ffdshow earlier so no late
    format changes are needed.

    p.s. seems to be possible, I'll try to implement it very
    soon.

     
  • cc979

    cc979 - 2006-04-26

    Logged In: YES
    user_id=1265660

    thanks for looking into,

    just done another anamorphic xvid-avi with 16/9 DAR

    some details if this is any use

    ***

    - Connected to:

    CLSID: {04FE9017-F873-410E-871E-AB91661A4EF7}
    Filter: ffdshow MPEG-4 Video Decoder
    Pin: Out

    - Connection media type:

    Video: YV12 768x432 (5:3) 25.00fps

    AM_MEDIA_TYPE:
    majortype: MEDIATYPE_Video
    {73646976-0000-0010-8000-00AA00389B71}
    subtype: MEDIASUBTYPE_YV12
    {32315659-0000-0010-8000-00AA00389B71}
    formattype: FORMAT_VideoInfo2
    {F72A76A0-EB0A-11D0-ACE4-0000C0CC16BA}
    bFixedSizeSamples: 1
    bTemporalCompression: 0
    lSampleSize: 497664
    cbFormat: 1152

    VIDEOINFOHEADER:
    rcSource: (0,0)-(720,432)
    rcTarget: (0,0)-(720,432)
    dwBitRate: 0
    dwBitErrorRate: 0
    AvgTimePerFrame: 400000

    VIDEOINFOHEADER2:
    dwInterlaceFlags: 0x00000000
    dwCopyProtectFlags: 0x00000000
    dwPictAspectRatioX: 5
    dwPictAspectRatioY: 3
    dwControlFlags: 0x00000000
    dwReserved2: 0x00000000

    BITMAPINFOHEADER:
    biSize: 40
    biWidth: 768
    biHeight: -432
    biPlanes: 1
    biBitCount: 12
    biCompression: YV12
    biSizeImage: 497664
    biXPelsPerMeter: 0
    biYPelsPerMeter: 0
    biYPelsPerMeter: 0
    biClrUsed: 0
    biClrImportant: 0

    ***

    cheers

     

Log in to post a comment.