RICOH THETA API Over USB Cable - (X, Z1, SC2, V, S, SC models)

I don’t think that the camera can output 1024x512.

You can use the livePreview motionjpeg to get the stream to the Raspberry Pi 4. Or, use the RTSP plugin that runs inside the camera.