[MPlayer-users] Re: memleak in cvs

Ed Sweetman safemode at speakeasy.net
Wed Aug 21 21:21:01 CEST 2002


cc me in any replies.  I'm not subscribing to the list because i'm
moving in a week and this email address will no longer work. 


ok, i'll say this again.  It does not matter what kind of file you're
playing or what codec you're using.  

the only difference between mplayer -v in gui mode and console mode is
that CACHE_PRE_INIT changes, but it changes everytime you run it in
console mode too.  and of course Cache fill , the line under it,
changes. 

All you need to do to reproduce the problem is start in gui mode, and
start playing a file, watch memory usage, it will increase gradually. 
Stop the file, play another.  Watch memory usage increase still.  You
should see significant memory usage after only 5 minutes of doing this. 
here are my two configs.   There is nothing more detailed about the
situation.   

mplayer starts up with something like 25MB of memory usage.  When
playing a file this increases to like 27 or so.  Starting up in gui mode
has mplayer at about 31.  This gradually increases with player use. 
300K/s or so.  you have to watch top.  
-------------- next part --------------
##
## MPlayer config file
##
## This file can be copied to /etc/mplayer.conf and/or ~/.mplayer/config .
## If both exist, the ~/.mplayer/config's settings override the
## /etc/mplayer.conf ones. And, of course command line overrides all.
## The options are the same as in the command line, but they can be specified
## more flexibly here. See below.
##

 vo=xv			# To specify default video driver (see -vo help for
			# list)

ao=oss		# To specify default audio driver (see -ao help for
			# list)

#fs=yes			# Enlarges movie window to your desktop's size.
			# Used by drivers: all

# fsmode=0		# This option workarounds some problems when using
			# specific windowmanagers and fullscreen mode. If you
			# experience fullscreen problems, try changing this
			# value between 0 and 7. Hint: either 0 or 1 should
			# be sufficient.
			# 0 = new method (since 0.18pre3)
			# 1 = ICCCWM patch (for KDE2/icewm)
			# 2 = old method (0.17a)
			# 3 = ICCCWM patch + Motif method

# vm=no			# Tries to change to a different videomode
			# Used by drivers: dga2, x11, sdl

# bpp=0			# Force changing display depth.
			# Valid settings are: 0, 15, 16, 24, 32
			# may need 'vm=yes' too.
			# Used by drivers: fbdev, dga2, svga, vesa

# zoom=no		# Enable software scaling (powerful CPU needed)
			# Used by drivers: svga, x11, vesa

# double=yes		# use double-buffering (recommended for xv with
			# SUB/OSD usage)

# monitoraspect=4:3	# standard monitor size, with square pixels
# monitoraspect=16:9	# use this for widescreen monitor! non-square pixels

##
## Use GUI mode by default
##

 gui = no

##
## Specify your preferred default skin here
## (skins are searched in /usr/local/share/mplayer/Skin/yourskin
##  and ~/.mplayer/Skin/yourskin)
##

 skin = default

##
## Multiple languages are available :)
##
## Hungarian	igen	nem
## English	yes	no
## German	ja	nein
## Spanish	si	no
## Binary	1	0
##
## You can also use spaces and/or tabs.
##

# sound		= 1
# nosound	= nein
# mixer		= /dev/mixer
# master	= no		# no : set PCM volume  	yes : set MASTER volume

##
## resample the fonts' alphamap
## 0	plain white fonts
## 0.75	very narrow black outline (default)
## 1	narrow black outline
## 10	bold black outline
##

# ffactor = 0.75


##
## FBdev driver: specify your monitor's timings, so resolutions
## can be autodetected.
## (see for example /etc/X11/XF86Config for timings!)
## ** CAUTION! IF YOUR DISPLAY DOESN'T SUPPORT AUTOMATICALLY TURNING OFF WHEN
##    OVERDRIVED (AND EVEN IF IT DOES), THIS MAY CAUSE DAMAGE TO YOUR DISPLAY!
##    WE AREN'T RESPONSIBLE, IT'S YOUR DECISION! **
##
## k, K : means multiply by 1000
## m, M : means multiply by 1.000.000
##

# fb = /dev/fb0				# framebuffer device to use
# fbmode = 640x480-120			# use this mode (read from fb.modes!)
# fbmodeconfig = /etc/fb.modes		# the fb.modes file
# monitor_hfreq = 31.5k-50k,70k		# horizontal frequency range
# monitor_vfreq = 50-90			# vertical frequency range
# monitor_dotclock = 30M-300M		# dotclock (or pixelclock) range

##
## SDL driver
##
pp = 4

