The live view and video were with abnormal color

The possible root cause is the YUV order is incorrect.

  1. You may need to make the sensor output order and modify the V4L2_MBUS_FMT_UYVY8_2X8 to correct order. Below are possible order.
    V4L2_MBUS_FMT_UYVY8_2X8
    V4L2_MBUS_FMT_VYUY8_2X8
    V4L2_MBUS_FMT_YUYV8_2X8
    V4L2_MBUS_FMT_YVYU8_2X8

  2. Or try to modify the sensor to output UYVY order frame data.