[MPlayer-dev-eng] [PATCH] sub_select fix

Moritz Bunkus moritz at bunkus.org
Fri Sep 24 19:50:59 CEST 2004


Heya,

> Can you provide me a link to download SRT subs to test?

Attached to this file.

> Can you also provide a gdb backtrace?

Sure. I've attached the log from...

./mplayer -v -dvd-device /ftp/.rip/dvds/KILLBILL_VOL2/ -vo x11 -zoom \
-sub /ftp/.rip/mkv/samples/vsshort-en.srt dvd://1

(No, don't argue about the -vo please, this is my father's computer with
a very limited Linux setup.)

Here's the backtrace:

main (argc=10, argv=0xbffffb44) at mplayer.c:3752
3752              tmp = subdata->filename;
(gdb) bt
#0  main (argc=10, argv=0xbffffb44) at mplayer.c:3752

Not very long ;)

Some more details. It does ONLY happen when I hit the sub_select key
often enough to cycle through all available langauges, then to -1
(none), then ONCE AGAIN and it again is at -1 (none). If I leave out the
very last sub_select command (at the first -1 (none)) then the OSD
changes to the name of the external subtitle file, displays the entry
and does not crash.

The sources are mplayer's cvs from about 24 hours ago with only the
second patch from this thread applied.

Mosu

-- 
If Darl McBride was in charge, he'd probably make marriage
unconstitutional too, since clearly it de-emphasizes the commercial
nature of normal human interaction, and probably is a major impediment
to the commercial growth of prostitution. - Linus Torvalds
-------------- next part --------------
1
00:00:04,700 --> 00:00:06,736
where are you going so early?

2
00:00:06,900 --> 00:00:09,494
Don't record any more messages
on my alarm clock.

3
00:00:09,660 --> 00:00:11,252
why not?

4
00:00:11,420 --> 00:00:13,888
I'll start to think we're married
or something.

5
00:00:14,060 --> 00:00:15,732
Don't ever say that word.

6
00:00:15,900 --> 00:00:20,132
I'll never bring you chicken soup
and fuck your brains out again.

7
00:00:20,700 --> 00:00:25,774
- How's your cold?
- Still there. How about yours?

8
00:00:25,940 --> 00:00:29,649
- You definitely took my mind off it.
- Really?

9
00:00:30,540 --> 00:00:32,690
Yes!

10
00:00:39,420 --> 00:00:41,376
Juliana here.

11
00:00:41,540 --> 00:00:45,010
Hi, Rayna. I missed my audition,
I lost my head!

12
00:00:45,180 --> 00:00:46,977
Listen, I have to go.

13
00:00:47,140 --> 00:00:49,017
I'm with David.

14
00:00:52,740 --> 00:00:57,939
Help yourself to whatever you want.
Set the alarm before you go. And...

15
00:01:00,100 --> 00:01:01,738
You are the greatest.

16
00:01:02,540 --> 00:01:06,579
- Bye, honey!
- Bye, honey. I'll call you later.

17
00:01:06,740 --> 00:01:07,968
when?

18
00:01:09,060 --> 00:01:11,255
- When?
- Soon!

-------------- next part --------------
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale

MPlayer dev-CVS-040720-20:12-2.95.4 (C) 2000-2004 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 1667 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading config file /etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/mosu/.mplayer/config
Warning unknown option skin at line 6
Reading /home/mosu/.mplayer/codecs.conf: Can't open '/home/mosu/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' '-dvd-device' '/ftp/.rip/dvds/KILLBILL_VOL2/' '-vo' 'x11' '-zoom' '-sub' '/ftp/.rip/mkv/samples/vsshort-en.srt' 'dvd://1'
init_freetype
get_path('font/font.desc') -> '/home/mosu/.mplayer/font/font.desc'
font: can't open file: /home/mosu/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: Permission denied (it should be readable by the user.)
Using nanosleep() timing
get_path('input.conf') -> '/home/mosu/.mplayer/input.conf'
Can't open input config file /home/mosu/.mplayer/input.conf: No such file or directory
Can't open input config file /etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Connection refused
Failed to open LIRC support.
You will not be able to use your remote control.
get_path('1.conf') -> '/home/mosu/.mplayer/1.conf'

