Record PS3 Eye 60 fps capture path
This commit is contained in:
parent
53ccd079ca
commit
c105c85f7b
4 changed files with 55 additions and 17 deletions
|
|
@ -27,6 +27,14 @@ Capture camera snapshots:
|
|||
.\.venv\Scripts\python.exe .\scripts\calibration_probe.py snapshot --max-index 10
|
||||
```
|
||||
|
||||
List DirectShow devices and options through FFmpeg:
|
||||
|
||||
```powershell
|
||||
$ff = .\.venv\Scripts\python.exe -c "import imageio_ffmpeg; print(imageio_ffmpeg.get_ffmpeg_exe())"
|
||||
& $ff -hide_banner -list_devices true -f dshow -i dummy
|
||||
& $ff -hide_banner -list_options true -f dshow -i video="PS3 Eye Universal"
|
||||
```
|
||||
|
||||
Probe camera mode behavior:
|
||||
|
||||
```powershell
|
||||
|
|
@ -180,17 +188,36 @@ After registration, this machine exposes:
|
|||
- `dshow:3`: PS3 Eye, default `640x480`, about 30 fps.
|
||||
- `dshow:4`: PS3 Eye, default `640x480`, about 30 fps.
|
||||
- Simultaneous three-second capture from indices 3 and 4 produced 90 frames each, about 29.8-30.0 fps.
|
||||
- DirectShow device names are `PS3 Eye Universal` and `PS3 Eye Universal2`; use these names when forcing high-rate modes through FFmpeg.
|
||||
|
||||
Known caveats:
|
||||
|
||||
- OpenCV `mode-probe` calls that set width/height/fps may time out against the PS3EyeDirectShow filter.
|
||||
- Parallel probes can race the same libusb/backend state and produce `Access is denied`; test PS3 Eye mode changes one handle at a time.
|
||||
- High-rate modes such as `320x240@60` or `320x240@120` remain unproven through the DirectShow path.
|
||||
- OpenCV by index does not negotiate high-rate PS3 Eye modes correctly. It can report a requested FPS while delivering the wrong shape or frame rate.
|
||||
- FFmpeg by DirectShow device name does negotiate the filter pins correctly. Verified modes:
|
||||
- single `PS3 Eye Universal` at `640x480@30/40/50/60`; `640x480@60` delivered about 56 fps over three seconds
|
||||
- single `PS3 Eye Universal` at `320x240@30/40/50/60`; `320x240@60` delivered 180 frames over three seconds
|
||||
- single `PS3 Eye Universal2` at `640x480@60` and `320x240@60`; both delivered about 59-60 fps
|
||||
- dual `640x480@60` delivered about 54-56 fps per Eye over five seconds
|
||||
- dual `320x240@60` delivered 300 frames per Eye over five seconds
|
||||
- Requests above 60 fps through the installed DirectShow filter do not increase delivered frame rate. `320x240@70` still delivered about 60 fps; `640x480@70` delivered about 51-52 fps.
|
||||
|
||||
Current tracking capture command shape:
|
||||
|
||||
```powershell
|
||||
$ff = .\.venv\Scripts\python.exe -c "import imageio_ffmpeg; print(imageio_ffmpeg.get_ffmpeg_exe())"
|
||||
& $ff -hide_banner -f dshow -video_size 320x240 -framerate 60 -pixel_format bgr24 -i video="PS3 Eye Universal" -an -f rawvideo -
|
||||
& $ff -hide_banner -f dshow -video_size 320x240 -framerate 60 -pixel_format bgr24 -i video="PS3 Eye Universal2" -an -f rawvideo -
|
||||
```
|
||||
|
||||
That command emits raw BGR frames to stdout. A real tracker should launch each FFmpeg capture as a child process, read fixed-size `320 * 240 * 3` frame packets, and timestamp packet arrival at the process boundary.
|
||||
|
||||
Next escalation is no longer "find any video path." It is:
|
||||
|
||||
- capture ChArUco intrinsics for `dshow:3` and `dshow:4` at the working default mode
|
||||
- test PS3 Eye high-rate mode negotiation sequentially, with no other process holding either Eye
|
||||
- use FFmpeg DirectShow capture for PS3 Eye tracking at `320x240@60`
|
||||
- patch/rebuild PS3EyeDirectShow if more than 60 fps is required; the installed filter advertises a practical 60 fps ceiling
|
||||
- keep Leap/Kiyos/PS3 Eyes split across USB root paths where possible
|
||||
|
||||
Also test with one PS3 Eye unplugged and each camera connected directly to a motherboard USB 2.0/3.x port, not through a hub. A libusb issue report shows PS3 Eye/opentrack access can break when certain USB-C hubs are present, even when the camera itself is not plugged into that hub.
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
opencv-contrib-python
|
||||
sounddevice
|
||||
scipy
|
||||
imageio-ffmpeg
|
||||
|
|
|
|||
|
|
@ -26,3 +26,4 @@
|
|||
{"ts": "2026-05-18T14:05:40+00:00", "type": "verification", "status": "failed", "note": "WinUSB on the two live PS3 Eye MI_00 instances still enumerates high-rate modes but frame streaming fails: one device open hit Access is denied, the other repeated payload error data[1]=78/79 until killed. libusb0, libusbK, and WinUSB have all failed frame reads via opentrack on this machine."}
|
||||
{"ts": "2026-05-18T14:22:36+00:00", "type": "verification", "status": "partial", "note": "Audio-field sidecar added and offline FOA encode verified; current PortAudio enumeration shows no matching six-channel WASAPI input device, so live Ambisonic capture needs a shared six-input interface/profile or a separately proven adaptive sync path before using independent USB microphones."}
|
||||
{"ts": "2026-05-18T14:25:36+00:00", "type": "verification", "status": "ok", "note": "PS3 Eye video path found: AllanCat PS3 Eye Universal Driver / PS3EyeDirectShow exposes both Eyes as DirectShow indices 3 and 4 after registering the source filter for two cameras; simultaneous default 640x480 capture produced about 30 fps from both. High-FPS DirectShow mode negotiation remains unproven."}
|
||||
{"ts": "2026-05-18T14:48:48+00:00", "type": "verification", "status": "ok", "note": "PS3 Eye frame-rate squeeze: OpenCV DirectShow indices are reliable only at default 640x480@30; FFmpeg DirectShow capture by device name negotiates high-rate modes. Both PS3 Eyes simultaneously delivered 320x240@60 with 300 frames per Eye over five seconds. Dual 640x480@60 works but settles around 54-56 fps per Eye. Requests above 60 fps through the installed PS3EyeDirectShow filter do not increase delivered frame rate."}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ active_subgoals:
|
|||
- Smoke-test each audio endpoint in OBS and tune latency.
|
||||
- Decide whether an OBS source generator or plugin investigation is justified.
|
||||
- Evaluate the Ambisonic AquaSynth path as a separate synchronized multichannel audio pipeline; do not treat heterogeneous mic feeds as raw first-order ambisonic A-format without geometry, calibration, and a shared clock.
|
||||
- Build the six-microphone/two-speaker audio-field sidecar around one clocked capture path, explicit geometry, speaker calibration, and FOA AmbiX output.
|
||||
- Build the six-microphone/two-speaker audio-field sidecar around the actual distributed camera/Focusrite clocks, explicit geometry, speaker calibration, delay/SRO alignment, and FOA AmbiX output.
|
||||
|
||||
research:
|
||||
ambisonic_aquasynth:
|
||||
|
|
@ -122,18 +122,27 @@ current_status:
|
|||
but fails frame reads across libusb-win32, libusbK, and WinUSB. The
|
||||
AllanCat PS3 Eye Universal Driver / PS3EyeDirectShow path now exposes both
|
||||
PS3 Eyes as DirectShow indices 3 and 4 after registering the source filter
|
||||
for two cameras; both streams can run simultaneously at default 640x480
|
||||
near 30 fps. High-FPS PS3 Eye mode control is not proven yet. Audio-field
|
||||
scaffolding now exists as a separate sidecar:
|
||||
six-mic/two-speaker profile, validation, calibration sweep capture/analysis,
|
||||
raw field recording, and offline FOA AmbiX encoding. Current PortAudio
|
||||
enumeration does not expose a matching six-channel WASAPI input, so live
|
||||
field capture requires either a shared six-input device/profile or a
|
||||
separately proven adaptive sync path for independent USB microphones.
|
||||
for two cameras. OpenCV index capture is reliable at default 640x480 near
|
||||
30 fps but does not negotiate high-rate modes correctly. FFmpeg DirectShow
|
||||
capture by device name negotiates the filter pins properly: both Eyes can
|
||||
run simultaneously at 320x240@60, and dual 640x480@60 lands around 54-56
|
||||
fps per Eye. Requests above 60 do not increase delivered frame rate through
|
||||
the installed filter. Audio-field scaffolding now exists as a separate sidecar
|
||||
for the actual distributed rig: two Kiyo mics, two PS Eye mics, local
|
||||
Focusrite ADC with a shielded cardioid near the host's face, neighbor
|
||||
Focusrite ADC with a shotgun mic pointed at the co-streamer, and two local
|
||||
speakers. The Focusrite mics are high-quality dialogue anchors; camera mics
|
||||
provide spatial/context evidence. The tool refuses to treat independent
|
||||
USB/network clocks as an Ambisonic field until they have been aligned and
|
||||
resampled into one six-channel reference timeline.
|
||||
next_action: >
|
||||
Capture ChArUco intrinsics for DirectShow indices 1-4, then test PS3 Eye
|
||||
high-rate DirectShow mode negotiation sequentially after the baseline
|
||||
640x480@30 path is no longer in doubt. In parallel, create local
|
||||
config/audio-field.json, confirm whether one device exposes six synchronized
|
||||
mic inputs, replace placeholder mic/speaker geometry with measured world
|
||||
coordinates, then run the two-speaker calibration sweep.
|
||||
Use FFmpeg DirectShow device names `PS3 Eye Universal` and `PS3 Eye
|
||||
Universal2` for PS3 Eye tracking capture at 320x240@60, then capture
|
||||
ChArUco intrinsics for DirectShow indices 1-4. If more than 60 fps is still
|
||||
required, patch/rebuild PS3EyeDirectShow rather than asking OpenCV for a
|
||||
mode the installed filter does not expose. In parallel, create local
|
||||
config/audio-field.json, confirm local Kiyo/PS Eye/Focusrite device matches,
|
||||
confirm the neighbor Focusrite shotgun capture/transport path, replace
|
||||
placeholder mic/speaker geometry with measured world coordinates, then build
|
||||
the delay/SRO alignment stage that emits one six-channel WAV for FOA
|
||||
encoding.
|
||||
|
|
|
|||
Loading…
Reference in a new issue