Video device is not working properly
Closed this issue · 5 comments
The camera is working well under Ubuntu an a PC with opencv and pyqt.
On the TXT the same program results in the first few lines of the image repeating over and over again:
This happens with opencv2 and opencv3. The repeating lines differ if the image changes. So these lines are not from the same image. It seems like the frame data is updated while the frame is being read.
Camera info:
Driver Info:
Driver name : uvcvideo
Card type : USB 2.0 Camera
Bus info : usb-musb-hdrc.2.auto-1
Driver version: 4.1.18
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
A similar camera from a different vendor with the same chipset shows the same symptoms. Unfortunately i don't have a webcam with a different chipset.
Seems to be a common problem on Sitara based systems:
https://groups.google.com/forum/#!topic/beagleboard/G5Xs2JuwD_4
The soluition seems to be to limit the resolution and framerate. v4l2grab works at 320x240@15fps and so does the TXT camera app.
The root cause seems to be a problem with the Sitara USB DMA:
https://e2e.ti.com/support/arm/sitara_arm/f/791/t/155414
I just changed the kernel config "Device Drivers"-->"USB support"--->"Inventra Hightspeed...."/"MUSB DMA mode" from "TI CPPI 4.1" to "Disable DMA". But this doesn't seem to solve the issue.