[MPlayer-users] DVD subtitles

Lubomir Blaha lubomir.blaha at sofis.cz
Thu Jun 20 16:57:01 CEST 2002


Hi all,
I have little trouble with subtitles on DVD Animal. Some subtitles are lost
(not shown) without any warnings, some with "SPUasm: invalid fragment".
Subtitleripper (http://subtitleripper.sourceforge.net) whitch have similar
spudec.c works fine. So I turn on debug output and I think that in Mplayer is
problem with filling spu->packet_offset (every packet starts with offset=2019
and then is corrected to right value), in subtitleripper packet starts with
offset=size. I'll do some tests but probably I'm not able to solve the problem
right way. :(

Mplayer output:
SPUtest: x=0 y=2217 off=2019 size=2248
SPUtest: x=0 y=2217 off=2248 size=2248
SPUtest: x=2217 y=2241 off=2248 size=2248
SPUtest: x=2241 y=2241 off=2248 size=2248
SPUgot: off=2248  size=2248 
date=0
cmd=3  Palette 11, 10, 9, 8
cmd=4  Alpha 15, 15, 15, 0
cmd=5  Coords  col: 178 - 537  row: 494 - 529  (360x35)
cmd=6  Graphic offset 1: 4  offset 2: 1132
cmd=1  Start display!
date=247808
cmd=2  Stop display!
SPUtest: x=0 y=3729 off=2019 size=3760
SPUtest: x=0 y=3729 off=3760 size=3760
SPUtest: x=3729 y=3753 off=3760 size=3760
SPUtest: x=3753 y=3753 off=3760 size=3760
SPUgot: off=3760  size=3760 
date=0
cmd=3  Palette 11, 10, 9, 8
cmd=4  Alpha 15, 15, 15, 0
cmd=5  Coords  col: 198 - 517  row: 446 - 529  (320x83)
cmd=6  Graphic offset 1: 4  offset 2: 1906
cmd=1  Start display!
date=254976
cmd=2  Stop display!

//this is normally not shown (SPUasm: invalid fragment), I was modify line 454
if (spu->packet_offset == spu->packet_size){
to
if (spu->packet_offset <= spu->packet_size){

SPUtest: x=0 y=1990 off=2019 size=2020
SPUtest: x=1990 y=2014 off=2019 size=2020
SPUtest: x=2014 y=2014 off=2019 size=2020
SPUgot: off=2019  size=2020 
date=0
cmd=3  Palette 11, 10, 9, 8
cmd=4  Alpha 15, 15, 15, 0
cmd=5  Coords  col: 224 - 491  row: 446 - 529  (268x83)
cmd=6  Graphic offset 1: 4  offset 2: 1011
cmd=1  Start display!
date=215040
cmd=2  Stop display!

Subtitleripper (same packets)
SPUtest: x=0 y=2217 off=2248 size=2248
SPUtest: x=2217 y=2241 off=2248 size=2248
SPUtest: x=2241 y=2241 off=2248 size=2248
SPUgot: off=2248  size=2248 
Palette 11, 10, 9, 8
Coords  col: 178 - 537  row: 494 - 529  (360x35)
Graphic offset 1: 4  offset 2: 1132
Start display!
Stop display!
SPUtest: x=0 y=3729 off=3760 size=3760
SPUtest: x=3729 y=3753 off=3760 size=3760
SPUtest: x=3753 y=3753 off=3760 size=3760
SPUgot: off=3760  size=3760 
Palette 11, 10, 9, 8
Coords  col: 198 - 517  row: 446 - 529  (320x83)
Graphic offset 1: 4  offset 2: 1906
Start display!
Stop display!
SPUtest: x=0 y=1990 off=2020 size=2020
SPUtest: x=1990 y=2014 off=2020 size=2020
SPUtest: x=2014 y=2014 off=2020 size=2020
SPUgot: off=2020  size=2020 
Palette 11, 10, 9, 8
Coords  col: 224 - 491  row: 446 - 529  (268x83)
Graphic offset 1: 4  offset 2: 1011
Start display!
Stop display!

Full Mplayer output in attachment.

System information:
RedHat 7.2
Kernel 2.4.18
libc-2.2.4
XFree86 Version 4.1.0
gcc version 3.1.1
GNU ld version 2.12.90.0.7 20020423
GNU assembler 2.12.90.0.7 20020423


Thanks for help

	Tritol



-- 
The box said "for Windows 98, Windows 2000 or better" so I installed Linux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer.log.gz
Type: application/x-gzip
Size: 10331 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20020620/e0334a1e/attachment.bin>


More information about the MPlayer-users mailing list