I am trying to display the video feed from a USB camera (webcam) on QGC. The video is already displayed in the video manager, but I cannot access it.
Hi @HoaiThanh -
You set up the wrong video stream! QGround Control only supports H264, from /dev/video2 - not MJPG from /dev/video0! Delete that stream, and setup the H264 one, and things should just work!
You may get slightly better performance from RTSP vs. UDP for the stream type…
Hi Tony, sorry for the late reply. In my Camera Stream section, there is no dev/video2. Also, in my camera’s encoding section, H264 is not showing up. What should I do?
Hi @HoaiThanh,
It looks like Tony may have thought you were using our USB camera, which has onboard H264 encoding.
From QGroundControl’s documentation, it seems like UDP video requires H264 or H265 encoding. You could try using an RTSP stream with MJPG encoding instead, but if that doesn’t work then you may need to receive the video outside of QGroundControl (with the reduced convenience that provides), or get a camera with an H264-encoded output stream option.