loyd / rscam

Rust wrapper for v4l2
Other
116 stars 22 forks source link

Using "RGB3" mode crashes system #22

Closed MichaelMauderer closed 5 years ago

MichaelMauderer commented 5 years ago

I'm using rscam 0.5.0 on a TX2 system ( aarch64-unknown-linux-gnu ) with an attached capture device that is accessible through /dev/video0.

Running the format example shows (among others) these settings:

UYVY (UYVY 4:2:2)
  640x480  Discretes: 60fps
  720x480  Discretes: 60fps
  720x576  Discretes: 50fps
  1280x720  Discretes: 50fps, 60fps
  1920x1080  Discretes: 24fps, 25fps, 30fps, 50fps, 60fps
  3840x2160  Discretes: 30fps
  4096x2160  Discretes: 30fps
RGB3 (24-bit RGB 8-8-8)
  640x480  Discretes: 60fps
  720x480  Discretes: 60fps
  720x576  Discretes: 50fps
  1280x720  Discretes: 50fps, 60fps
  1920x1080  Discretes: 24fps, 25fps, 30fps, 50fps, 60fps
  3840x2160  Discretes: 30fps
  4096x2160  Discretes: 30fps

Running the capture example with default values works as expected.

Running the capture example with the format specified as "RGB3" either does not produce any output (without terminating) or freezes the whole system followed by a restart.

Using v4l through VLC and specifying RGB3 seems to work fine, so it seems this might be an issue with rscam.

MichaelMauderer commented 5 years ago

Seems to be an issue with the hardware after all.