You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running testcamera with all-default arguments, only green is shown.
By default, the v4l2 camera driver is used.
Its stdout claims it provides surfaces with MJPG and YUV2 formats.
But the window is 100% green. When adding a breakpont at stbi__jpeg_load, and viewing src in a memory viewer, it does not contain the JPEG magic header (ff d8 ff). The data (src) looks very uniform (uncompressed?) to me.
Comparing the v4l2 and pipewire camera driver, the SDL_PIXELFORMAT_MJPG formats do not appear when using the pipewire driver.
The webcam is a simple laptop webcam. lsusb shows:
Bus 002 Device 003: ID 1bcf:2c18 Sunplus Innovation Technology Inc. HD WebCam
Green window
v4l2 output
Using SDL camera driver: v4l2
Saw 1 camera devices.
- Camera #0: HD WebCam: HD WebCam
Available formats:
1280x720 30.00 FPS SDL_PIXELFORMAT_MJPG
1280x720 7.50 FPS SDL_PIXELFORMAT_YUY2
640x480 30.00 FPS SDL_PIXELFORMAT_MJPG
640x480 30.00 FPS SDL_PIXELFORMAT_YUY2
352x288 30.00 FPS SDL_PIXELFORMAT_MJPG
352x288 30.00 FPS SDL_PIXELFORMAT_YUY2
320x240 30.00 FPS SDL_PIXELFORMAT_MJPG
320x240 30.00 FPS SDL_PIXELFORMAT_YUY2
176x144 30.00 FPS SDL_PIXELFORMAT_MJPG
176x144 30.00 FPS SDL_PIXELFORMAT_YUY2
160x120 30.00 FPS SDL_PIXELFORMAT_MJPG
160x120 30.00 FPS SDL_PIXELFORMAT_YUY2
Camera approved!
Camera Spec: 1280x720 30.00 FPS SDL_PIXELFORMAT_MJPG
pipewire output
Using SDL camera driver: pipewire
Saw 1 camera devices.
- Camera #0: HD WebCam (V4L2)
Available formats:
1280x720 7.50 FPS SDL_PIXELFORMAT_YUY2
640x480 30.00 FPS SDL_PIXELFORMAT_YUY2
352x288 30.00 FPS SDL_PIXELFORMAT_YUY2
320x240 30.00 FPS SDL_PIXELFORMAT_YUY2
176x144 30.00 FPS SDL_PIXELFORMAT_YUY2
160x120 30.00 FPS SDL_PIXELFORMAT_YUY2
Camera approved!
Camera Spec: 1280x720 7.50 FPS SDL_PIXELFORMAT_YUY2
The text was updated successfully, but these errors were encountered:
Running testcamera with all-default arguments, only green is shown.
By default, the v4l2 camera driver is used.
Its stdout claims it provides surfaces with MJPG and YUV2 formats.
But the window is 100% green. When adding a breakpont at stbi__jpeg_load, and viewing
src
in a memory viewer, it does not contain the JPEG magic header (ff d8 ff
). The data (src
) looks very uniform (uncompressed?) to me.Comparing the v4l2 and pipewire camera driver, the
SDL_PIXELFORMAT_MJPG
formats do not appear when using the pipewire driver.The webcam is a simple laptop webcam.
lsusb
shows:Green window
v4l2 output
pipewire output
The text was updated successfully, but these errors were encountered: