VLC can't open USB camera on Raspberry Pi 4
Posted: 16 Nov 2019 00:42
I have a usb camera I'm trying to use with my RPi4. On my dev machine running Pop OS everything works great! Trying the exact same thing on the RPi4, I fail to get any image. I'm working python bindings, but the issue is reproducible in VLC itself. Both machines are running 3.0.8
Opening /dev/video/0 from Open Media -> Capture Device with absolutely no options I hear the camera physically "engage", I see the record indicator light come on, but nothing is displayed. The record indicator light stays on until I press stop in VLC. Besides narrowing things down to this basic case, I have tried increased the shared GPU memory 128/256/512 with no luck as well as tried the lower resolutions.
The only relevant error given is "buffer deadlock prevented"
Opening /dev/video/0 from Open Media -> Capture Device with absolutely no options I hear the camera physically "engage", I see the record indicator light come on, but nothing is displayed. The record indicator light stays on until I press stop in VLC. Besides narrowing things down to this basic case, I have tried increased the shared GPU memory 128/256/512 with no luck as well as tried the lower resolutions.
The only relevant error given is "buffer deadlock prevented"
Code: Select all
main debug: `v4l2:///dev/video0' successfully opened
main debug: Buffering 0%
main debug: Buffering 33%
main debug: Buffering 66%
main debug: Buffering 99%
main debug: Stream buffering done (399 ms in 399 ms)
main error: buffer deadlock prevented
SITS HERE UNTIL I PRESS STOP
main debug: Decoder wait done in 0 ms
main debug: incoming request - stopping current input
main debug: killing decoder fourcc `MJPG'
main debug: removing module "mmal_codec"
main debug: removing module "v4l2"
main debug: Program doesn't contain anymore ES
main debug: dead input
main debug: nothing to play
qt debug: IM: Deleting the input