MPlayer fails to render subtitles with multiple character sets

Bug #124017 reported by Shawn Zhang
4
Affects Status Importance Assigned to Milestone
mplayer (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: mplayer

When playing ASS (advanced substation alpha) type subtitles that contain multiple character sets (e.g. Japanese + English), mplayer draws squares instead of characters for one of them. -ass and -embeddedfonts are enabled. This behavior is not present in svn mplayer. I can confirm this bug in all Ubuntu mplayers, including the one in Gusty at this time.

A screenshot is at: http://img511.imageshack.us/img511/1531/shot0001gx7.png

Revision history for this message
Shawn Zhang (zombie83p-deactivatedaccount) wrote :

I have attached an ASS file which triggers this bug.

Revision history for this message
Shawn Zhang (zombie83p-deactivatedaccount) wrote :

Oh, I forgot, all the fonts referenced by the file are attached to the video the subtitle is from, so no "you need more fonts" replies.

Revision history for this message
Dave (dave1234) wrote :

another instance of this bug, attached is a screenshot of the behavior and the rest--output of mplayer

$ cat ~/.mplayer/config
# Write your default config options here!
sid=0
ass=true
embeddedfonts=true
correct-pts=true

$ mplayer \[LuPerry\]_Sumomomo_Momomo_-_01_\(1280x720_x264\).\[F5CDB4ED\].mkv

MPlayer 2:1.0~rc1-0ubuntu9.1 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) D CPU 3.00GHz (Family: 15, Model: 4, Stepping: 4)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
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.

Playing [LuPerry]_Sumomomo_Momomo_-_01_(1280x720_x264).[F5CDB4ED].mkv.
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_MPEG/L3), -aid 0, -alang jpn
[mkv] Track ID 3: subtitles (S_TEXT/ASS), -sid 0, -slang eng
[mkv] Track ID 4: subtitles (S_TEXT/UTF8), -sid 1, -slang eng
[mkv] Will play video track 1
[mkv] Will display subtitle track 3
Matroska file format detected.
VIDEO: [avc1] 1280x720 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
[VO_3DFX] Unable to open /dev/3dfx.
[ass] auto-open
[ass] Init
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 1280 x 720 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
fontconfig: selected font family is not the requested one: 'DejaVu Sans' != 'MS ゴシック'
No bind found for key 'MOUSE_BTN0'. 0% 0 0
sending VFCTRL_SCREENSHOT!002 ct: -0.138 0/ 0 41% 9% 2.0% 0 0
A: 88.2 V: 88.2 A-V: -0.004 ct: -0.135 0/ 0 41% 10% 1.9% 0 0
Exiting... (Quit)

did attempt to copy all the fonts from my windows partition over--then ran "fc-cache -f -v" logged out and back

Revision history for this message
Shawn Zhang (zombie83p-deactivatedaccount) wrote :

fixed in MPlayer RC2. Request bug close.

Steven Harms (sharms)
Changed in mplayer:
status: New → Fix Released
Revision history for this message
danmiller0 (dan-miller) wrote :

I am new to Ubuntu, so forgive me if my verbiage is incorrect here and there. Also, I am not a programmer, so I don't have or know of other tricks. I am just trying to get my small Ubuntu station to play AVI files.

I found that by simply opening the through the menu Applications>Sound and Video> Mplayer, the software opens fine. Then by right-clicking on the video window and entering the PROPERTIES menu, I can alter the video decoder (on the VIDEO tab). The first option, is the default, and it states that it will use this file that does not open. Change the video decoder, close the application, then reopen it (so the settings become perminant), the video files open fine. The trick is finding the decoder that makes the video function the best. I think the 3rd one in the list worked best for me, or the OPENGL ones also work well with a good video card that supports openGL.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.