I am currently working on a project where I need to have a live stream video and a motion detection that when a motion is detected, records a 10 second video. I have put each functionality in different python files. I am using a single Pi camera. When I tried to run both programs at the same time, the second python file does not run. I just wanted to know if it is possible to run two programs simultaneously using a single pi camera. If it is possible, how? Any help would be appreciated. Thank you in advance.
I got an error