So this is great and all. But how do you get the video stream? After a lot and lot of googling I figured out how to start a TCP stream on the raspberry pi and send it to a GUI in QT.
On the pi run:
raspivid -t 999999 -h 480 -w 640 -fps 25 -hf -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=IPADDRESS port=PORT
The GUI code is a bit more involved, but for an example you can view what I'm doing here. This includes how to convert it into a QT pixmap suitable for overlaying image data as well. That's all for now, I hope this was useful. I think next time I'll talk about how I'm doing the auto-generation of code for different comm protocols/messages.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.