Having problem with the capturing video with Processing 4

That doesn’t look right - seems to be an old version.

Try this Processing can't find the camera - Video Libraries don't work - #13 by neilcsmith