webcam icon indicating copy to clipboard operation
webcam copied to clipboard

Flickering issue you mentioned - my thoughts

Open nevinbaiju opened this issue 5 years ago • 3 comments

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 avatar May 11 '19 17:05 nevinbaiju

@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.

yushuhuang avatar May 14 '19 01:05 yushuhuang

Cool, I'll look into that! :)

nevinbaiju avatar May 21 '19 05:05 nevinbaiju

@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/

yushuhuang avatar May 21 '19 07:05 yushuhuang