[MPlayer-users] Help with Mplayer and SRT subtitles

Jason Garrett-Glaser darkshikari at gmail.com
Sun Mar 25 21:40:39 CEST 2007


I put the font file in there and the "can't find subfont.ttf" error
disappeared, but it still can't read arial and it still doesn't play
subtitles.

Verbose is as follows:

MPlayer 1.0rc1-3.4.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Core(TM)2 CPU         T7200  @ 2.00GHz (Family: 6,
Model: 15, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
get_path('codecs.conf') -> 'C:/Program Files/Mplayer/mplayer/codecs.conf'
Reading C:/Program Files/Mplayer/mplayer/codecs.conf: Can't open
'C:/Program Files/Mplayer/mplayer/codecs.conf': No such file or
directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: 'Gundam_Seed_50.mkv' '-v'
init_freetype
font: can't open file: c:/windows/fonts/arial.ttf
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Windows native timing
get_path('input.conf') -> 'C:/Program Files/Mplayer/mplayer/input.conf'
Parsing input config file C:/Program Files/Mplayer/mplayer/input.conf
Input config file C:/Program Files/Mplayer/mplayer/input.conf parsed: 53 binds
get_path('Gundam_Seed_50.mkv.conf') -> 'C:/Program
Files/Mplayer/mplayer/Gundam_Seed_50.mkv.conf'

Playing Gundam_Seed_50.mkv.
get_path('sub/') -> 'C:/Program Files/Mplayer/mplayer/sub/'
WINSOCK2 init: 0
[file] File size is 285745914 bytes
STREAM: [file] Gundam_Seed_50.mkv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
[mkv] Found the head...
[mkv] + a segment...
[mkv] /---- [ parsing seek head ] ---------
[mkv] /---- [ parsing seek head ] ---------
[mkv] \---- [ parsing seek head ] ---------
[mkv] /---- [ parsing cues ] -----------
[mkv] \---- [ parsing cues ] -----------
[mkv] /---- [ parsing chapters ] ---------
[mkv] Chapter 0 from 00:00:00.000 to 00:00:00.000, Chapter 1
[mkv] Chapter 1 from 00:01:11.900 to 00:00:00.000, Chapter 2
[mkv] Chapter 2 from 00:02:48.000 to 00:00:00.000, Chapter 3
[mkv] Chapter 3 from 00:10:12.500 to 00:00:00.000, Chapter 4
[mkv] Chapter 4 from 00:20:29.100 to 00:00:00.000, Chapter 5
[mkv] Chapter 5 from 00:23:22.267 to 00:00:00.000, Chapter 6
[mkv] Chapter 6 from 00:27:37.367 to 00:00:00.000, Chapter 7
[mkv] Chapter 7 from 00:27:37.800 to 00:00:00.000, Chapter 8
[mkv] Chapter 8 from 00:27:38.300 to 00:00:00.000, Chapter 9
[mkv] \---- [ parsing chapters ] ---------
[mkv] \---- [ parsing seek head ] ---------
[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: -0.000s
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] |  + Track number: 1
[mkv] |  + Track type: Video
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: V_MPEG4/ISO/AVC
[mkv] |  + CodecPrivate, length 39
[mkv] |  + Default duration: 33.367ms ( = 29.970 fps)
[mkv] |  + Language: und
[mkv] |  + Name: [KAA] Gundam Seed - 50 (fin)
[mkv] |  + Video track
[mkv] |   + Pixel width: 640
[mkv] |   + Pixel height: 480
[mkv] |   + Display width: 640
[mkv] |   + Display height: 480
[mkv] | + a track...
[mkv] |  + Track number: 2
[mkv] |  + Track type: Audio
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: A_AAC
[mkv] |  + CodecPrivate, length 2
[mkv] |  + Default duration: 21.333ms ( = 46.875 fps)
[mkv] |  + Language: jpn
[mkv] |  + Name: Japanese Audio (2ch AAC)
[mkv] |  + Audio track
[mkv] |   + Sampling frequency: 48000.000000
[mkv] |   + Channels: 2
[mkv] | + a track...
[mkv] |  + Track number: 3
[mkv] |  + Track type: Subtitle
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: S_TEXT/ASS
[mkv] |  + CodecPrivate, length 2365
[mkv] |  + Language: eng
[mkv] |  + Name: English Subs (ASS)
[mkv] /---- [ parsing attachments ] ---------
[mkv] | + an attachment...
[mkv] |  + FileName: Clearface_SSi_Bold.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 45420
[mkv] Attachment: Clearface_SSi_Bold.ttf, application/x-truetype-font,
45420 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: Haro.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 13376
[mkv] Attachment: Haro.ttf, application/x-truetype-font, 13376 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: impact.TTF
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 136076
[mkv] Attachment: impact.TTF, application/x-truetype-font, 136076 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: trebuc.TTF
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 134108
[mkv] Attachment: trebuc.TTF, application/x-truetype-font, 134108 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: TT0209M_.TTF
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 61352
[mkv] Attachment: TT0209M_.TTF, application/x-truetype-font, 61352 bytes
[mkv] | + an attachment...
[mkv] |  + FileName: X360.ttf
[mkv] |  + FileMimeType: application/x-truetype-font
[mkv] |  + FileData, length 64884
[mkv] Attachment: X360.ttf, application/x-truetype-font, 64884 bytes
[mkv] \---- [ parsing attachments ] ---------
[mkv] |+ found cluster, headers are parsed completely :)
==> Found video stream: 1
[mkv] Aspect: 1.333333
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC) "[KAA] Gundam Seed - 50 (fin)", -vid 0
==> Found audio stream: 2
[mkv] Track ID 2: audio (A_AAC) "Japanese Audio (2ch AAC)", -aid 0, -alang jpn
[mkv] Track ID 3: subtitles (S_TEXT/ASS) "English Subs (ASS)", -sid 0,
-slang eng
[mkv] Will play video track 1
Matroska file format detected.
VIDEO:  [avc1]  640x480  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31  fourcc:0x31637661  size:640x480  fps:29.97  ftime:=0.0334
get_path('sub/') -> 'C:/Program Files/Mplayer/mplayer/sub/'
<vo_directx><INFO>checking primary surface
<vo_directx><FORMAT PRIMARY>14 BGR32 supported
<vo_directx><INFO>testing supported overlay pixelformats
<vo_directx><FORMAT OVERLAY>0 YV12  supported
<vo_directx><FORMAT OVERLAY>1 I420  not supported
<vo_directx><FORMAT OVERLAY>2 IYUV  not supported
<vo_directx><FORMAT OVERLAY>3 YVU9  supported
<vo_directx><FORMAT OVERLAY>4 YUY2  supported
<vo_directx><FORMAT OVERLAY>5 UYVY  supported
<vo_directx><FORMAT OVERLAY>6 BGR8  not supported
<vo_directx><FORMAT OVERLAY>7 RGB15 not supported
<vo_directx><FORMAT OVERLAY>8 BGR15 not supported
<vo_directx><FORMAT OVERLAY>9 RGB16 not supported
<vo_directx><FORMAT OVERLAY>10 BGR16 not supported
<vo_directx><FORMAT OVERLAY>11 RGB24 not supported
<vo_directx><FORMAT OVERLAY>12 BGR24 not supported
<vo_directx><FORMAT OVERLAY>13 RGB32 not supported
<vo_directx><FORMAT OVERLAY>14 BGR32 not supported
<vo_directx><INFO>Your card supports 4 of 15 overlayformats
<vo_directx><INFO>can mirror up down
<vo_directx><INFO>hardware supports overlay
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 4608 bytes for input buffer.
dec_audio: Allocating 49152 + 65536 = 114688 bytes for output buffer.
FAAD: Decoder init done (0Bytes)!
FAAD: Negotiated samplerate: 48000Hz  channels: 2
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
ao_dsound: Output Devices:
0 Primary Sound Driver <--
1 Realtek HD Audio output
2 Modem #1 Line Playback (emulated)
ao_dsound: DirectSound initialized
ao_dsound: Samplerate:48000Hz Channels:2 Format:s16le
ao_dsound: Buffersize:192000 bytes (1000 msec)
ao_dsound: primary buffer created
ao_dsound: secondary (stream)buffer created
AO: [dsound] 48000Hz 2ch s16le (2 bytes per sample)
AO: Description: Windows DirectSound audio output
AO: Author: Gabor Szecsi <deje at miki.hu>
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...
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 640 x 480 (preferred colorspace: 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 (640x480->640x480,flags=0,'MPlayer',0x32315659)
VO: [directx] 640x480 => 640x480 Planar YV12
VO: Description: Directx DDraw YUV/RGB/BGR renderer
VO: Author: Sascha Sommer <saschasommer at freenet.de>
<vo_directx><INFO>overlay with format YV12  created
*** [vo] Exporting mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
get_path('subfont.ttf') -> 'C:/Program Files/Mplayer/mplayer/subfont.ttf'
Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: faad
FAAD: Closing decoder!
Uninit video: ffmpeg
WINSOCK2 uninit
ao_dsound: DirectSound uninitialized

Exiting... (Quit)


On 3/25/07, John Brown <johnbrown105 at hotmail.com> wrote:
>
> Hello,
>
> >On 3/25/07, info at danielerossi.net <info at danielerossi.net> wrote:
> >>
> >>
> >>
> >> >  I've run into one problem; the subtitles don't show up,
> >> > either in mencoder or mplayer.
> >> >
> >> >
> >> >
> >>
> >>why  not post a -v output and post a sample?
> >>On my win xp .mkv files show up with subtitles.
> >>You should probably do the following:
> >>
> >>Run the file and read the console:
> >>it give you a reference about the "tags" it uses for the tracks
> >>give the option corresponding to the subtitle you need like:
> >>-sid 0
> >>
> >>daniele
> >>
> >>___________
>
> Jason Garrett-Glaser wrote:
> >
> >How do you record the output of -v in Windows?  Obviously in Linux I
> >could easily just pipe it to a file.
> >
>
> Just the same as in Linux:
> mplayer -v > filename.txt 2>&1
>
> >I did find an error though:
> >
> >C:\windows\fonts\arial.ttf doesn't look like a bitmap font
> >description, ignoring.
> >Cannot load bitmap font C:\windows\fonts\arial.ttf
> >
> >The font file is there though.  Its name is uppercase, but then I
> >remembered Windows isn't case sensitive anyways.  What's up with that?
> >
>
> You can copy arial.ttf (or any TrueType font file) as subfont.ttf to the
> mplayer folder. I mean the one that corresponds to $HOME/.mplayer on Linux.
> I believe that on Windows it is path\to\mplayer.exe\mplayer.
>
> _________________________________________________________________
> i'm making a difference.Make every IM count for the cause of your choice.
> Join Now.
> http://clk.atdmt.com/MSN/go/msnnkwme0080000001msn/direct/01/?href=http://im.live.com/messenger/im/home/?source=hmtagline
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>



More information about the MPlayer-users mailing list