'How to serve django video streaming app on nginx

I have a django app which uses opencv videocapture to stream video from a cctv cam into my computer screen. But after hosting it using nginx. The video stream gets slowed down, hangs and sometimes quit with an error message.

I read that configuring rtmp server is the way to do it but there is literally no tutorial to do so.

Please Help!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source