[MPlayer-users] Bug in libssa: memory leak and faulty rendering

RVM rvm3000 at ya.com
Tue Feb 12 03:55:22 CET 2008


El Domingo, 10 de Febrero de 2008 22:59, Evgeniy Stepanov escribió:
> On Monday 11 February 2008 00:32:51 Wesley S. wrote:
> > 2008/2/10, Wesley S. <wesley at ubuntu.com>:
> > > 2008/2/10, Evgeniy Stepanov <eugeni.stepanov at gmail.com>:
> > > > Works fine here. I'd like to see the whole subtitle file (at least,
> > > > headers)
> > > > and font that is used in this line.
> > >
> > > Here's the full subtitle file: http://www.pastebin.ca/raw/899082
> >
> > Excuse me, that was not the right subtitle file, it had the wrong thing
> > commented, try this one:
> > http://www.pastebin.ca/raw/899092
>
> Nope, still ok. Complains a lot about '.6' in \shad argument. Even uses the
> correct font: Offensive Bold, 44028 bytes.

I've just tested it with MPlayer dev-SVN-r25987-3.3.4 and when the first 
subtitle is about to appear (00:01:39) my computer goes crazy and almost 
freezes. I had to press CTRL-C several times to kill mplayer before it eats 
all memory.

> Could you send me 'mplayer -v' output ?

This is mine:

MPlayer dev-SVN-r25987-3.3.4 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3400+ (Family: 15, Model: 4, Stepping: 10)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
get_path('codecs.conf') -> '/home/ricardo/.mplayer/codecs.conf'
Reading /home/ricardo/.mplayer/codecs.conf: Can't open 
'/home/ricardo/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open 
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --disable-tv --disable-tv-teletext --disable-radio-v4l2 
--disable-v4l2 --disable-dvdread-internal
CommandLine: 'video.avi' '-sub' 'subs.ass' '-ass' '-v'
init_freetype
/home/ricardo/.fonts/arialbd.ttf doesn't look like a bitmap font description, 
ignoring.
Cannot load bitmap font: /home/ricardo/.fonts/arialbd.ttf
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/ricardo/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/ricardo/.mplayer/input.conf'
Can't open input config file /home/ricardo/.mplayer/input.conf: No such file 
ordirectory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file 
ordirectory
Falling back on default (hardcoded) input config
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Permission denied
Failed to open LIRC support. You will not be able to use your remote control.
get_path('video.avi.conf') -> '/home/ricardo/.mplayer/video.avi.conf'

