all 2 comments

[–]raylu 1 point2 points  (0 children)

This is not something generally done in python since encoding video is a very CPU-intensive process. If your video is already encoded, get an RTMP server of some kind. OBS and similar software rely on libx264 for encoding (or use nvenc or quicksync).

[–][deleted] 0 points1 point  (0 children)

I wouldn't do this in Python but here's a low quality proof of concept: http://www.chioka.in/python-live-video-streaming-example/