This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

H264: pink image in version 1.1

Hello!

I use encoder 2.30.00.3. For switch encoder mode I use this code:

if((create->width<320)||(create->height<128))
          {
            pObj->params.encodingPreset        = XDM_USER_DEFINED;
            pObj->params_h264.encQuality     = 1;//0;
          }
          else {
            pObj->params.encodingPreset    =
                    (create->width > 2048) ? XDM_HIGH_QUALITY : XDM_HIGH_SPEED;
            pObj->params_h264.encQuality     = 2;
          }

I found strange fact - if codec work in backward compatible mode  I always get pink image.
How can I solve this problem?
Thank you and excuse me for my bad english.

  • Kirill,

    You should not be getting any pink image. What are the encoder parameters? Is this observed for encQuality=0 or encQuality=1?

    Could you post a sample video containing the artifact?

  • Thank you for your reply, Adithya!

    Resolution 4Mpx (2368x1744)

    binning 4X (Platinum mode) 592x436

    binning 8X (backward 1.1 mode) 296x218

    May be problem in align buffers or image size?

  • Hi Kirill,

    To find the reason for corruption I suggest you to run standalone testapp for your different resolutions. And also conform(by dumping to file) the input YUV data to the encoder.

    And during testing backward 1.1 mode is verified for input width as 160.

    Thanks,

    Veeranna

  • Veeranna Hanchinal said:
    To find the reason for corruption I suggest you to run standalone testapp for your different resolutions. And also conform(by dumping to file) the input YUV data to the encoder.

    There can I get this testapp and how can I save and see YUV data? I work with VITA5000 matrix and control it via SPI.

    This is situation very strange, for me:
    - if I send videostream CMOS->IPIPE I get correct image for 298x218 (2368x1744 in 8x binning), but pink image for 1184x872 (2368x1744 in 2x binning)
    - if I send videostream CMOS->DDR->IPIPE I get correct image for 1184x872 (2368x1744 in 2x binning), but pink image for all resolutions in  backward 1.1 mode

    I don't undestand this!

  • Hi Kirill,

    Sorry for delayed reply, Are you able to solve the issue?

    if not, and wanted test on standalone testapp, you can find it in ../../packages\ti\sdo\codecs\h264enc\apps location of the release package.

    Regarding observations on CMOS-->IPIPE we will get back you.

    Thanks,

    Veeranna

  • Veeranna Hanchinal said:
    Sorry for delayed reply, Are you able to solve the issue?

    Via some "crutchs" I solve most problems.

    Veeranna Hanchinal said:
    if not, and wanted test on standalone testapp, you can find it in ../../packages\ti\sdo\codecs\h264enc\apps location of the release package.

    I think I can't use it because I use Appro soft.