Opened 16 years ago
Closed 16 years ago
#1306 closed defect (wontfix)
Black vobsub subtitles
Reported by: | Owned by: | reimar | |
---|---|---|---|
Priority: | normal | Component: | core |
Version: | unspecified | Severity: | normal |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
Using mplayer svn, revision 27809
When playing certain avi files with .sub subtitles, they are black and badly visible.
This seems to be file-specific problem, I have other files that do play fine with that format of subs within mplayer.
However all of them plays fine in other programs like vlc.
Log:
http://pastebin.com/m501f286c
GNU ld (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision 135036] (SUSE Linux)
Linux linux 2.6.26-zen2-tuned #2 PREEMPT Mon Oct 20 00:23:28 CEST 2008 i686 athlon i386 GNU/Linux
GNU assembler (GNU Binutils; openSUSE 11.0) 2.18.50.20080409-11.1
Copyright 2007 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `i586-suse-linux'.
AMD Athlon(tm) 64 Processor 2800+
Nvidia 7600GT with 177.80
Change History (3)
comment:1 by , 16 years ago
Summary: | Black .sub subtitles → Black vobsub subtitles |
---|
comment:2 by , 16 years ago
Thank you for your response!
You are right - there is .idx file beside and looking into it I found the answer. Palette was already defined, however there was a line after that:
# Custom colors (transp idxs and the four colors)
custom colors: ON, tridx: 1000, colors: 000000, ebe60a, 000000, 000000
which seems to override that palette, setting this to OFF caused subtitles to turn white.
I guess only mplayer was corretly behaving, other programs were in fact ignoring it, so I assumed it's mplayer problem.
1:0 for mplayer and thanks for your explanation!
VobSub are bitmap subtitles with a separate palette.
MPlayer tries to select a default one (and other programs probably another one), but that will often be wrong.
You need an .ifo file with a "palette: " line for it to work correctly.
You can try
palette: 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff
and you should get all-white subs. Replace with 0x0 as appropriate.
If it does not work, uploading a sample file would help.
And patches to improve documentation on this are welcome.