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 685030 - playback of mkv requires excessive amount of ram
playback of mkv requires excessive amount of ram
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.x
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-09-28 08:58 UTC by Andreas Frisch
Modified: 2012-11-25 13:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
G_SLICE=always-malloc valgrind --tool=massif --detailed-freq=20 gst-launch-1.0 playbin uri=file:///net/media/Videos/HD/The_Avengers.mkv flags=1 (117.22 KB, text/plain)
2012-09-28 08:58 UTC, Andreas Frisch
Details
G_SLICE=always-malloc valgrind --tool=massif --detailed-freq=20 gst-launch-1.0 playbin uri=file:///net/media/Videos/HD/The_Avengers.mkv video-sink=fakesink flags=1 (300.39 KB, application/octet-stream)
2012-09-28 12:03 UTC, Andreas Frisch
Details
G_SLICE=always-malloc valgrind --tool=massif --detailed-freq=20 gst-launch-1.0 filesrc location="The_Avengers.mkv" ! matroskademux ! video/x-h264 ! avdec_h264 ! autovideosink (97.38 KB, application/octet-stream)
2012-09-28 15:14 UTC, Andreas Frisch
Details

Description Andreas Frisch 2012-09-28 08:58:39 UTC
Created attachment 225322 [details]
G_SLICE=always-malloc valgrind --tool=massif --detailed-freq=20 gst-launch-1.0 playbin uri=file:///net/media/Videos/HD/The_Avengers.mkv flags=1

when playing a certain mkv file with 1.0 playbin, memory consumption will steadily increase
i've filed this under gst-plugins-good because matroskademux maybe the source of the problems.
ran it through valgrind with the massif tool and attached the report

[fraxinas@fox /net/media/Videos/HD]$ mediainfo The_Avengers.mkv 
General
Unique ID                                : 225534449172679614385049236561458313001 (0xA9AC5ADBB9E2CF238ED0281F23D33729)
Complete name                            : The_Avengers.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 5.52 GiB
Duration                                 : 2h 22mn
Overall bit rate                         : 5 529 Kbps
Encoded date                             : UTC 2012-08-28 19:32:42
Writing application                      : mkvmerge v5.5.0 ('Healer') built on Apr  6 2012 21:43:24
Writing library                          : libebml v1.2.3 + libmatroska v1.3.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 5 frames
Format settings, GOP                     : M=1, N=3
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 2h 22mn
Bit rate                                 : 2 400 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.109
Stream size                              : 2.40 GiB (43%)
Title                                    : sons-the_avengers-720p
Writing library                          : x264 core 125 r2208 d9d2288
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00                                                                                              
Default                                  : Yes                                                                                                            
Forced                                   : No                                                                                                             
                                                                                                                                                          
Audio #1                                                                                                                                                  
ID                                       : 2                                                                                                              
Format                                   : DTS                                                                                                            
Format/Info                              : Digital Theater Systems                                                                                        
Codec ID                                 : A_DTS                                                                                                          
Duration                                 : 2h 22mn                                                                                                        
Bit rate mode                            : Constant                                                                                                       
Bit rate                                 : 1 510 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 24 bits
Compression mode                         : Lossy
Stream size                              : 1.51 GiB (27%)
Title                                    : 1510kbps_dts
Language                                 : German
Default                                  : Yes
Forced                                   : No

Audio #2
ID                                       : 3
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Codec ID                                 : A_DTS
Duration                                 : 2h 22mn
Bit rate mode                            : Constant
Bit rate                                 : 1 510 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 24 bits
Compression mode                         : Lossy
Stream size                              : 1.51 GiB (27%)
Title                                    : 1510kbps_dts
Language                                 : English
Default                                  : No
Forced                                   : No

Text #1
ID                                       : 4
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : sons-the_avengers-720p-forced
Language                                 : German
Default                                  : Yes
Forced                                   : No

Text #2
ID                                       : 5
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : sons-the_avengers-720p-eng-forced
Language                                 : English
Default                                  : No
Forced                                   : No

running gst-launch-1.0 filesrc location="The_Avengers.mkv" ! matroskademux ! video/x-h264 ! fakesink doesn't show any excessive memory usage though

i'm trying it with playbin video-sink=fakesink now
Comment 1 Andreas Frisch 2012-09-28 12:03:44 UTC
Created attachment 225327 [details]
G_SLICE=always-malloc valgrind --tool=massif --detailed-freq=20 gst-launch-1.0 playbin uri=file:///net/media/Videos/HD/The_Avengers.mkv video-sink=fakesink flags=1
Comment 2 Andreas Frisch 2012-09-28 15:14:32 UTC
Created attachment 225339 [details]
G_SLICE=always-malloc valgrind --tool=massif --detailed-freq=20 gst-launch-1.0 filesrc location="The_Avengers.mkv" ! matroskademux ! video/x-h264 ! avdec_h264 ! autovideosink

after the previous profile didn't really show anything, this one is pretty dramatic
Comment 3 Tim-Philipp Müller 2012-09-28 15:21:50 UTC
Please could you make sure your entire GStreamer stack (libraries and plugins) contain debugging symbols? Debugging tools really need debugging symbols..
Comment 4 Tim-Philipp Müller 2012-11-25 13:52:02 UTC
I can't reproduce this, so assume the leak has since been fixed.

Please re-open with the information asked for if you still see the problem.