I've set up my Raspberry Pi 3 as an ad-hoc network so that I can log in, start a VNCServer session and run the Pi using my laptop.
The Pi is going to be installed in a rotating platform so it needs to be wireless. On the platform are sensors so when one of the sensors goes off, the platform rotates, turns the Raspberry Pi Camera on and displays the what set the sensor off.
This worked great when it was plugged into a monitor as I believe the Pi Camera video is sent directly to the HDMI, but once I am viewing the desktop from the VNC connection I don't see the video output.
I've seen how you can stream the Pi Camera video using a command like this:
raspivid -o - -t 0 -hf -w 640 -h 360 -fps 25 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554}' :demux=h264
Then opening VLC player and watching it, but how do I run this command from within Python to begin the stream,
and is there a way to open VLC player from within Python, or add a video player component to the GUI on my application to view it from within the program?
Or just in general a way of streaming the Raspberry Pi Camera over VNC from within Python?
Cheers