[MPlayer-cygwin] How to get a mplayer with fontconfig?

RVM rvm3000 at ya.com
Sat Dec 1 17:21:07 CET 2007


El Sábado, 1 de Diciembre de 2007 04:41, John Brown escribió:
> Please see the following:
> > On Thu, 17 Aug 2006 15:42:39 +0300, Tor Lillqvist wrote:
> >
> > John Brown writes:
> >> Thanks. Just one more thing. In the pkg-config documentation, it says
> >> that you can get around the circular dependency between GLib and
> >> pkg-config by using the handwritten makefiles for MSVC or gcc. However,
> >> I see only a makefile.msc. Where can I get a Mingw makefile?
> >
> > Ah, it has been discontinued, as it was a never-ending struggle to
> > maintain it manually in parallel with the Makefile.am files.
> >
> > If somebody wants to build GLib and pkg-config from scratch on Win32,
> > the easiet way aroung the circular dependency is to just remove the
> > checks for pkg-config from GLib's configure.in, as they aren't really
> > needed when building GLib. (The checks are there, I guess, just
> > because GLib includes .pc files and it is thought that it doesn't make
> > sense to install these unless the machine has pkg-config, or
> > something.)

I managed to compile glib and pkg-config (it took me hours, not only I had to 
modify the configure but also a *.c file) and then I realized that in fact 
they weren't needed by fontconfig, it really wanted libexpat.

Then I had problems to compile freetype2 and fontconfig in a way they were 
recognized by the mplayer configure. At the end I achieved, but it doesn't 
work, when a subtitle is about to appear mplayer crashes:

MPlayer dev-SVN-r25233-3.4.5 (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 with runtime CPU detection.
Setting process priority: abovenormal
C:\WINDOWS\Fonts\arialbd.ttf doesn't look like a bitmap font description, 
ignoring.
Cannot load bitmap font: C:\WINDOWS\Fonts\arialbd.ttf
 
Playing C:/Documents and Settings/ricardo/Mis documentos/Videos/3x11.avi.
AVI file format detected.
ID_VIDEO_ID=0
[aviheader] Video stream found, -vid 0
ID_AUDIO_ID=1
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  624x352  12bpp  23.976 fps  983.5 kbps (120.1 kbyte/s)
Clip info:
 Software: VirtualDubMod 1.4.13
ID_CLIP_INFO_NAME0=Software
ID_CLIP_INFO_VALUE0=VirtualDubMod 1.4.13
ID_CLIP_INFO_N=1
SUB: Detected subtitle file format: subviewer
SUB: Read 643 subtitles.
ID_FILE_SUB_ID=0
ID_FILE_SUB_FILENAME=C:/Documents and Settings/ricardo/Mis 
documentos/Videos/3x11.srt
SUB: Added subtitle file (1): C:/Documents and Settings/ricardo/Mis 
documentos/Videos/3x11.srt
ID_FILENAME=C:/Documents and Settings/ricardo/Mis documentos/Videos/3x11.avi
ID_DEMUXER=avi
ID_VIDEO_FORMAT=XVID
ID_VIDEO_BITRATE=983520
ID_VIDEO_WIDTH=624
ID_VIDEO_HEIGHT=352
ID_VIDEO_FPS=23.976
ID_VIDEO_ASPECT=0.0000
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=129632
ID_AUDIO_RATE=0
ID_AUDIO_NCH=0
ID_LENGTH=2611.28
[ass] auto-open
Opening video filter: [screenshot]
Opening video filter: [scale]
[ass] Init
[ass] Updating font cache.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
ID_VIDEO_CODEC=ffodivx
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [dsound] 48000Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=mp3
Starting playback...
VDec: vo config request - 624 x 352 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.7727
[swscaler @ 009AF630]SwScaler: using unscaled yuv420p -> yuv420p special 
converter
[swscaler @ 009AF630]No accelerated colorspace conversion found
VO: [directx] 624x352 => 624x352 Planar YV12  [zoom]
Fontconfig error: Cannot load default config file
[ass] PlayResX undefined, setting 511.
 
 
MPlayer interrupted by signal 11 in module: filter_video
ID_SIGNAL=11
- MPlayer crashed by bad usage of CPU/FPU/RAM.
  Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
  disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
- MPlayer crashed. This shouldn't happen.
  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
  gcc version. If you think it's MPlayer's fault, please read
  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
  won't help unless you provide this information when reporting a possible 
bug.

What's the config file fontconfig wants to load?

MPlayer compiled this way:
./configure --enable-runtime-cpudetection --codecsdir=codecs 

fontconfig:
./configure --prefix=j:/mingw

freetype2:
./configure --prefix=j:/mingw

-- 
RVM



More information about the MPlayer-cygwin mailing list