[MPlayer-users] Re: MPlayer not able to show all DVD subtitles

Joonas Koivunen joonas.koivunen at gmail.com
Mon Mar 21 09:27:08 CET 2005


On Mon, 21 Mar 2005 02:22:17 -0500, The Wanderer
<inverseparadox at comcast.net> wrote:
> It would be easier to tell whether or not we can help you if you'd
> provide enough information - specifically, the bare minimum requirement
> for any non-compiling-related problem report: the exact command line you
> used and the exact (complete! not snipped!) text output. In this case,
> I'd probably want to see the output of 'mplayer -v dvd://1' first.

Oki then...
% mplayer dvd://1 -slang fi
MPlayer dev-CVS-050319-15:02-3.3.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE



CommandLine: '-v' 'dvd://1' '-slang' 'fi'
init_freetype
/usr/X11R6/lib/fonts/TTF/Vera.ttf doesn't look like a font
description, ignoring.
Cannot load font: /usr/X11R6/lib/fonts/TTF/Vera.ttf
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your
system startup scripts.
Using nanosleep() timing
get_path('input.conf') -> '/home/rzei/.mplayer/input.conf'
Can't open input config file /home/rzei/.mplayer/input.conf: No such
file or directory
Can't open input config file
/home/rzei/mplayer/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('1.conf') -> '/home/rzei/.mplayer/1.conf'
Playing dvd://1.
get_path('DVDKeys') -> '/home/rzei/.mplayer/DVDKeys'
Reading disc structure, please wait...
There are 22 titles on this DVD.
There are 29 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
[open] audio stream: 0 audio format: ac3 (stereo) language: en aid: 128
[open] audio stream: 1 audio format: ac3 (5.1) language: en aid: 129
[open] number of audio channels on disk: 2.
[open] subtitle ( sid ): 0 language: sv
[open] subtitle ( sid ): 1 language: da
[open] subtitle ( sid ): 2 language: no
[open] subtitle ( sid ): 3 language: fi
[open] number of subtitles on disk: 4
DVD start cell: 0  pack: 0x0-0xE703
DVD start=0 end=2874539
Selected DVD subtitle channel: 3 language: fi
DVD Seek! lba=0x0  cell=0  packs: 0x0-0xE703
Angle-seek synced by cell/vob IDN search!
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for Nullsoft Streaming Video
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename dvd://1 ext: (null)
Checking for MOV
Checking for VIVO
header block 1 size: 0
DVD Seek! lba=0x0  cell=0  packs: 0x0-0xE703
Angle-seek synced by cell/vob IDN search!
AVS: avs_check_file - attempting to open file dvd://1
AVS: File is too big, aborting...
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 77997, FOUND 47, packet_size= 0, SEEMS A TS? 0
DVD Seek! lba=0x26  cell=0  packs: 0x0-0xE703
Angle-seek synced by cell/vob IDN search!
DVD Seek! lba=0x0  cell=0  packs: 0x0-0xE703
Angle-seek synced by cell/vob IDN search!
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851740
LMLM4 Stream Format not found
system stream synced at 0xD (0)!
==> Found video stream: 0
dvd_next_cell: next1=0x0
dvd_next_cell: next2=0x0
dvd_next_cell: next3=0x1
dvd_next_cell: next1=0x1
dvd_next_cell: next2=0x1
dvd_next_cell: next3=0x2
dvd_next_cell: next1=0x2
dvd_next_cell: next2=0x2
dvd_next_cell: next3=0x3
dvd_next_cell: next1=0x3
dvd_next_cell: next2=0x3
dvd_next_cell: next3=0x4
dvd_next_cell: next1=0x4
dvd_next_cell: next2=0x4
dvd_next_cell: next3=0x5
dvd_next_cell: next1=0x5
dvd_next_cell: next2=0x5
dvd_next_cell: next3=0x6
dvd_next_cell: next1=0x6
dvd_next_cell: next2=0x6
dvd_next_cell: next3=0x7
dvd_next_cell: next1=0x7
dvd_next_cell: next2=0x7
dvd_next_cell: next3=0x8
dvd_next_cell: next1=0x8
dvd_next_cell: next2=0x8
dvd_next_cell: next3=0x9
dvd_next_cell: next1=0x9
dvd_next_cell: next2=0x9
dvd_next_cell: next3=0xA
dvd_next_cell: next1=0xA
dvd_next_cell: next2=0xA
dvd_next_cell: next3=0xB
dvd_next_cell: next1=0xB
dvd_next_cell: next2=0xB
dvd_next_cell: next3=0xC
dvd_next_cell: next1=0xC
dvd_next_cell: next2=0xC
dvd_next_cell: next3=0xD
dvd_next_cell: next1=0xD
dvd_next_cell: next2=0xD
dvd_next_cell: next3=0xE
DVD Seek! lba=0x15EDDB  cell=14  packs: 0x136408-0x16FB25
Angle-seek synced by cell/vob IDN search!
==> Found audio stream: 128
==> Found audio stream: 129
==> Found subtitle: 7
==> Found subtitle: 6
dvd_next_cell: next1=0x0
dvd_next_cell: next2=0x0
dvd_next_cell: next3=0x1
dvd_next_cell: next1=0x1
dvd_next_cell: next2=0x1
dvd_next_cell: next3=0x2
dvd_next_cell: next1=0x2
dvd_next_cell: next2=0x2
dvd_next_cell: next3=0x3
dvd_next_cell: next1=0x3
dvd_next_cell: next2=0x3
dvd_next_cell: next3=0x4
dvd_next_cell: next1=0x4
dvd_next_cell: next2=0x4
dvd_next_cell: next3=0x5
dvd_next_cell: next1=0x5
dvd_next_cell: next2=0x5
dvd_next_cell: next3=0x6
dvd_next_cell: next1=0x6
dvd_next_cell: next2=0x6
dvd_next_cell: next3=0x7
dvd_next_cell: next1=0x7
dvd_next_cell: next2=0x7
dvd_next_cell: next3=0x8
dvd_next_cell: next1=0x8
dvd_next_cell: next2=0x8
dvd_next_cell: next3=0x9
dvd_next_cell: next1=0x9
dvd_next_cell: next2=0x9
dvd_next_cell: next3=0xA
dvd_next_cell: next1=0xA
dvd_next_cell: next2=0xA
dvd_next_cell: next3=0xB
dvd_next_cell: next1=0xB
dvd_next_cell: next2=0xB
dvd_next_cell: next3=0xC
dvd_next_cell: next1=0xC
dvd_next_cell: next2=0xC
dvd_next_cell: next3=0xD
dvd_next_cell: next1=0xD
dvd_next_cell: next2=0xD
dvd_next_cell: next3=0xE
dvd_next_cell: next1=0xE
dvd_next_cell: next2=0xE
dvd_next_cell: next3=0xF
dvd_next_cell: next1=0xF
dvd_next_cell: next2=0xF
dvd_next_cell: next3=0x10
dvd_next_cell: next1=0x10
dvd_next_cell: next2=0x10
dvd_next_cell: next3=0x11
dvd_next_cell: next1=0x11
dvd_next_cell: next2=0x11
dvd_next_cell: next3=0x12
dvd_next_cell: next1=0x12
dvd_next_cell: next2=0x12
dvd_next_cell: next3=0x13
dvd_next_cell: next1=0x13
dvd_next_cell: next2=0x13
dvd_next_cell: next3=0x14
dvd_next_cell: next1=0x14
dvd_next_cell: next2=0x14
dvd_next_cell: next3=0x15
dvd_next_cell: next1=0x15
dvd_next_cell: next2=0x15
dvd_next_cell: next3=0x16
dvd_next_cell: next1=0x16
dvd_next_cell: next2=0x16
dvd_next_cell: next3=0x17
dvd_next_cell: next1=0x17
dvd_next_cell: next2=0x17
dvd_next_cell: next3=0x18
dvd_next_cell: next1=0x18
dvd_next_cell: next2=0x18
dvd_next_cell: next3=0x19
dvd_next_cell: next1=0x19
dvd_next_cell: next2=0x19
dvd_next_cell: next3=0x1A
dvd_next_cell: next1=0x1A
dvd_next_cell: next2=0x1A
dvd_next_cell: next3=0x1B
dvd_next_cell: next1=0x1B
dvd_next_cell: next2=0x1B
dvd_next_cell: next3=0x1C
DVD Seek! lba=0x2BDBB6  cell=28  packs: 0x2880E9-0x2BDC86
Angle-seek synced by cell/vob IDN search!
--- END OF CELL !!! ---
dvd_next_cell: next1=0x1C
dvd_next_cell: next2=0x1C
dvd_next_cell: next3=0x1D
DVD next cell: 29  pack: 0x2BDC87-0x2BDCAB
--- END OF CELL !!! ---
dvd_next_cell: next1=0x1D
dvd_next_cell: next2=0x1D
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
DVD Seek! lba=0x0  cell=0  packs: 0x0-0xE703
Angle-seek synced by cell/vob IDN search!
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/rzei/.mplayer/sub/'
get_path('default.sub') -> '/home/rzei/.mplayer/default.sub'
==========================================================================
Trying to force audio codec driver family ffmpeg...
Trying to force audio codec driver family ...
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: 2.0 (stereo)  48000 Hz  192.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0x2
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
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 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 (0x00001e).
==========================================================================
Trying to force video codec driver family ffmpeg...
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffmpeg2] vfm:ffmpeg (FFmpeg MPEG-2)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
AF_pre: 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 bps)
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...
[ffmpeg] aspect_ratio: 1.777778
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=0,'MPlayer',0x32315659)
VO: [xv] 720x576 => 1024x576 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: 0x59565955 (UYVY) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 69 for hw scaling
[xv] dx: 0 dy: 0 dw: 1024 dh: 614
*** [vo] Allocating (slices) mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
[xv] dx: 0 dy: 0 dw: 1024 dh: 614
*** [vo] Allocating (slices) mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
Unicode font: 255 glyphs.
*** [vo] Allocating (slices) mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
Uninit audio filters... 0.012 ct:  0.061  73/ 73 11%  0% 19.5% 5 0
[libaf] Removing filter dummy
uninit audio: liba52
uninit video: ffmpeg
vo: uninit ...

Exiting... (Quit)

So, mplayer thinks that there are finnish subtitles on sid 3, but
actually some swedish like are displayed instead. Again,
ogle/powerdvd/xine are able to find the correct channel for finnish
subtitles.

I have been trying to investigate this, and I think that in mplayer
libmpdemux/open.c those subtitle indexes are supposed to be one after
other (as in first second third etc.) which might be the case for well
authored dvd's, but as this isn't the first dvd I've encountered this
problem with, I think that it's a bug in mplayer.

I just actually found a workaround; in main/libmpdemux/open.c, if one
sets the total number of subtitle streams to 32 or 16 or whatever (in
this case I know from xine that finnish subtitles are at 6) and then
use mplayer dvd://1 -sid 6 then I get those finnish subtitles!

I have been staying up pretty late with this but hopefully the diff
below clears something up:
diff -u -3 -p -r1.102 open.c
--- open.c      27 Feb 2005 04:25:12 -0000      1.102
+++ open.c      21 Mar 2005 08:25:01 -0000
@@ -428,6 +428,7 @@ if(strncmp("dvd://",filename,6) == 0){
         }
         d->nr_of_subtitles++;
        }
+d->nr_of_subtitles=16;
      mp_msg(MSGT_OPEN,MSGL_V,"[open] number of subtitles on disk:
%d\n",d->nr_of_subtitles );
     }

But I think that this problem would need a better fix than that ugly
hack above :)

> Also, when replying, it's advisable to quote the previous post - even
> when replying to yourself; in this case, it would have kept the
> information you had reported previously right at hand, rather than
> requiring me to switch back and forth between messages to get an idea of
> what the situation is.
Point taken, it's just so easy to forget proper quoting with this
gmail thingy :)

> --
>        The Wanderer
-- 
-Joonas




More information about the MPlayer-users mailing list