[MPlayer-users] annoying mplayer crash related somehow to subtitles, menu & fifo
Roberto DeLeo
Roberto.Deleo at ca.infn.it
Wed Jan 30 19:40:46 CET 2008
Hi,
I noticed the following annoying problem with the most recent versions of
mplayer (I verified it happens on both mplayer 1.0rc2 and the latest svn
checkout [dev-SVN-r25878]): when I start the playback of a video with
subtitles through a FIFO with either a 'loadfile [filename]' of 'loadlist
[playlist]' *and* mplayer has been run with the '-menu' option on, then
mplayer crashes when it tries to visualize the very first lines of the
subs claiming that the lines are too long.
Note that the very same video with the very same subs is played with no
trouble whatsoever if I start the playback directly from the command line,
e.g. simply with 'mplayer -menu [filename]', or even if I start it through
a FIFO provided that -- in this last case -- I do not use the '-menu'
option when I run mplayer. In short, it seems some odd destructive
interaction between menu, subs and fifo.
In case it can be of any help I am attaching a trivial subtitle file that
is enough to make mplayer crash and the log of one of these crashes -- I
first play test.avi for a few secs and the playback works perfectly, then
I call the very same file through a fifo with the 'loadfile test.avi'
instruction and it crashes within 2 secs, i.e. as soon as the subs show
up.
BTW, I'm sure that this was not happening in mplayer 0.92 but I've been
quite busy since mplayer 1.0* releases started getting out and so I have
no idea when this bug appeared.
Any help in fixing this bug would be greatly appreciated!
Thanks,
Roberto De Leo
-------------- next part --------------
MPlayer dev-SVN-r25878-4.1.2 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(TM) MP 1700+ (Family: 6, Model: 6, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
get_path('codecs.conf') -> '/root/.mplayer/codecs.conf'
Reading /root/.mplayer/codecs.conf: 115 audio & 237 video codecs
Configuration: --enable-menu --prefix=/usr/local/mplayer-27Jan08 --disable-dvdnav
CommandLine: '-menu' '-menu-cfg' '/usr/local/src/mplayer-27Jan08/etc/menu.conf' '-input' 'file=/root/mp_fifo' 'test.avi' '-quiet' '-v'
init_freetype
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/mplayer-27Jan08/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/root/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
Parsing input config file /root/.mplayer/input.conf
Input config file /root/.mplayer/input.conf parsed: 82 binds
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
[libmenu] got keybinding element 275 UP=>[menu up].
[libmenu] got keybinding element 274 DOWN=>[menu down].
[libmenu] got keybinding element 273 LEFT=>[menu left].
[libmenu] got keybinding element 272 RIGHT=>[menu right].
[libmenu] got keybinding element 13 ENTER=>[menu ok].
[libmenu] got keybinding element 263 ESC=>[menu cancel].
[libmenu] got keybinding element 259 HOME=>[menu home].
[libmenu] got keybinding element 260 END=>[menu end].
[libmenu] got keybinding element 261 PGUP=>[menu pageup].
[libmenu] got keybinding element 262 PGDWN=>[menu pagedown].
[libmenu] got keybinding element 387 JOY_UP=>[menu up].
[libmenu] got keybinding element 386 JOY_DOWN=>[menu down].
[libmenu] got keybinding element 385 JOY_LEFT=>[menu left].
[libmenu] got keybinding element 384 JOY_RIGHT=>[menu right].
[libmenu] got keybinding element 404 JOY_BTN0=>[menu ok].
[libmenu] got keybinding element 405 JOY_BTN1=>[menu cancel].
[libmenu] got keybinding element 1288 AR_VUP=>[menu up].
[libmenu] got keybinding element 1289 AR_VDOWN=>[menu down].
[libmenu] got keybinding element 1284 AR_PREV=>[menu left].
[libmenu] got keybinding element 1282 AR_NEXT=>[menu right].
[libmenu] got keybinding element 1280 AR_PLAY=>[menu ok].
[libmenu] got keybinding element 1286 AR_MENU=>[menu cancel].
[libmenu] got keybinding element 1285 AR_PREV_HOLD=>[menu home].
[libmenu] got keybinding element 1283 AR_NEXT_HOLD=>[menu end].
[libmenu] got keybinding element 512 MOUSE_BTN0=>[menu click].
[libmenu] got keybinding element 514 MOUSE_BTN2=>[menu cancel].
[libmenu] got keybinding element 1284 AR_PREV=>[menu pageup].
[libmenu] got keybinding element 1282 AR_NEXT=>[menu pagedown].
[libmenu] got keybinding element 256 BS=>[menu left].
[libmenu] got keybinding element 1284 AR_PREV=>[menu left].
[libmenu] got keybinding element 1282 AR_NEXT=>[menu right].
[libmenu] got keybinding element 1284 AR_PREV=>[menu left].
[libmenu] got keybinding element 1282 AR_NEXT=>[menu right].
[libmenu] got keybinding element 1285 AR_PREV_HOLD=>[menu left].
[libmenu] got keybinding element 1283 AR_NEXT_HOLD=>[menu right].
Struct fs_cfg doesn't have any auto-close field
[MENU] bad attribute auto-close=yes in menu 'open_list' at line 57
Menu inited: /usr/local/src/mplayer-27Jan08/etc/menu.conf
get_path('test.avi.conf') -> '/root/.mplayer/test.avi.conf'
Playing test.avi.
get_path('sub/') -> '/root/.mplayer/sub/'
[file] File size is 366993612 bytes
STREAM: [file] test.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: (272) HAS_INDEX IS_INTERLEAVED
frames total: 61026 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: 23976000/1000000 = 23.976
Start: 0 Len: 61026
Suggested BufferSize: 95732
Quality 0
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 624
biHeight 352
biPlanes 1
biBitCount 24
biCompression 1145656920='XVID'
biSizeImage 658944
===========================
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: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 48000/1152 = 41.667
Start: 0 Len: 106054
Suggested BufferSize: 0
Quality 0
Sample size: 0
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 16000
Block align: 1152
bits/sample: 16
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=1152
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
==========================================================================
list_end=0x16A
hdr=Software size=16
Software : cant touch this
list_end=0x15B71644
Found movie at 0x800 - 0x15B71644
Reading INDEX block, 167080 chunks for 61026 frames (fpos=364320332).
AVI index offset: 0x0 (movi=0x800 idx0=0x800 idx1=0x1174)
Auto-selected AVI video ID = 0
Auto-selected AVI audio ID = 1
AVI: Searching for audio stream (id:1)
XXX initial v_pts=0.000 a_pos=0 (0.000)
AVI video size=321353468 (61026) audio size=41597664 (106054)
VIDEO: [XVID] 624x352 24bpp 23.976 fps 1010.0 kbps (123.3 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:624x352 fps:23.98 ftime:=0.0417
Clip info:
Software: cant touch this
get_path('sub/') -> '/root/.mplayer/sub/'
[file] File size is 177 bytes
STREAM: [file] ./test.srt
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
SUB: Detected subtitle file format: subviewer
SUB: Read 2 subtitles.
SUB: Added subtitle file (1): ./test.srt
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 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] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x0101fe).
[xv common] Maximum source image dimensions: 1024x1024
==========================================================================
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: Yes, 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: menu 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)
get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf'
Unicode font: 4105 glyphs.
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: 0x30323449 (I420) planar
Xvideo image format: 0x59565955 (UYVY) packed
using Xvideo port 73 for hw scaling
[xv] dx: 0 dy: 0 dw: 624 dh: 352
*** [menu] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
*** [menu] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
*** [vo] Exporting mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
[xv] dx: 1 dy: 22 dw: 624 dh: 352
*** [menu] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
EOF code: 2
Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: mp3lib
Uninit video: ffmpeg
get_path('test.avi.conf') -> '/root/.mplayer/test.avi.conf'
Playing test.avi.
get_path('sub/') -> '/root/.mplayer/sub/'
[file] File size is 366993612 bytes
STREAM: [file] test.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: (272) HAS_INDEX IS_INTERLEAVED
frames total: 61026 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: 23976000/1000000 = 23.976
Start: 0 Len: 61026
Suggested BufferSize: 95732
Quality 0
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 624
biHeight 352
biPlanes 1
biBitCount 24
biCompression 1145656920='XVID'
biSizeImage 658944
===========================
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: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 48000/1152 = 41.667
Start: 0 Len: 106054
Suggested BufferSize: 0
Quality 0
Sample size: 0
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 16000
Block align: 1152
bits/sample: 16
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=1152
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
==========================================================================
list_end=0x16A
hdr=Software size=16
Software : cant touch this
list_end=0x15B71644
Found movie at 0x800 - 0x15B71644
Reading INDEX block, 167080 chunks for 61026 frames (fpos=364320332).
AVI index offset: 0x0 (movi=0x800 idx0=0x800 idx1=0x1174)
Auto-selected AVI video ID = 0
Auto-selected AVI audio ID = 1
AVI: Searching for audio stream (id:1)
XXX initial v_pts=0.000 a_pos=0 (0.000)
AVI video size=321353468 (61026) audio size=41597664 (106054)
VIDEO: [XVID] 624x352 24bpp 23.976 fps 1010.0 kbps (123.3 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:624x352 fps:23.98 ftime:=0.0417
Clip info:
Software: cant touch this
get_path('sub/') -> '/root/.mplayer/sub/'
[file] File size is 177 bytes
STREAM: [file] ./test.srt
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
SUB: Detected subtitle file format: subviewer
SUB: Read 2 subtitles.
SUB: Added subtitle file (1): ./test.srt
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x0101fe).
[xv common] Maximum source image dimensions: 1024x1024
==========================================================================
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: Yes, 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: menu 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)
get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf'
Unicode font: 4105 glyphs.
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: 0x30323449 (I420) planar
Xvideo image format: 0x59565955 (UYVY) packed
using Xvideo port 73 for hw scaling
[xv] dx: 0 dy: 0 dw: 624 dh: 352
*** [menu] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
[xv] dx: 1 dy: 22 dw: 624 dh: 352
*** [menu] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
*** [vo] Exporting mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
*** [menu] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
Subtitle word 'Tes]' too long!
Subtitle word 'est one two three four five six sev' too long!
MPlayer interrupted by signal 11 in module: filter_video
- MPlayer crashed by bad usage of CPU/FPU/RAM.
Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
gcc version. If you think it's MPlayer's fault, please read
DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
won't help unless you provide this information when reporting a possible bug.
-------------- next part --------------
1
00:00:02,234 --> 00:00:05,067
[Tes]
Test one two three four five six sev
2
00:00:06,137 --> 00:00:09,435
Testing subtitles bug T
Testing subtitles bug Testing sub
More information about the MPlayer-users
mailing list