How to listen to and decode an RTMP video stream with Python
How to listen to and decode an RTMP video stream with Python Question: How can I listen to and decode an RTMP video stream with Python? Such as with the ffmpeg command ffmpeg -listen 1 -i rtmp://localhost:1935/live/app I tried this: import av container = av.open(‘rtmp://localhost:1935/live/app’,listen=True) for frame in container.decode(video=0): frame = frame.to_ndarray(format=’bgr24′) …do some thing …