# vo = sdl:aalib	# use SDL video driver by default
			# use "vo = sdl:aalib" or "vo sdl:dga" and so on,
			# for specifying SDL subdrivers
# ao = sdl:esd		# use SDL audio driver by default
			# use "ao = sdl:esd" to use SDL's ESD driver
# noxv = no		# whether to use XVideo hardware acceleration or not
# forcexv = yes		# force XVideo even if not detected


# nodshow		# disable usage of DirectShow video codecs


##
## Other (preferred to be default from configfile) switches
##

framedrop 	= yes	# drop frames, when not in sync (slow CPU, videocard,
			# etc)

# vfm		= 5	# use libavcodec video codec family (you know,
			# opensource DivX for example.. So preferred default on
			# non-x86 boxes)

cache		= 8192	# use 8Mb input cache by default

# slang		= en	# DVD : display english subtitles if available
# alang		= en	# DVD : play english audio tracks if available


## This is the correct way to use "subconfig" type options in the
## configuration file. In the command line you use :
## -aop list=resample:fout=44100 , but here it is :
# aop=list=resample:fout=44100

##
## You can also include other configfiles
## Specify full path!
##
## Delete this default :)
##

#include = /home/gabucino/.mplayer/i_did_not_RTFM_carefully_enough...
-------------- next part --------------
enable_audio_equ = 0
vo_driver = "xv"
vo_panscan = 0.000000
vo_doublebuffering = 1
vo_direct_render = 1
v_framedrop = 2
v_flip = 0
v_ni = 0
v_idx = 1
v_vfm = -1
vf_pp = 1
vf_autoq = 6
vf_lavc = 0
vf_fame = 0
ao_driver = "alsa9"
ao_nosound = 0
ao_volnorm = 0
ao_surround = 0
ao_extra_stereo = 0
ao_extra_stereo_coefficient = 1.000000
ao_delay = 0.000000
ao_oss_mixer = "/dev/mixer"
ao_oss_device = "/dev/dsp"
osd_level = 0
sub_auto_load = 0
sub_unicode = 0
sub_pos = 100
font_factor = 0.000000
font_name = "/usr/local/share/mplayer/font/font.desc"
gui_skin = "default"
equ_channel_1 = "Front Right"
equ_channel_2 = "Front Left"
equ_channel_3 = "Rear Right"
equ_channel_4 = "Rear Left"
equ_channel_5 = "Center"
equ_channel_6 = "Bass"
equ_band_00 = 0.000000
equ_band_01 = 0.000000
equ_band_02 = 0.000000
equ_band_03 = 0.000000
equ_band_04 = 0.000000
equ_band_05 = 0.000000
equ_band_06 = 0.000000
equ_band_07 = 0.000000
equ_band_08 = 0.000000
equ_band_09 = 0.000000
equ_band_10 = 0.000000
equ_band_11 = 0.000000
equ_band_12 = 0.000000
equ_band_13 = 0.000000
equ_band_14 = 0.000000
equ_band_15 = 0.000000
equ_band_16 = 0.000000
equ_band_17 = 0.000000
equ_band_18 = 0.000000
equ_band_19 = 0.000000
equ_band_20 = 0.000000
equ_band_21 = 0.000000
equ_band_22 = 0.000000
equ_band_23 = 0.000000
equ_band_24 = 0.000000
equ_band_25 = 0.000000
equ_band_26 = 0.000000
equ_band_27 = 0.000000
equ_band_28 = 0.000000
equ_band_29 = 0.000000
equ_band_30 = 0.000000
equ_band_31 = 0.000000
equ_band_32 = 0.000000
equ_band_33 = 0.000000
equ_band_34 = 0.000000
equ_band_35 = 0.000000
equ_band_36 = 0.000000
equ_band_37 = 0.000000
equ_band_38 = 0.000000
equ_band_39 = 0.000000
equ_band_40 = 0.000000
equ_band_41 = 0.000000
equ_band_42 = 0.000000
equ_band_43 = 0.000000
equ_band_44 = 0.000000
equ_band_45 = 0.000000
equ_band_46 = 0.000000
equ_band_47 = 0.000000
equ_band_48 = 0.000000
equ_band_49 = 0.000000
equ_band_50 = 0.000000
equ_band_51 = 0.000000
equ_band_52 = 0.000000
equ_band_53 = 0.000000
equ_band_54 = 0.000000
equ_band_55 = 0.000000
equ_band_56 = 0.000000
equ_band_57 = 0.000000
equ_band_58 = 0.000000
equ_band_59 = 0.000000


More information about the MPlayer-users mailing list