please format your code posting by pasting it into the
</> code button
of the editor header menu ( context name: Preformatted text )
it looks like
```
type or paste code here
```
also can use the ``` manually above and below your code.
thank you.
for start using ( the video ) lib stay close to the examples
https://processing.org/reference/libraries/video/Capture.html