I am testing a way to get RGB matrix from a RTSP stream with the Python (3.6) code at https://pastebin.com/CuVh2DgY
Tested on several Environments:
1) OSX Mojave 10.14.1, VLC 3.0.4
2) Ubuntu 16.04/18.04, VLC 3.0.4
3) A docker container on the mac in 1), running Ubuntu 16.04 image
In case 1) and 3), the memory of python/docker soars high in a short time and the code blows up. However, in 2) the code runs with very low memory usage for a long time.
Similar behaviors can be reproduced with C++ code with identical logic.
Any comments, solutions or workarounds of this problem will be appreciated! Thanks!