Playing video.avi.
get_path('sub/') -> '/home/ricardo/.mplayer/sub/'
[file] File size is 369592528 bytes
STREAM: [file] video.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: avi format
AVI file format detected.
list_end=0x146
======= AVI Header =======
us/frame: 41708  (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
frames  total: 62385   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  624 x 352
==========================
list_end=0xD4
==> Found video stream: 0
[aviheader] Video stream found, -vid 0
====== STREAM Header =====
Type: vids   FCC: XVID (44495658)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 24000/1001 = 23.976
Start: 0   Len: 62385
Suggested BufferSize: 87181
Quality 0
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 624
  biHeight 352
  biPlanes 1
  biBitCount 12
  biCompression 1145656920='XVID'
  biSizeImage 1317888
===========================
Regenerating keyframe table for MPEG-4 video.
list_end=0x146
==> Found audio stream: 1
[aviheader] Audio stream found, -aid 1
====== STREAM Header =====
Type: auds   FCC: U (55)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 48000/1152 = 41.667
Start: 0   Len: 108416
Suggested BufferSize: 768
Quality 0
Sample size: 0
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 15332
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x1
mp3.nBlockSize=368
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
==========================================================================
list_end=0x170
hdr=Software  size=22
Software  : MEncoder 1.0rc1-3.4.6
list_end=0x15DDD5B8
Found movie at 0x100C - 0x15DDD5B8
Reading INDEX block, 170801 chunks for 62385 frames (fpos=366859712).
AVI index offset: 0x1008 (movi=0x100C idx0=0x4 idx1=0x18C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=325554445 (62385) audio size=39892320 (108416)
VIDEO:  [XVID]  624x352  12bpp  23.976 fps  1000.9 kbps (122.2 kbyte/s)
[V] filefmt:3  fourcc:0x44495658  size:624x352  fps:23.98  ftime:=0.0417
Clip info:
 Software: MEncoder 1.0rc1-3.4.6
[file] File size is 43227 bytes
STREAM: [file] subs.ass
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
SUB: Detected subtitle file format: ssa
SUB: opened iconv descriptor.
SUB: closed iconv descriptor.
SUB: Read 357 subtitles.
file size: 43227
LIBSUB: opened iconv descriptor.
LIBSUB: closed iconv descriptor.
[0x8946b88] Style: Standard 
[GitS],OffensiveBold,42,&H00FFFFFF,&H00000000,&H00000000,&H8C000000,-1,0,0,0,110,100,0,0,1,1.3,2,2,25,25,30,0
[0x8946b88] Style: Alternative 
[GitS],OffensiveBold,42,&H00C6BCDE,&H32000000,&H00000000,&H8C000000,-1,0,0,0,110,100,0,0,1,1.3,2,2,25,25,30,0
[0x8946b88] Style: Intercom [GitS],Tw Cen MT 
Condensed,44,&H00FFFFFF,&H006B5429,&H24000000,&H64000000,0,-1,0,0,110,95,1,0,1,1.3,1.5,2,25,25,30,0
[0x8946b88] Style: f.o. 
[GitS],OffensiveBold,42,&H00FFFFFF,&H00000000,&H00000000,&H73000000,-1,0,0,0,110,100,0,0,1,1.3,2,2,10,10,20,0
[0x8946b88] Style: karaoke [GitS],Expletive 
Deleted,48,&H008FDAFA,&H00000000,&H00000000,&H48000000,-1,0,0,0,120,90,0,0,1,0.8,1.4,2,20,20,30,0
[ass] Added subtitle file: subs.ass (5 styles, 357 events)
SUB: Added subtitle file (1): subs.ass
get_path('sub/') -> '/home/ricardo/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask:  FFFF  (R:F800 G:7E0 B:1F)
vo: X11 running at 1280x1024 with depth 16 and 16 bpp (":0.0" => local 
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE BELOW X 
atoms
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x00083e).
[xv common] Maximum source image dimensions: 2046x2046
[vo] query(Planar YV12) -> 3
[ass] auto-open
[ass] Init
get_path('fonts') -> '/home/ricardo/.mplayer/fonts'
get_path('subfont.ttf') -> '/home/ricardo/.mplayer/subfont.ttf'
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using 3DNow!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 48000 Hz 128 kbit Joint-Stereo, BPF: 384
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
ao2: 48000 Hz  2 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags:   8/8  (8192 bytes/frag)  free:  65536
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
Increasing filtered audio buffer size from 0 to 65536
[ffmpeg] aspect_ratio: 1.772727
VDec: vo config request - 624 x 352 (preferred colorspace: Planar YV12)
Trying filter chain: ass vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
VO Config (624x352->624x352,flags=0,'MPlayer',0x32315659)
REQ: flags=0x437  req=0x0
VO: [xv] 624x352 => 624x352 Planar YV12
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 61 for hw scaling
[xv] dx: 0 dy: 0 dw: 624 dh: 352
*** [ass] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
[xv] dx: 0 dy: 0 dw: 624 dh: 352
XXX initial  v_pts=0.000  a_pos=7536 (0.492)   1 ??% ??% ??,?% 0 0
*** [ass] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
*** [vo] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
Unicode font: 1418 glyphs.
Unicode font: 1418 glyphs.
*** [ass] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
[xv] dx: 0 dy: 0 dw: 624 dh: 352: -0.001  44/ 44 27% 13%  1.0% 4 0
[xv] dx: 0 dy: 0 dw: 624 dh: 352
[xv] dx: 0 dy: 0 dw: 624 dh: 352: -0.001  45/ 45 27% 13%  1.0% 4 0
[xv] dx: 0 dy: 0 dw: 624 dh: 352: -0.001  46/ 46 27% 13%  1.0% 4 0
[xv] dx: 0 dy: 0 dw: 624 dh: 352
[xv] dx: 0 dy: 0 dw: 624 dh: 352: -0.001  47/ 47 27% 12%  1.0% 4 0
[xv] dx: 0 dy: 0 dw: 624 dh: 352
[xv] dx: 0 dy: 0 dw: 624 dh: 352: -0.001  48/ 48 27% 12%  1.0% 4 0
[xv] dx: 0 dy: 0 dw: 624 dh: 352
[xv] dx: 0 dy: 0 dw: 624 dh: 352: -0.001  52/ 52 26% 12%  1.0% 4 0
[xv] dx: 0 dy: 0 dw: 624 dh: 352
SEEK: idx=4779  (a:4779 v:4815)  v.skip=13  a.skip=0/0.000  0% 4 0
fontconfig_select: (OffensiveBold, 200, 0) 
-> /home/ricardo/.mplayer/fonts/OFFEBB__.TTF, 0
Unable to parse: ".6}Niihama Prefectural Police"


MPlayer interrupted by signal 2 in module: filter_video


MPlayer interrupted by signal 2 in module: filter_video


-- 
RVM



More information about the MPlayer-users mailing list