I would like to start a pi camera stream via a webpage and then view the stream via VLC but seem to have run into a permissions issue, I think.
So far I have reused this code to start the stream:
Code: Select all
raspivid -o - -t 999991 -hf -w 640 -h 360 -fps 25|cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264
The problem arises when I try to run the php script from /var/www. Other scripts work fine from the directory, but after some digging around it seems that VLC will not run as root due a to restriction put in place by the developers for security issues, and also it seems, as www-data.
Can anyone figure out how I could resolve this conundrum, please?
Thanks.