I have set up 2 individual tasks using the NOIR Pi camera and a motion sensor which work successfully in their own right.
Using motion to stream a live video to an external ip address
a python script to record a video and send to my gmail acc when motion is detected. I use MOtionSnesor and piCamera for this
However task2 does not work in parallel with task1 because it is "out of resources". Task 2 only works if I stop motion software via "sudo service motion stop".
Is there a way to have both task running in parallel? Thanks