After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 712356 - Receiving Stream in MPEG2 format from VLC looses memory
Receiving Stream in MPEG2 format from VLC looses memory
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: dont know
1.2.3
Other Windows
: Normal major
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-11-15 09:41 UTC by Stephan.Urbach
Modified: 2016-02-21 22:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Memory overview measured with VMMap (1.08 MB, application/x-zip-compressed)
2014-04-03 08:29 UTC, Stephan.Urbach
Details

Description Stephan.Urbach 2013-11-15 09:41:03 UTC
I stream with VLC the Desktop with 25 Frames via rtsp in the format MPEG-2 + MPGA (TS) and receive it on the same PC with GStreamer. In the Windows Task Manager you can watch the memory usage growing until GStreamer crashes.

VLC:
:sout=#transcode{vcodec=mp2v,vb=800,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{sdp=rtsp://:8554/} :sout-keep

GStreamer:
gst-launch-1.0.exe playbin uri=rtsp://127.0.0.1:8554/


Notes:
Memory is growing slowly with 1.2.1, faster with 1.2.0 and very fast wtih 1.0.10
If the steaming is done in H.264 + MP3(MP4) format no memory loss occurs.
Comment 1 Sebastian Dröge (slomo) 2013-11-26 11:15:02 UTC
Can you check with massif (e.g.) where all this memory is accumulated?

http://valgrind.org/docs/manual/ms-manual.html
Comment 2 Stephan.Urbach 2013-11-29 12:36:59 UTC
I'm only using the windows version and do not have a Linux PC. Is there a similar tool like massif available for windows?
Comment 3 Sebastian Dröge (slomo) 2014-04-02 21:21:32 UTC
https://stackoverflow.com/questions/413477/is-there-a-good-valgrind-substitute-for-windows suggests that there's VMMap and a command in the Windows debugger to print the heap usage.
Comment 4 Edward Hervey 2014-04-03 05:46:24 UTC
Note that you might want to try with 1.2.3 before anything else. I think there was a leak that got fixed since 1.2.1
Comment 5 Stephan.Urbach 2014-04-03 08:24:14 UTC
tested with 1.2.2 and 1.2.3. A little improvement but still large memory loss
Comment 6 Stephan.Urbach 2014-04-03 08:29:29 UTC
Created attachment 273507 [details]
Memory overview measured with VMMap

Generated memory overview with VMMap. See attached file.
memory overview at start: gst-launch-1.start.txt and gst-launch-1.start.mmp
memory overview after some time: gst-launch-1.end.txt and gst-launch-1.end.mmp
Comment 7 Tim-Philipp Müller 2016-02-21 22:54:53 UTC
Thanks for the bug report, but I'm not quite sure what to do about this. I suppose someone needs to debug this who can reproduce it and knows how to find the culprit :)

There's also a good chance the leak has been fixed in the last 2 years.

Please re-open if you still have an issue with the latest version of GStreamer, thanks!