[MPlayer-users] Subtitles too early

Gianluca Interlandi gianluca at bioc.unizh.ch
Tue May 24 19:20:12 CEST 2005


Hi!

I'm using mplayer-1.0pre7 to watch Star Wars DVD with english subtitles:

	mplayer dvd://1 -sid 0

The subtitles appear about 2 sec too early and disappear about 2 sec too
early (i.e. if I use the option "-subdelay 2" it is fine). Exactly the
same happens if I use mplayer-1.0pre7 under windows. This problem doesn't
occur if I use version "mplayer-0.90".

I include here the output of mplayer-1.0pre7 (quite long, sorry):

MPlayer 1.0pre7-2.95.3 (C) 2000-2005 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE


CommandLine: '-v' 'dvd://1' '-sid' '0'
get_path('font/font.desc') -> '/home/gianluca/.mplayer/font/font.desc'
font: can't open file: /home/gianluca/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (233 
chars)
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/gianluca/.mplayer/input.conf'
Can't open input config file /home/gianluca/.mplayer/input.conf: No such 
file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such 
file or directory
Falling back on default (hardcoded) input config
get_path('1.conf') -> '/home/gianluca/.mplayer/1.conf'
Playing dvd://1.
get_path('DVDKeys') -> '/home/gianluca/.mplayer/DVDKeys'
Reading disc structure, please wait...
There are 25 titles on this DVD.
There are 51 chapters in this DVD title.
There are 2 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 (5.1) language: de aid: 129
[open] audio stream: 2 audio format: ac3 (stereo) language: en aid: 130
[open] number of audio channels on disk: 3.
[open] subtitle ( sid ): 0 language: en
[open] subtitle ( sid ): 1 language: de
[open] subtitle ( sid ): 2 language: de
[open] subtitle ( sid ): 3 language: en
[open] subtitle ( sid ): 4 language: en
[open] subtitle ( sid ): 5 language: de
[open] number of subtitles on disk: 6
DVD start cell: 0  pack: 0x0-0x1A73
DVD start=0 end=3080412
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x1A73
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-0x1A73
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 68508, FOUND 47, packet_size= 0, SEEMS A TS? 0
DVD Seek! lba=0x21  cell=0  packs: 0x0-0x1A73
Angle-seek synced by cell/vob IDN search!
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x1A73
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
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=0x2
dvd_next_cell: next3=0x3
dvd_next_cell: next1=0x3
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_next_cell: next1=0x1C
dvd_next_cell: next2=0x1C
dvd_next_cell: next3=0x1D
dvd_next_cell: next1=0x1D
dvd_next_cell: next2=0x1D
dvd_next_cell: next3=0x1E
dvd_next_cell: next1=0x1E
dvd_next_cell: next2=0x1E
dvd_next_cell: next3=0x1F
dvd_next_cell: next1=0x1F
dvd_next_cell: next2=0x1F
dvd_next_cell: next3=0x20
dvd_next_cell: next1=0x20
dvd_next_cell: next2=0x20
dvd_next_cell: next3=0x21
dvd_next_cell: next1=0x21
dvd_next_cell: next2=0x21
dvd_next_cell: next3=0x22
dvd_next_cell: next1=0x22
dvd_next_cell: next2=0x22
dvd_next_cell: next3=0x23
dvd_next_cell: next1=0x23
dvd_next_cell: next2=0x23
dvd_next_cell: next3=0x24
dvd_next_cell: next1=0x24
dvd_next_cell: next2=0x24
dvd_next_cell: next3=0x25
dvd_next_cell: next1=0x25
dvd_next_cell: next2=0x25
dvd_next_cell: next3=0x26
dvd_next_cell: next1=0x26
dvd_next_cell: next2=0x26
dvd_next_cell: next3=0x27
dvd_next_cell: next1=0x27
dvd_next_cell: next2=0x27
dvd_next_cell: next3=0x28
dvd_next_cell: next1=0x28
dvd_next_cell: next2=0x28
dvd_next_cell: next3=0x29
DVD Seek! lba=0x177FF3  cell=41  packs: 0x172A90-0x180175
Angle-seek synced by cell/vob IDN search!
==> Found subtitle: 0
==> Found subtitle: 1
==> Found audio stream: 128
==> Found audio stream: 129
==> Found audio stream: 130
==> Found subtitle: 2
==> Found subtitle: 3
dvd_next_cell: next1=0x0
dvd_next_cell: next2=0x0
dvd_next_cell: next3=0x1
dvd_next_cell: next1=0x1
dvd_next_cell: next2=0x2
dvd_next_cell: next3=0x3
dvd_next_cell: next1=0x3
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_next_cell: next1=0x1C
dvd_next_cell: next2=0x1C
dvd_next_cell: next3=0x1D
dvd_next_cell: next1=0x1D
dvd_next_cell: next2=0x1D
dvd_next_cell: next3=0x1E
dvd_next_cell: next1=0x1E
dvd_next_cell: next2=0x1E
dvd_next_cell: next3=0x1F
dvd_next_cell: next1=0x1F
dvd_next_cell: next2=0x1F
dvd_next_cell: next3=0x20
dvd_next_cell: next1=0x20
dvd_next_cell: next2=0x20
dvd_next_cell: next3=0x21
dvd_next_cell: next1=0x21
dvd_next_cell: next2=0x21
dvd_next_cell: next3=0x22
dvd_next_cell: next1=0x22
dvd_next_cell: next2=0x22
dvd_next_cell: next3=0x23
dvd_next_cell: next1=0x23
dvd_next_cell: next2=0x23
dvd_next_cell: next3=0x24
dvd_next_cell: next1=0x24
dvd_next_cell: next2=0x24
dvd_next_cell: next3=0x25
dvd_next_cell: next1=0x25
dvd_next_cell: next2=0x25
dvd_next_cell: next3=0x26
dvd_next_cell: next1=0x26
dvd_next_cell: next2=0x26
dvd_next_cell: next3=0x27
dvd_next_cell: next1=0x27
dvd_next_cell: next2=0x27
dvd_next_cell: next3=0x28
dvd_next_cell: next1=0x28
dvd_next_cell: next2=0x28
dvd_next_cell: next3=0x29
dvd_next_cell: next1=0x29
dvd_next_cell: next2=0x29
dvd_next_cell: next3=0x2A
dvd_next_cell: next1=0x2A
dvd_next_cell: next2=0x2A
dvd_next_cell: next3=0x2B
dvd_next_cell: next1=0x2B
dvd_next_cell: next2=0x2B
dvd_next_cell: next3=0x2C
dvd_next_cell: next1=0x2C
dvd_next_cell: next2=0x2C
dvd_next_cell: next3=0x2D
dvd_next_cell: next1=0x2D
dvd_next_cell: next2=0x2D
dvd_next_cell: next3=0x2E
dvd_next_cell: next1=0x2E
dvd_next_cell: next2=0x2E
dvd_next_cell: next3=0x2F
dvd_next_cell: next1=0x2F
dvd_next_cell: next2=0x2F
dvd_next_cell: next3=0x30
dvd_next_cell: next1=0x30
dvd_next_cell: next2=0x30
dvd_next_cell: next3=0x31
dvd_next_cell: next1=0x31
dvd_next_cell: next2=0x31
dvd_next_cell: next3=0x32
dvd_next_cell: next1=0x32
dvd_next_cell: next2=0x32
dvd_next_cell: next3=0x33
dvd_next_cell: next1=0x33
dvd_next_cell: next2=0x33
dvd_next_cell: next3=0x34
dvd_next_cell: next1=0x34
dvd_next_cell: next2=0x34
dvd_next_cell: next3=0x35
dvd_next_cell: next1=0x35
dvd_next_cell: next2=0x35
dvd_next_cell: next3=0x36
dvd_next_cell: next1=0x36
dvd_next_cell: next2=0x36
dvd_next_cell: next3=0x37
dvd_next_cell: next1=0x37
dvd_next_cell: next2=0x37
dvd_next_cell: next3=0x38
dvd_next_cell: next1=0x38
dvd_next_cell: next2=0x38
dvd_next_cell: next3=0x39
dvd_next_cell: next1=0x39
dvd_next_cell: next2=0x39
dvd_next_cell: next3=0x3A
dvd_next_cell: next1=0x3A
dvd_next_cell: next2=0x3A
dvd_next_cell: next3=0x3B
dvd_next_cell: next1=0x3B
dvd_next_cell: next2=0x3B
dvd_next_cell: next3=0x3C
dvd_next_cell: next1=0x3C
dvd_next_cell: next2=0x3C
dvd_next_cell: next3=0x3D
dvd_next_cell: next1=0x3D
dvd_next_cell: next2=0x3D
dvd_next_cell: next3=0x3E
dvd_next_cell: next1=0x3E
dvd_next_cell: next2=0x3E
dvd_next_cell: next3=0x3F
dvd_next_cell: next1=0x3F
dvd_next_cell: next2=0x3F
dvd_next_cell: next3=0x40
dvd_next_cell: next1=0x40
dvd_next_cell: next2=0x40
dvd_next_cell: next3=0x41
dvd_next_cell: next1=0x41
dvd_next_cell: next2=0x41
dvd_next_cell: next3=0x42
dvd_next_cell: next1=0x42
dvd_next_cell: next2=0x42
dvd_next_cell: next3=0x43
dvd_next_cell: next1=0x43
dvd_next_cell: next2=0x43
dvd_next_cell: next3=0x44
DVD Seek! lba=0x2EFFE7  cell=68  packs: 0x2CFAE3-0x2EFFFD
dvd_next_cell: next1=0x44
dvd_next_cell: next2=0x44
dvd_next_cell: next3=0x45
DVD next cell: 69  pack: 0x2EFFFE-0x2F00DC
Angle-seek synced by cell/vob IDN search!
--- END OF CELL !!! ---
dvd_next_cell: next1=0x45
dvd_next_cell: next2=0x45
MPEG Stream reached EOF
ds_fill_buffer: EOF reached (stream: video)
DVD Seek! lba=0x0  cell=0  packs: 0x0-0x1A73
Angle-seek synced by cell/vob IDN search!
MPEG-PS file format detected.
==> Found subtitle: 6
==> Found subtitle: 7
==> Found subtitle: 4
==> Found subtitle: 5
==> Found subtitle: 8
==> Found subtitle: 9
==> Found subtitle: 10
==> Found subtitle: 11
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/gianluca/.mplayer/sub/'
get_path('default.sub') -> '/home/gianluca/.mplayer/default.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, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
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 1400x1050 with depth 24 and 32 bpp (":0" => local 
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours STAYS_ON_TOP X atoms
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x0101fe).
==========================================================================
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/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:   2/2  (65536 bytes/frag)  free: 131072
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...
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: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
Xvideo image format: 0x35315652 (RV15) packed
Xvideo image format: 0x36315652 (RV16) packed
Xvideo image format: 0x31313259 (Y211) packed
using Xvideo port 42 for hw scaling
[xv] dx: 0 dy: 0 dw: 1024 dh: 576
*** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
[xv] dx: 0 dy: 0 dw: 1024 dh: 576
*** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
*** [vo] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes
Uninit audio filters... 0.035 ct:  0.034  10/ 10 ??% ??% ??,?% 1 0
[libaf] Removing filter dummy
uninit audio: liba52
uninit video: libmpeg2
vo: uninit ...

Exiting... (Quit)


Thanks for your help!

Gianluca

-----------------------------------------------------
Gianluca Interlandi gianluca at bioc.unizh.ch
                    +41 (0) 1 635 55 93
                    +41 (0)79 655 73 35
                    http://biocroma.unizh.ch/gianluca/

PhD-Student of the Department of Biochemistry
at the University of Zurich Irchel, Switzerland
----------------------------------------------------- 




More information about the MPlayer-users mailing list