processing / processing-video

GStreamer-based video library for Processing
276 stars 130 forks source link

Problem with built in Surface camera (Intel AVstream camera) front or back cameras #102

Open nosarious opened 5 years ago

nosarious commented 5 years ago

I was unable to find this posted anywhere. If there is a place specific to the video library I will gladly post it there. I am using the "getting started with capture" sketch to identify cameras

this is on a 2017 i7 surface pro. The camera is identified as an intel AVstream with a number of different resolutions and framerates. There is no distinction between the front camera and the rear camera (I seem to remember there being over a hundred cameras listed a year or so ago when I first tried it)

The last camera identified using the "getting started with capture" sketch from the video library is this:

[59] "name=Intel(R) AVStream Camera 2500,size=1920x1080,fps=15"

I have tried multiple cameras from this list, and they all behave the same (and are all the back camera only)

The refresh rate from this camera seems very slow, The program framerate seems to be fine (floating around 60fps) but the rate of refresh from the cameras is about 1 frame per second.

I know this is probably a camera issue, but I would love to know if this is a proprietary driver problem or not. Judging from the various posts in the processing.org forum this issue has been around for a few years. Is there a solution other than using a webcam for experimenting with processing code on a surface tablet?

I am unsure if this will be a problem on the surface book and surface go...

micuat commented 5 years ago

I got it working with this https://forum.processing.org/two/discussion/comment/120804/#Comment_120804 but now I noticed I cannot use the front camera. Also I don't know how to reduce the resolution from the camera - this is another problem causing slow framerate.