VTubeStudio
VTubeStudio copied to clipboard
cant access virtual camera
im trying to access Vtube Studio's virtual camera(for personal use) using cv2.VideoCapture(1)
but i get:
[ERROR:[email protected]] global obsensor_uvc_stream_channel.cpp:156 cv::obsensor::getStreamChannelGroup Camera index out of range
i tried with different cameras(my own builtin(index 0) and obs's virtual(index 2)) they work just fine, but this one returns error. i read Vtube Studio's licence agreement in case it was forbidden by Vtube Studio or something and found nothing related to it. also i can access it from obs.
im on windows 10, python3.10.11, cv2 version 4.8.0(got via print(cv2.__version__)
)
I think one possible reason could be due to color space/format used by Vtube Studio's virtual camera. from what I know cv2 can't capture NV12 format. I can't say for sure since i don't know what color space/format uses Vtube Studio in it's virtual camera