Delayed and laggy webcam

Camera model

Logitech C270

What is the problem?

The camera stream is super delayed showing a frame every 4-5 seconds and in some cases freezing on a frame for minutes.

What did you already try to solve it?

I edited octopi.txt to tune my webcam settings specific to the c270. 1280x720 and 30 fps. I also rebooted and restarted octoprint. I tested the webcam with my laptop and the feed is completely fine with no lag at all.

Have you tried running in safe mode?

No I haven't but I also haven't downloaded any plugins yet.

Did running in safe mode solve the problem?

No.

Also I am not using a raspberry pi power supply, but instead using a spare usb-c laptop charger that seems to work for the pi. Raspberry PI 4b and Prusa i3 MK3S+.

A charger never has been a proper power supply.

Please attach the systeminfo bundle to your next post.