NO DO THIS INSTEAD

 https://dietpi.com/docs/software/camera/#mjpg-streamer this might work!!!