Open LeaPhant opened 8 months ago
Right... the camera image size is hardcoded, so it doesn't work with vive camera.
Do you know what the resolution of the vive camera is?
Do you know what the resolution of the vive camera is?
Technically 640x480, but with YUYV 4:2:2 it's 612x460 as in the logs.
$ v4l2-ctl -d /dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'YUYV' (YUYV 4:2:2)
Size: Discrete 612x460
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 480x360
Interval: Discrete 0.033s (30.000 fps)
[1]: 'MJPG' (Motion-JPEG, compressed)
Size: Discrete 480x360
Interval: Discrete 0.008s (120.000 fps)
[2]: 'H264' (H.264, compressed)
Size: Discrete 480x360
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Size: Discrete 612x460
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Size: Discrete 320x240
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Size: Discrete 160x120
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
Size: Discrete 1920x1080
Interval: Discrete 0.033s (30.000 fps)
Interval: Discrete 0.042s (24.000 fps)
Interval: Discrete 0.050s (20.000 fps)
[3]: 'NV12' (Y/UV 4:2:0)
Size: Discrete 640x480
Interval: Discrete 0.020s (50.000 fps)
Size: Discrete 480x360
Interval: Discrete 0.010s (100.000 fps)
does it have both eyes' image side-by-side? 612x460 seems to be really small.
No, it's a single camera with a single non-square video output and yes, the quality is not great.
For reference this is what a frame looks like:
oh it's not stereo. OK, that's good.
Using the OG Vive (single camera) by manually setting the camera path in config causes a crash in either VR backend.
Backtrace (backtrace.log):
Changed config values: