[MPlayer-users] subtitle problems

Malcolm mjhlists-mplayer at liminalflux.net
Tue Mar 22 03:30:16 CET 2005


> On Thu, Mar 17, 2005 at 12:15:16AM -0500, MJH wrote:
> >  Dominik 'Rathann' Mierzejewski <dominik at rangers.eu.org> wrote:
> > > > Yes, I've seen those. I've seen a couple DVD where such an odd
> > > > timestamp would come in the middle and show for example 00:00:00:001,
> > > > breaking all subs after it. Assuming mencoder read it correctly from
> > > > the DVD, it simply means that the DVD is badly mastered. Remove or
> > > > correct that first timestamp to a sane value and all will be fine.
> >
> > Removing the errant index entry did indeed remove the problem. There must
> > be a way to do that in code so you don't have to do it by hand though.

Apparently I spoke too soon. All I'm getting at the moment is one random 
subtitle that bears no relation to the dialogue. 

I'm ripping the subtitles with:

mencoder -vobsubout temp -sid 0 -slang en -nosound -ovc copy -o /dev/null 
dvd://4

Which gives a file that looks like:

# VobSub index file, v7 (do not modify this line!)
#
# Generated by MPlayer dev-CVS-050319-14:55-3.4.3
# See <URL:http://www.mplayerhq.hu/> for more information about MPlayer
# See <URL:http://vobsub.edensrising.com/> for more information about Vobsub
#
size: 720x480
palette: 101010, 2b2b2b, 101010, 101010, 7d7d7d, ebff0b, 0bb5ea, e5e5e5, 
ebff0b, 0d007f, 0ca20d, 7e2a0e, 0d637c, e5e5e5, d4ff0b, 101010
# ON: displays only forced subtitles, OFF: shows everything
forced subs: OFF

# Language index in use
langidx: 0

id: en, index: 0
timestamp: 00:41:17:041, filepos: 000000000
timestamp: 00:00:16:099, filepos: 000001000
timestamp: 00:00:17:834, filepos: 000002000
timestamp: 00:00:24:124, filepos: 000003000
timestamp: 00:00:30:113, filepos: 000004000
timestamp: 00:00:43:818, filepos: 000004800
timestamp: 00:00:48:415, filepos: 000005800
...


and I remove the errant timestamp.

playback with any of the following, results in a single out of place subtitle 
and then no further subtitles.

mplayer -vobsub temp -alang ja dvd://4
mplayer -vobsub temp -vobsubid 0 -alang ja dvd://4
mplayer -vobsub temp -vobsubid 0 -alang ja -slang en dvd://4


with the following output (with -v):

any ideas?


MPlayer 1.0pre6-3.4.3 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices Athlon Thunderbird (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with 
--disable-runtime-cpudetection.


77 audio & 188 video codecs
CommandLine: '-vobsub' 'temp' '-vobsubid' '0' '-alang' 'ja' 'dvd://4' '-v'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: No such file or directory (it should be readable by 
the user.)
Using nanosleep() timing
get_path('input.conf') -> '/home/mjh/.mplayer/input.conf'
Can't open input config file /home/mjh/.mplayer/input.conf: No such file or 
directory
Parsing input config file /etc/mplayer/input.conf
Input config file /etc/mplayer/input.conf parsed: 59 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
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.
get_path('4.conf') -> '/home/mjh/.mplayer/4.conf'
Playing dvd://4.
VobSub: Can't open IFO file
[vobsub] subtitle (vobsubid): 0 language en
No matching VOBSUB language found!
get_path('DVDKeys') -> '/home/mjh/.mplayer/DVDKeys'
Reading disc structure, please wait...
There are 6 titles on this DVD.
There are 18 chapters in this DVD title.
There are 1 angles in this DVD title.
DVD successfully opened.
[open] audio stream: 0 audio format: ac3 (5.1) language: en aid: 128
[open] audio stream: 1 audio format: ac3 (stereo) language: en aid: 129
[open] audio stream: 2 audio format: ac3 (5.1) language: ja aid: 130
[open] audio stream: 3 audio format: ac3 (stereo) language: ja aid: 131
[open] number of audio channels on disk: 4.
[open] subtitle ( sid ): 0 language: en
[open] subtitle ( sid ): 1 language: en
[open] number of subtitles on disk: 2
DVD start cell: 0  pack: 0x0-0x9706
DVD start=0 end=1904903
Selected DVD audio channel: 130 language: ja
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:1630208
Cache fill: 19.43% (1630208 bytes)    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://4 ext: (null)
Checking for MOV
Checking for VIVO
header block 1 size: 0
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 67285, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851708
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 Seek! lba=0xE8809  cell=9  packs: 0xD729E-0x112A16
Angle-seek synced by cell/vob IDN search!
==> Found audio stream: 129
==> Found audio stream: 131
==> Found audio stream: 128
==> Found audio stream: 130
==> Found subtitle: 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_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 Seek! lba=0x1D1012  cell=17  packs: 0x1D0E04-0x1D1107
Angle-seek synced by cell/vob IDN search!
--- END OF CELL !!! ---
dvd_next_cell: next1=0x11
dvd_next_cell: next2=0x11
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x9706
Angle-seek synced by cell/vob IDN search!
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO:  MPEG2  720x480  (aspect 2)  29.970 fps  7700.0 kbps (962.5 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
get_path('sub/') -> '/home/mjh/.mplayer/sub/'
get_path('default.sub') -> '/home/mjh/.mplayer/default.sub'
==========================================================================
Trying to force audio codec driver family libmad...
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 3DNowEx optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  384.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: 48000->192000 (384.0 kbit)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
X11 opening display: :0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":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
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (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: Device or resource 
busy
alsa-init: requested format: 48000 Hz, 2 channels, Signed 16-bit 
(Little-Endian)
alsa-init: compiled for ALSA-1.0.8rc1
alsa-init: setup for 1/2 channel(s)
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: default
alsa-init: pcm opend in block-mode
alsa-init: chunksize set to 1024
alsa-init: fragcount=16
alsa-init: got buffersize=65536
alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under developement
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps 
= 2
[dummy] Was reinitialized, rate=48000Hz, nch = 2, format = 0x00000001 and bps 
= 2
Starting playback...
alsa-space: free space = 65536, prepared --
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (720x480->720x540,flags=4,'MPlayer',0x32315659)
VO: [xv] 720x480 => 720x540 Planar YV12  [zoom]
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: 720 dh: 576
*** [vo] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
[xv] dx: 0 dy: 0 dw: 720 dh: 576
*** [vo] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
Unicode font: 255 glyphs..422 ct:  0.027   9/  9 ??% ??% ??,?% 9 0 90%
*** [vo] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes%
A:   4.6 V:   4.6 A-V: -0.009 ct:  0.052 135/132 38% 23%  4.4% 31 0 48%
demux_mpg: 24fps progressive NTSC content detected, switching framerate.
A:  13.6 V:  13.6 A-V:  0.031 ct:  0.055 349/346 33% 11%  3.5% 31 0 48%
demux_mpg: 30fps NTSC content detected, switching framerate.
Warning! FPS changed 23.976 -> 29.970  (-5.994000) [4]    3.5% 31 0 48%
A:  18.8 V:  18.8 A-V: -0.008 ct:  0.123 507/504 33% 12%  3.5% 31 0 49%

MPlayer interrupted by signal 2 in module: enable_cache
vo: x11 uninit called but X11 not inited..


MPlayer interrupted by signal 2 in module: decode_video
Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: liba52
uninit video: libmpeg2
alsa-uninit: pcm closed
vo: uninit ...








More information about the MPlayer-users mailing list