[NVENC] 4K resolution color-bar encode, blue flashing

I work at r28.1. Use the following command to encode.
Color is not normal, blue and red will flicker repeatedly.

  1. H.264 and H.265 have this phenomenon, H.265 more obvious.
  2. The lower the encode bitrate, the more obvious.
  3. Preset-level set to Slow, the effect is better than Ultrafast.
  4. Encoding with MMAPI is the same.
gst-launch-1.0 videotestsrc pattern=0 ! 'video/x-raw, format=I420, width=3840, height=2160, framerate=25/1' ! nvvidconv ! 'video/x-raw(memory:NVMM), width=3840, height=2160, framerate=25/1, format=I420' ! omxh265enc bitrate=4000000 ! 'video/x-h265, stream-format=(string)byte-stream' ! rtph265pay pt=98 ! udpsink host= port=4000

Hi li lin,
For h264, please try 12Mbps.
For h265, still can observe flicker with 12Mbps. We are checking it.