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.

RTOS/TDA2EVM5777: null_src_dec_display shows green artifacts on user generated video

Part Number: TDA2EVM5777

Tool/software: TI-RTOS

We are trying to use the sample use case (null_src_dec_display) with our generated data.

The data file is created from the following MKV file: http://jell.yfish.us/media/jellyfish-20-mbps-hd-h264.mkv 

To remove the MKV container and output .h264 bitstream, we used the following command:

ffmpeg -i jellyfish-20-mbps-hd-h264.mkv -an -vcodec libx264 -bf 0 -vstats_file h264.stat 1920x1080_00.h264

We then created the binary index of frame sizes using h264.stat to create 1920x1080_00.hdr.

From here we perform minor modifications in the source code to match the input as follows:

#define ENCDEC_MAX_FRAME_WIDTH    (1920)
#define ENCDEC_MAX_FRAME_HEIGHT   (1080)

...

        strncpy(pPrm->channelParams[chId].nameDataFile, "1920x1080_00.h264", 260);
        strncpy(pPrm->channelParams[chId].nameIndexFile, "1920x1080_00.hdr", 260);

We are able to play the video correctly, but there are green artifacts in the images as shown in the attached image below:

Is there other configurations in use case that we missed and we need to change in order to display the video correctly?