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 encode artifacts on 2048x*

Hello!
 
We've encountered a strange encoding artifact on the right side of the stream produced by the H264 encoder when running on 2048x1536 [4:3] (or 2048x1152 [16:9]).
Input:
  • device: DM8147
  • resolution: 2048x1536 (height doesn't matter anyway)
  • input characteristic: extremely noisy images
  • H264 encoder: init with 2048 maxWidth and maxHeight so High_Speed mode is activated
  • H264 enc. version: H.264 Encoder Version 02.00.04 on HDVICP2 and Media Controller Based Platform
Result:
Some of the images in the H264 streams have repetitive artifacts on the right side and the rest of the image is a copy of it's parent in the H264 hierarchy. The width of the repetitions is a multiply of 16 (macro block size).
This strange behavior does not occur when using lower or higher resolutions with the same input. When maxWidth and maxHeight is set to 4096x3072 (Lite mode?) using 2048x1536 input stream the artifacts disappear.
 
Below is two dumps of H264 streams from the same device with the same settings. The only difference is that the second one is recorded using 4096x3072 max encoder dimensions instead of 2048x2048:
 
An example is frame 120 to 121. Frame 121 is the exact copy of 120 but with artifacts on the right side.
http://www.karsiac.com/ti_h264_r2048/h264_hs_120.png
The bug is related to running the encoder on the maximum resolution it can handle in High_Speed mode.
 
Sincerely,
Attila Baranyai