Hello Christian,

I’m loading an RTSP stream into a VLCPlayer instance on MacOS. Right now i’m 
basically just using your 64 bit example with a change to load the media from a 
URL rather than from a file like:

m = VLCMediaMBS.MediaWithURL( v, 
"rtsp://user:[email protected]:554/cam/realmonitor?channel=1&subtype=0”)

When I play this in my app it continually increases it’s memory allocation. 
Even when I close the window in the demo app and open another one not all the 
memory is returned and it will build up until the app or the system starts to 
behave badly. Since all references to the VLC objects are local to the window 
that should have destroyed everything, but it doesn’t.

When I load the same stream into the VLC player app itself the memory is 
unchanging for as long as I let it run. This makes me suspect that the plugin 
isn’t releasing something since they are both using the same library? 

Since I really only need to capture frames from it and don’t need to display it 
in realtime I experimented with not linking it to the CGContext of the window 
and just capturing frames via copyPicture.  That didn’t change anything, so 
instead I disabled the call to copyPicture and only left it playing in the 
window but that also didn’t change the memory expansion. So I don’t think the 
problem is with the copyPicture function, or at least not only with the 
copyPicture function.

I wanted to provide you with some Instruments data to see if I could find the 
allocation or object that was doing it, but when I try to connect Instruments 
to the app it just crashes. Something in the VLC library doesn’t like having 
Instruments try to read out what it’s doing. I can provide a passthrough of my 
testing RTSP stream if that would help at all. Any help or advice would be 
greatly appreciated. 




Thanks,
 James


James Sentman                       http://www.PlanetaryGear.org                
http://MacHomeAutomation.com




_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to