I have PC A & PC B. PC A is Raspberry Pi 3 b+, streaming video while open netcat listening port 8090 using this code:
- /opt/vc/bin/raspivid -t 0 -w 1024 -h 600 -hf -ih -fps 60 -o - | nc -k -l 8090
PC B uses MPlayer to connect to PC A Port 8090 and open up the Video Stream, output is really awesome with low latency, the command:
- mplayer -fps 200 -demuxer h264es ffmpeg://tcp://192.168.1.3:8090
But the thing is:
- I want to pipe those output into Python GUI (maybe using Tkinter lib, or any if you guys can recommend me).
- I tried to execute MPlayer inside my code, and ofc i'm so stupid because it will open up a new MPlayer windows playing the video-stream, but not attach to my GUI :(
-> 1, Is there any Python lib or code can help me catch the streaming video and pipe it into GUI ? So i can add some info on my GUI while display the Video on background.
-> 2, Is there anyway to use the Mplayer as embed output inside my GUI? And then I can editing my GUI as I want and the video stream is playing on the background.