[MPlayer-users] Does -font work with -ass?

RVM rvm3000 at ya.com
Mon Oct 22 03:43:17 CEST 2007


When I pass a ttf file to -font and also use -ass, the font is not used, it 
uses another one instead (which I don't know where it comes from, it's not in 
the config file).

If I don't use -ass, then the font is actually used.

Is this a bug?

If I use -fontconfig -font "Comic Sans MS" then it works, but why doesn't it 
work with a ttf file?

mplayer video.avi -ass -font ~/.fonts/comicbd.ttf -v

MPlayer dev-SVN-r24833-3.3.4 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3400+ (Family: 15, Model: 4, Stepping: 10)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
get_path('codecs.conf') -> '/home/ricardo/.mplayer/codecs.conf'
Reading /home/ricardo/.mplayer/codecs.conf: Can't open 
'/home/ricardo/.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.
Configuration: --disable-tv --disable-tv-teletext --disable-radio-v4l2 
--disable-v4l2
CommandLine: 'video.avi' '-ass' '-font' '/home/ricardo/.fonts/comicbd.ttf' 
'-v'
init_freetype
/home/ricardo/.fonts/comicbd.ttf doesn't look like a bitmap font description, 
ignoring.
Cannot load bitmap font: /home/ricardo/.fonts/comicbd.ttf
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/ricardo/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/ricardo/.mplayer/input.conf'
Can't open input config file /home/ricardo/.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
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: Permission denied
Failed to open LIRC support. You will not be able to use your remote control.
get_path('video.avi.conf') -> '/home/ricardo/.mplayer/video.avi.conf'

Playing video.avi.
get_path('sub/') -> '/home/ricardo/.mplayer/sub/'
[file] File size is 366698496 bytes
STREAM: [file] video.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: avi format
AVI file format detected.
list_end=0x229A
======= AVI Header =======
us/frame: 41708  (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 61291   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  624 x 352
==========================
list_end=0x10F8
==> Found video stream: 0
[aviheader] Video stream found, -vid 0
====== STREAM Header =====
Type: vids   FCC: xvid (64697678)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 0
Rate: 24000/1001 = 23.976
Start: 0   Len: 61291
Suggested BufferSize: 124949
Quality 10000
Sample size: 0
==========================
Found 'bih', 40 bytes of 40
======= VIDEO Format ======
  biSize 40
  biWidth 624
  biHeight 352
  biPlanes 1
  biBitCount 12
  biCompression 1145656920='XVID'
  biSizeImage 1317888
===========================
Regenerating keyframe table for MPEG-4 video.
list_end=0x218E
==> Found audio stream: 1
[aviheader] Audio stream found, -aid 1
====== STREAM Header =====
Type: auds   FCC:  (0)
Flags: 0
Priority: 0   Language: 0
InitialFrames: 1
Rate: 48000/1152 = 41.667
Start: 0   Len: 106513
Suggested BufferSize: 960
Quality -1
Sample size: 0
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 15168
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=364
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
==========================================================================
list_end=0x229A
AVI: dmlh found (size=248) (total_frames=61291)
list_end=0x22BA
hdr=Software  size=11
Software  : VirtualDub
list_end=0x15B267C6
Found movie at 0x280C - 0x15B267C6
Reading INDEX block, 167804 chunks for 61291 frames (fpos=364013518).
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x18C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=323845183 (61291) audio size=38774352 (106513)
VIDEO:  [XVID]  624x352  12bpp  23.976 fps  1013.5 kbps (123.7 kbyte/s)
[V] filefmt:3  fourcc:0x44495658  size:624x352  fps:23.98  ftime:=0.0417
Clip info:
 Software: VirtualDub
get_path('sub/') -> '/home/ricardo/.mplayer/sub/'
[file] File size is 51982 bytes
STREAM: [file] ./video.srt
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
SUB: Detected subtitle file format: subviewer
SUB: opened iconv descriptor.
SUB: closed iconv descriptor.
SUB: Read 740 subtitles.
SUB: Adjusted 5 subtitle(s).
file size: 51982
LIBSUB: opened iconv descriptor.
LIBSUB: closed iconv descriptor.
plaintext (...)
(the whole subtitle file is listed here)
SUB: Added subtitle file (1): ./video.srt
X11 opening display: :0.0
vo: X11 color mask:  FFFF  (R:F800 G:7E0 B:1F)
vo: X11 running at 1280x1024 with depth 16 and 16 bpp (":0.0" => local 
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours FULLSCREEN STAYS_ON_TOP ABOVE BELOW X 
atoms
Disabling DPMS
DPMSDisable stat: 1
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x00083e).
[xv common] Maximum source image dimensions: 2046x2046
[vo] query(Planar YV12) -> 3
[ass] auto-open
[ass] Init
get_path('fonts') -> '/home/ricardo/.mplayer/fonts'
[ass] Updating font cache.
[ass] FcDirSave failed.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using 3DNow!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done

MPEG 1.0, Layer III, 48000 Hz 128 kbit Joint-Stereo, BPF: 384
Channels: 2, copyright: No, original: Yes, CRC: Yes, emphasis: 0
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
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
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:   8/8  (8192 bytes/frag)  free:  65536
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
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...
[ffmpeg] aspect_ratio: 1.772727
VDec: vo config request - 624 x 352 (preferred colorspace: Planar YV12)
Trying filter chain: ass vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
VO Config (624x352->624x352,flags=0,'MPlayer',0x32315659)
REQ: flags=0x437  req=0x0  
VO: [xv] 624x352 => 624x352 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: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 61 for hw scaling
[xv] dx: 0 dy: 0 dw: 624 dh: 352
*** [ass] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
[xv] dx: 0 dy: 0 dw: 624 dh: 352
A:   0.1 V:   0.0 A-V:  0.088 ct:  0.000   1/  1 ??% ??% ??,?% 0 0  [J
XXX initial  v_pts=0.000  a_pos=7440 (0.491) 
*** [ass] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
[ass] PlayResX undefined, setting 511.
*** [vo] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
Unicode font: 574 glyphs.
A:   0.1 V:   0.0 A-V:  0.065 ct:  0.001   2/  2 ??% ??% ??,?% 0 0  [J
*** [ass] Allocating mp_image_t, 624x352x12bpp YUV planar, 329472 bytes
...
[ass] fontconfig: Selected font family is not the requested one: 'Verdana' != 
'Sans'
fontconfig_select: (Sans, 80, 0) -> /home/ricardo/.fonts/verdana.ttf, 0
...
Uninit audio filters...
[libaf] Removing filter dummy 
Uninit audio: mp3lib
Uninit video: ffmpeg
cache statistics: 
  total accesses: 3
  hits: 2
  misses: 1
  object count: 1
cache statistics: 
  total accesses: 66
  hits: 45
  misses: 21
  object count: 21
cache statistics: 
  total accesses: 66
  hits: 45
  misses: 21
  object count: 21
Successfully enabled DPMS
vo: uninit ...

Exiting... (Quit)


-- 
RVM



More information about the MPlayer-users mailing list