Video quality in gstreamer pipeline

Hello,
We have a custom board based on AM5728 SOC with omnivision 0v5640 camera installed on it running linux SDK 6.03 provided by TI. We want to use IVA-HD core in the SOC for video processing. We are using the following gstreamer pipeline to stream the video using IVA-HD core.

gst-launch-1.0 v4l2src device=/dev/video1 ! ‘video/x-raw,format=(string)YUY2,width=1280,height=720’ ! vpe num-input-buffers=8 ! ducatih264enc ! h264parse ! ducatih264dec ! vpe !
‘video/x-raw,format=(string)NV12, width=1280,height=1232’ !
kmssink

We have following queries regarding :

  1. The video background looks hazy. How can we improve the video quality?
  2. When we try to run higher resolution (1920x1080), there is lot of frame drop and the video is laggy. How can we support higher resolution?

Sorry, I have no personnal experience with your platform and ducatih264* codecs, though I’d advise to have a look to:

gst-inspect-1.0 ducatih264enc

and check properties for setting a higher bitrate and maybe try using an higher profile (default may be baseline, you may try main or high, with levels according to your resolution and bitrate… See table in Advanced Video Coding - Wikipedia).
Note that your pipeline doesn’t set framerate, you may choose one from what your sensor provides for this resolution and adjust bitrate/profile/level accordingly.