robotpy-cscore icon indicating copy to clipboard operation
robotpy-cscore copied to clipboard

getting invalid jpeg on ubuntu 18

Open oriagranat9 opened this issue 5 years ago • 6 comments

while using the quick camera server example on ubuntu 18 im getting a warning: WARNING:cscore:USB Camera 0: invalid JPEG image received from camera

the server opens and i can browse to the website but i dont get any image

oriagranat9 avatar Mar 30 '19 11:03 oriagranat9

It is likely that the camera you are using does not support the MJPEG format, which CSCore uses by default. Please check the video modes the camera supports (which are listed at the bottom of the webpage of the camera server).

auscompgeek avatar Mar 30 '19 11:03 auscompgeek

Is there any way to use other formats with cscore

oriagranat9 avatar Mar 30 '19 12:03 oriagranat9

What kind of camera is it?

virtuald avatar Apr 01 '19 03:04 virtuald

My guess, given oriagranat9 other bugs is this is a PS Eye camera. AFAIK, it does not support MJPEG, only YUYV.

You can select YUYV with # PS Eye camera needs to have its pixelformat set camera.setPixelFormat(cscore.VideoMode.PixelFormat.kYUYV)

prensing avatar Dec 26 '19 15:12 prensing

I'm tempted to call this an upstream documentation bug.

auscompgeek avatar Dec 27 '19 06:12 auscompgeek