I wanted a way to display a video input such as; NDI,RTMP,Webcam,CaptureDevice, for a preview window viewer in a borderless window without it affecting other windows that always stays on top. If webcam is in use in other program open this first then use number key to chang source
--Opens first webcam input on main screen in 360x180 at x=10,y=10 in draggable window... Alt+F4 or Escape Button to exit... it always stays on top.
--use num keys to change webcam inputs from 0-3
--page up and page down change size of window... will add more resolutions soon
--Drag with Right Click
--Refresh video_loop with middle click
--Works great with TouchOSC to preview a window if using for video mixer . Just drag into position
You can use it as a monitor to see whats happening in on other devices/streams/ basically whatever you can pipe into a webcam input
This is MUCH faster latency in both refreshing and displaying the image than the NDI version ....with the caveat of tying up the webcam input ( it seems to render the frames on the GPU wheras the NDI one seems to be on CPU)
Currently need help on line 74 (should be easy just need to make a variable for the line "self.stream=VideoStream(0)") and also want to have a way to retry the connection on failing to get device
Dependencies are pillow, imutils, tkinter, and C2V
Thanks to https://github.com/CarlosFdez/pyNDI/tree/master i made a version that takes in NDI sources into the same type of window just go to PiP NDI branch