GStreamer pipeline hangs after hours due to errors

Hi,
We have deprecated omx plugins. Please try with nvv4l2h265enc.

And we suggest try nvv4l2camerasrc. You can rebuild it to support YUY2 format. Please refer to this patch:
Macrosilicon USB - #5 by DaneLLL