docker run --ipc=host --device=/dev/video0:/dev/video0 -v /tmp/.X11-unix/:/tmp/.X11-unix -it -e DISPLAY=$DISPLAY debian:12
--ipc=host for the camera to actually work in the container. After doing the above, Iwas able to make my camera work in OBS Studio from the container.
--device=/dev/video0:/dev/video0 # I assume your camera is /dev/video0 if not change it.
-v /tmp/.X11-unix/:/tmp/.X11-unix -it -e DISPLAY=$DISPLAY obsstudio-........