ROS Error: warning: “deprecated pixel format used“

Error log

[swscaler @ 0x28dace0] deprecated pixel format used, make sure you did set range correctly

Reason for error reporting
The above error occurs when using the ROS usb_cam package to call the camera, the error log is written clearly, that is, the video format used is deprecated. The error format is mjpg, after changing it to yuyv, the problem is solved.

Read More: