Problems in playing multiple video streams in VC application
Posted: 24 Sep 2009 09:19
I am using Core 2 Duo with 3GB RAM and Windows Vista OS, libvlc 0.9.9 library.
I am making an application to display 3 video streams (approx 4 Mb/s bitrate each) using microsoft visual studio 8. When i start displaying all the 3 videos at the same time (say in a for loop), there is an obvious surge in Physical memory usage (as seen in Task manager) and because of this the frames are frozen within 5 secs of playing, after some time and VLC tries to recover from this after a steady state (in memory usage %) is reached but ends up playing videos with corrupted frames and eventually the application crashes. Some digging in details of problems points to a dll called liblibmpeg2_plugin.dll.
My observation is this problem occurs whenever the rate of change in memory usage is high and not on absolute % of memory usage.
When i used "Minimize number of threads" option in VLC (Preferences->Advanced), the sudden surge is reduced to large extent but still i find the problem of frozen videos and eventual crash but after, relatively longer duration of time.
My aim is to display 8 videos eventually........ which looks far away at this stage .
Is there any away i can avoid this issue. Has anybody faced this issue before under Windows?
Rao
I am making an application to display 3 video streams (approx 4 Mb/s bitrate each) using microsoft visual studio 8. When i start displaying all the 3 videos at the same time (say in a for loop), there is an obvious surge in Physical memory usage (as seen in Task manager) and because of this the frames are frozen within 5 secs of playing, after some time and VLC tries to recover from this after a steady state (in memory usage %) is reached but ends up playing videos with corrupted frames and eventually the application crashes. Some digging in details of problems points to a dll called liblibmpeg2_plugin.dll.
My observation is this problem occurs whenever the rate of change in memory usage is high and not on absolute % of memory usage.
When i used "Minimize number of threads" option in VLC (Preferences->Advanced), the sudden surge is reduced to large extent but still i find the problem of frozen videos and eventual crash but after, relatively longer duration of time.
My aim is to display 8 videos eventually........ which looks far away at this stage .
Is there any away i can avoid this issue. Has anybody faced this issue before under Windows?
Rao