webcam
webcam copied to clipboard
Flickering issue you mentioned - my thoughts
I tried streaming over a router and I faced the flickering issue quite more often. So my assumption is that, this could be due to the loss in packets of UDP or them arriving out of order. So if that is the case, I think some mechanism to reject the broken frames should solve the problem. Just based on my assumptions, sorry if I'm wrong. Nevertheless, this is a cool project to learn.
@nevinbaiju Thank you. I'll look into that. The code right now is too simplified that cannot tolerate packet loss or arrive out of order. The problem of using vanilla UDP to do this job is that I think we have to design some kind of frame format ourselves. I'm trying to figure out a good solution that can have both simplicity and accuracy. BTW, I found some better solutions to do video streaming in other projects like PyZMQ.
Cool, I'll look into that! :)
@nevinbaiju To be specific, there is a lib called imagezmq. Some references, https://github.com/jeffbass/imagezmq https://www.pyimagesearch.com/2019/04/15/live-video-streaming-over-network-with-opencv-and-imagezmq/