Playing dvd://1.
libdvdread: Couldn't find device name.
Reading disc structure, please wait...
get_path('DVDKeys') -> '/home/mosu/.mplayer/DVDKeys'
There are 5 titles on this DVD.
There are 20 chapters in this DVD title.
There are 1 angles in this DVD title.
get_path('DVDKeys') -> '/home/mosu/.mplayer/DVDKeys'
get_path('DVDKeys') -> '/home/mosu/.mplayer/DVDKeys'
get_path('DVDKeys') -> '/home/mosu/.mplayer/DVDKeys'
get_path('DVDKeys') -> '/home/mosu/.mplayer/DVDKeys'
get_path('DVDKeys') -> '/home/mosu/.mplayer/DVDKeys'
get_path('DVDKeys') -> '/home/mosu/.mplayer/DVDKeys'
get_path('DVDKeys') -> '/home/mosu/.mplayer/DVDKeys'
DVD successfully opened.
[open] audio stream: 0 audio format: ac3 (5.1) language: en aid: 128
[open] audio stream: 1 audio format: ac3 (5.1) language: de aid: 129
[open] audio stream: 2 audio format: dts (5.1) language: de aid: 138
[open] number of audio channels on disk: 3.
[open] subtitle ( sid ): 0 language: en
[open] subtitle ( sid ): 1 language: en
[open] subtitle ( sid ): 2 language: de
[open] subtitle ( sid ): 3 language: it
[open] subtitle ( sid ): 4 language: es
[open] subtitle ( sid ): 5 language: en
[open] subtitle ( sid ): 6 language: de
[open] number of subtitles on disk: 7
DVD start cell: 0  pack: 0x0-0x962E  
DVD start=0 end=3064100  
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x962E  
Angle-seek synced by cell/vob IDN search!  
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x855e680  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x855e680  
Checking for Nullsoft Streaming Video
DEMUXER: freeing demuxer at 0x855e680  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x855e680  
Checking for REAL
DEMUXER: freeing demuxer at 0x855e680  
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x855e680  
DEMUXER: freeing demuxer at 0x855f020  
DEMUXER: freeing demuxer at 0x855f020  
Searching demuxer type for filename dvd://1 ext: (null)
Checking for MOV
DEMUXER: freeing demuxer at 0x855f020  
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x855f020  
DEMUXER: freeing demuxer at 0x855f020  
DEMUXER: freeing demuxer at 0x855f020  
DEMUXER: freeing demuxer at 0x855f020  
DEMUXER: freeing demuxer at 0x855f020  
DEMUXER: freeing demuxer at 0x855f020  
DEMUXER: freeing demuxer at 0x855f020  
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x962E  
Angle-seek synced by cell/vob IDN search!  
Checking for PVA
DEMUXER: freeing demuxer at 0x855f020  
Checking for MPEG-TS...
TRIED UP TO POSITION 68962, FOUND 47, packet_size= 0, SEEMS A TS? 0
DVD Seek! lba=0x21  cell=0  packs: 0x0-0x962E  
Angle-seek synced by cell/vob IDN search!  
DEMUXER: freeing demuxer at 0x855f020  
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x962E  
Angle-seek synced by cell/vob IDN search!  
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851708
LMLM4 Stream Format not found
DEMUXER: freeing demuxer at 0x855f020  
system stream synced at 0xD (0)!
==> Found video stream: 0
MPEG-PS file format detected.
==> Found audio stream: 128
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  9801.6 kbps (1225.2 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
SUB: Detected subtitle file format: subviewer
SUB: Read 18 subtitles.
SUB: added subtitle file (1): /ftp/.rip/mkv/samples/vsshort-en.srt
get_path('sub/') -> '/home/mosu/.mplayer/sub/'
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
dec_audio: Allocating 3840 bytes for input buffer.
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer.
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0xA
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 56000->192000 (448.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
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 layers.
[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 LAYER FULLSCREEN ABOVE BELOW X atoms
Disabling DPMS
DPMSDisable stat: 1
==========================================================================
Trying to force video codec driver family 5...
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred csp: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[libaf] Adding filter dummy 
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps = 2
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int 
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
ao2: 48000 Hz  2 chans  Signed 16-bit (Little-Endian)
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Permission denied
Could not open/initialize audio device -> no sound.
Uninit audio filters...
[libaf] Removing filter dummy 
uninit audio: liba52
Audio: no sound
Freeing 0 unused audio chunks
Starting playback...
VDec: vo config request - 720 x 576 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (720x576->1024x576,flags=4,'MPlayer',0x32315659)
VO: [x11] 720x576 => 1024x576 Planar YV12  [zoom]
VO: Description: X11 ( XImage/Shm )
VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
Sharing memory.
SwScaler: using unscaled Planar YV12 -> BGRA special converter
*** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
V:   0.0    1   0%  0%  0.0% 0 0 0%
*** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
V:   0.3    2   0%  0%  0.0% 0 0 0%
get_path('subfont.ttf') -> '/home/mosu/.mplayer/subfont.ttf'
Unicode font: 1185 glyphs.
V:   0.3    3   0%  0%  0.0% 0 0 0%
*** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
V:   0.4    4   0%  0%  0.0% 0 0 0%
V:   0.4    5   0%  0%  0.0% 0 0 0%
V:   0.4    6   0%  0%  0.0% 0 0 0%
V:   0.5    7   0%  0%  0.0% 0 0 0%
V:   0.5    8   0%  0%  0.0% 0 0 0%
V:   0.6    9   0%  0%  0.0% 0 0 0%
V:   0.6   10   0%  0%  0.0% 0 0 0%
==> Found audio stream: 129
==> Found audio stream: 138
V:   0.6   11   0%  0%  0.0% 0 0 0%
V:   0.7   12   0%  0%  0.0% 0 0 0%
V:   0.7   13   0%  0%  0.0% 0 0 0%
V:   0.8   14  17% 49%  0.0% 0 0 0%
V:   0.8   15  17% 50%  0.0% 0 0 0%
V:   0.8   16  17% 50%  0.0% 0 0 0%
V:   0.9   17  16% 50%  0.0% 0 0 0%
V:   0.9   18  16% 50%  0.0% 0 0 0%
V:   1.0   19  16% 50%  0.0% 0 0 0%
V:   1.0   20  16% 50%  0.0% 0 0 0%
V:   1.0   21  16% 50%  0.0% 0 0 0%
V:   1.1   22  16% 50%  0.0% 0 0 0%
V:   1.1   23  16% 50%  0.0% 0 0 0%
V:   1.2   24  16% 50%  0.0% 0 0 0%
V:   1.2   25  16% 50%  0.0% 0 0 0%
V:   1.2   26  16% 50%  0.0% 0 0 0%
V:   1.3   27  16% 51%  0.0% 0 0 0%
V:   1.3   28  16% 51%  0.0% 0 0 0%
V:   1.4   29  16% 51%  0.0% 0 0 0%
V:   1.4   30  16% 50%  0.0% 0 0 0%
V:   1.4   31  16% 51%  0.0% 0 0 0%
V:   1.5   32  16% 51%  0.0% 0 0 0%
V:   1.5   33  16% 51%  0.0% 0 0 0%
V:   1.6   34  16% 51%  0.0% 0 0 0%
V:   1.6   35  16% 51%  0.0% 0 0 0%
V:   1.6   36  16% 51%  0.0% 0 0 0%
V:   1.7   37  16% 51%  0.0% 0 0 0%
V:   1.7   38  16% 51%  0.0% 0 0 0%
V:   1.8   39  16% 51%  0.0% 0 0 0%
V:   1.8   40  16% 51%  0.0% 0 0 0%
V:   1.8   41  16% 51%  0.0% 0 0 0%
V:   1.9   42  16% 51%  0.0% 0 0 0%
V:   1.9   43  16% 51%  0.0% 0 0 0%
V:   2.0   44  16% 51%  0.0% 0 0 0%
V:   2.0   45  16% 51%  0.0% 0 0 0%
V:   2.0   46  16% 51%  0.0% 0 0 0%
V:   2.1   47  16% 51%  0.0% 0 0 0%
V:   2.1   48  16% 50%  0.0% 0 0 0%
V:   2.2   49  16% 50%  0.0% 0 0 0%
V:   2.2   50  16% 50%  0.0% 0 0 0%
V:   2.2   51  16% 51%  0.0% 0 0 0%
V:   2.3   52  16% 50%  0.0% 0 0 0%
V:   2.3   53  16% 50%  0.0% 0 0 0%
V:   2.4   54  16% 50%  0.0% 0 0 0%
V:   2.4   55  16% 50%  0.0% 0 0 0%
V:   2.4   56  16% 50%  0.0% 0 0 0%
V:   2.5   57  16% 50%  0.0% 0 0 0%
V:   2.5   58  16% 50%  0.0% 0 0 0%
V:   2.6   59  16% 50%  0.0% 0 0 0%
V:   2.6   60  16% 50%  0.0% 0 0 0%
V:   2.6   61  16% 50%  0.0% 0 0 0%
V:   2.7   62  16% 50%  0.0% 0 0 0%
V:   2.7   63  16% 50%  0.0% 0 0 0%
V:   2.8   64  16% 50%  0.0% 0 0 0%
V:   2.8   65  16% 50%  0.0% 0 0 0%
V:   2.8   66  16% 50%  0.0% 0 0 0%
V:   2.9   67  16% 50%  0.0% 0 0 0%
V:   2.9   68  16% 50%  0.0% 0 0 0%
V:   3.0   69  16% 50%  0.0% 0 0 0%
V:   3.0   70  16% 50%  0.0% 0 0 0%
V:   3.0   71  16% 50%  0.0% 0 0 0%
V:   3.1   72  16% 50%  0.0% 0 0 0%
V:   3.1   73  16% 50%  0.0% 0 0 0%
V:   3.2   74  16% 50%  0.0% 0 0 0%
V:   3.2   75  16% 50%  0.0% 0 0 0%
V:   3.2   76  16% 50%  0.0% 0 0 0%
V:   3.3   77  16% 50%  0.0% 0 0 0%
V:   3.3   78  16% 50%  0.0% 0 0 0%
V:   3.4   79  16% 50%  0.0% 0 0 0%
V:   3.4   80  16% 50%  0.0% 0 0 0%
V:   3.4   81  16% 50%  0.0% 0 0 0%
V:   3.5   82  16% 50%  0.0% 0 0 0%
V:   3.5   83  16% 50%  0.0% 0 0 0%
V:   3.6   84  16% 50%  0.0% 0 0 0%
V:   3.6   85  16% 50%  0.0% 0 0 0%
V:   3.6   86  16% 50%  0.0% 0 0 0%
V:   3.7   87  16% 50%  0.0% 0 0 0%
V:   3.7   88  16% 50%  0.0% 0 0 0%
V:   3.8   89  16% 50%  0.0% 0 0 0%

MPlayer interrupted by signal 11 in module: key_events
- 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.
uninit video: libmpeg2
DEMUXER: freeing demuxer at 0x855f020  
DEMUXER: freeing sh_video at 0x8561a28  
DEMUXER: freeing sh_audio at 0x859d100  
DEMUXER: freeing sh_audio at 0x85b0198  
DEMUXER: freeing sh_audio at 0x85b0240  
Successfully enabled DPMS
vo: uninit ...


More information about the MPlayer-dev-eng mailing list