Hi,
I am using latest H.264 HP encoder for c66x (H264 High Profile Encoder Version 01.00.00.01).
I prepared demo that shows video artefacts.
The demo generates green image for 25 frames and then violet image for 25 frames and repeats infinitely.
If you run it you can see artefacts in output.h264 file (artifacts1.png, artifacts2.png, output_with_artifacts.h264 attached to the post):
If you change configuration slightly artefacts will disappear and output image will be clean green and violet frames.
To do so change in H264HighProfileEncoder.c following line:
encoder->params.videnc2Params.rateControlPreset = IVIDEO_USER_DEFINED;
encoder->params.rateControlParams.rateControlParamsPreset = IH264HP_RATECONTROLPARAMS_USERDEFINED;
to
encoder->params.videnc2Params.rateControlPreset = IVIDEO_LOW_DELAY;
encoder->params.rateControlParams.rateControlParamsPreset = IH264HP_RATECONTROLPARAMS_DEFAULT;
Technical details:
- L2 64k cache is enabled
- No buffer manager. Input YUV buffers once allocated never released.
- Input is generated - green changed with violet each 25 frames
- Output goes to output.h264 file
You can find demo project attached to the post.
I am not sure is it problem in encoder or in application. Can you please explain this artefacts?
Regards,
Andrey Lisnevich