-
-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support: USB Camera #185
Comments
Yes, you can. My Pi 4B uses a USB camera. |
Thank you! |
@TzuHuanTai I am getting this error, what can I do?
|
Could you please check the support format of your webcam? Here is the way I use webcam on pi, fyi
pi@home-pi-5:~ $ v4l2-ctl -d /dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'MJPG' (Motion-JPEG, compressed)
Size: Discrete 352x288
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 640x480
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.050s (20.000 fps)
Size: Discrete 1280x720
Interval: Discrete 0.033s (30.000 fps)
...
pi@home-pi-5:~ $ ./pi_webrtc --device=/dev/video0 --v4l2_format=mjpeg --fps=30 --width=1920 --height=1080 --mqtt_host=xxxx --mqtt_port=8883 --mqtt_username=xxxx --mqtt_password=xxxx --uid=xxxx
Use mjpeg format source in v4l2
[v4l2_utils] Error: fd(26) set ctrl(9963810): Invalid argument
[v4l2_utils] Error: fd(26) set ext ctrl(10029519): Invalid argument
Sometime it might show some errors about v4l2 setting while running |
It worked thanks |
Can I use other cameras connected via USB with Raspberry PI 4, or is the raspberry pi based CSI Camera Module required?
Thank you
The text was updated successfully, but these errors were encountered: