avafinger / fswebcam

fswebcam for H2 / H3 / A64 / Rockchip (exposure,Hflip and Vflip control set)
GNU General Public License v2.0
7 stars 6 forks source link

Error running on PINE64 #2

Open PanderMusubi opened 1 year ago

PanderMusubi commented 1 year ago

Same hardware as https://github.com/avafinger/cap-v4l2/issues/5#issuecomment-1487531687

Building goes okay but running gives this error:

# fswebcam -v
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
src_v4l2_get_capability,87: /dev/video0 information:
src_v4l2_get_capability,88: cap.driver: "cedrus"
src_v4l2_get_capability,89: cap.card: "cedrus"
src_v4l2_get_capability,90: cap.bus_info: "platform:cedrus"
src_v4l2_get_capability,91: cap.capabilities=0x84208000
src_v4l2_get_capability,103: - STREAMING
No input was specified, using the first.
Unable to query input 0.
VIDIOC_ENUMINPUT: Inappropriate ioctl for device
avafinger commented 1 year ago

Not sure you will be able to use fswebcam, it needs a modification in order to work with DVP. First, make the camera work like this one: https://github.com/avafinger/bananapi-zero-ubuntu-base-minimal#working-with-cameras

Only then, try with fswebcam.

avafinger commented 1 year ago

I've added support for rockchip that should work your platform.