List Info

Thread: How to get a mplayer with fontconfig?




How to get a mplayer with fontconfig?
user name
2007-11-30 20:18:24
I compiled mplayer under Windows, following this guide:
http://lists.mplayerhq.hu/pipermail/mp
layer-cygwin/2005-August/002261.html

It's outdated but I managed to get a mplayer.exe that works
ok. But it doesn't
have fontconfig support (that guide doesn't mention it).

I tried to do it by my own, but it's a mess: when trying to
compile 
fontconfig, it asks for pkg-config. Compilation of
pkg-config fails because it 
can't find glib.h, compilation of glib fails because it
doesn't find 
pkg-config! I'm lost.

Is there an easy way to get a mplayer compiled with
fontconfig support?

-- 
RVM
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in

Re: How to get a mplayer with fontconfig?
country flaguser name
Jamaica
2007-11-30 21:41:58


RVM wrote:
>
> I compiled mplayer under Windows, following this
guide:
> http://lists.mplayerhq.hu/pipermail/mp
layer-cygwin/2005-August/002261.html
>
> It's outdated but I managed to get a mplayer.exe that
works ok. But it doesn't
> have fontconfig support (that guide doesn't mention
it).
>
> I tried to do it by my own, but it's a mess: when
trying to compile
> fontconfig, it asks for pkg-config. Compilation of
pkg-config fails because it
> can't find glib.h, compilation of glib fails because it
doesn't find
> pkg-config! I'm lost.
>
> Is there an easy way to get a mplayer compiled with
fontconfig support?
>
> --
> RVM

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.)
>
> --tml
> 

If you can't be bothered with that, I believe that you can
download
pkg-config binaries for windows from GNUWin32 project at
SourceForge.
____________________________________________________________
_____
Your smile counts. The more smiles you share, the more we
donate.  Join in.
www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmt
agline
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in

Re: How to get a mplayer with fontconfig?
user name
2007-12-01 10:21:07
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:WINDOWSFontsarialbd.ttf doesn't look like a bitmap font
description, 
ignoring.
Cannot load bitmap font: C:WINDOWSFontsarialbd.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
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in

Re: How to get a mplayer with fontconfig?
country flaguser name
Jamaica
2007-12-01 11:18:46


On Sat, 1 Dec 2007 17:21:07 +0100, RVM wrote:
>
> 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:
>>>
>>> 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. 
>
> 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:

I don't have any subtitle files, so I can't try it myself.

Does fontconfig work for you otherwise? If you type fc-list,
do you get a list of
fonts installed on your system? It may take a little while
the first time, while it
builds the font cache, but the next time, it will print the
list immediately.

Next, don't try to play your subtitles, but instead:

mplayer -fontconfig -font "Courier New" x11.avi.

Is your On Screen Display in Courier New?

If both tests were successful, then fontconfig and freetype2
are OK
and you have another problem.

You did not post your command line, so I am guessing that
you did not run
'mplayer -v ...'. Also, you should follow the instruction is
the message that 
told you about the crash.

>
[Cut]

> C:WINDOWSFontsarialbd.ttf doesn't look like a bitmap
font description,
> ignoring.
> Cannot load bitmap font: C:WINDOWSFontsarialbd.ttf
>
> Playing C:/Documents and Settings/ricardo/Mis
documentos/Videos/3x11.avi.

[Cut]

> 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

[Various ID_XXX deleted]

> [ass] auto-open
> Opening video filter: [screenshot]
> Opening video filter: [scale]
> [ass] Init
> [ass] Updating font cache.

[Irrelevant detail (I hope) deleted]

> Fontconfig error: Cannot load default config file
> [ass] PlayResX undefined, setting 511.
>
>
[MPlayer crash message cut]
>
> What's the config file fontconfig wants to load?
>

Fonts.conf. The location depends on your configure options.
From the fontconfig
INSTALL file:

Fontconfig is built with the traditional configure script:

        $ ./configure --sysconfdir=/etc --prefix=/usr
--mandir=/usr/share/man

fonts.conf would be created in /etc/fonts.

> MPlayer compiled this way:
> ./configure --enable-runtime-cpudetection
--codecsdir=codecs
>
> fontconfig:
> ./configure --prefix=j:/mingw
>
In your case, it would be in j:/mingw/etc/fonts. On my
system it is in
/usr/local/etc/fonts, which coreponds to
C:MSYSlocaletcfonts



____________________________________________________________
_____
You keep typing, we keep giving. Download Messenger and join
the i’m Initiative now.
ht
tp://im.live.com/messenger/im/home/?source=TAGLM
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in

Re: How to get a mplayer with fontconfig?
user name
2007-12-02 17:29:33
El Sábado, 1 de Diciembre de 2007 18:18, John Brown
escribió:
> On Sat, 1 Dec 2007 17:21:07 +0100, RVM wrote:
> > 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:
> >>>
> >>> 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.
> >
> > 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:
>
> I don't have any subtitle files, so I can't try it
myself.
>
> Does fontconfig work for you otherwise? If you type
fc-list, do you get a
> list of fonts installed on your system? 

Yes.

> It may take a little while the 
> first time, while it builds the font cache, but the
next time, it will
> print the list immediately.
>
> Next, don't try to play your subtitles, but instead:
>
> mplayer -fontconfig -font "Courier New"
x11.avi.
>
> Is your On Screen Display in Courier New?

No, mplayer crashes immediately.

> If both tests were successful, then fontconfig and
freetype2 are OK
> and you have another problem.
>
> You did not post your command line, so I am guessing
that you did not run
> 'mplayer -v ...'. Also, you should follow the
instruction is the message
> that told you about the crash.

Today I compiled mplayer with cygwin, instead of mingw. It
seemed to me that 
it was a lot easier. The setup allows to install a lot of
precompiled 
packages, including fontconfig. (And to make things easier I
only installed 
packages from the setup).

There was a problem with an undefined reference to `_llrint'
but I found a 
patch (http://article.gmane.org/gmane.comp.video.ffmpeg.dev
el/37442).

This build works but it has exactly the same problem as the
mingw build. It 
crashed when trying to use fontconfig.

This is with -fontconfig -font Arial, mplayer crashes
immediately:

$ gdb ./mplayer.exe
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it under
certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show
warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) set args  "/home/ricardo/Mis
documentos/Videos/3x11.avi" -fontconfig -fo
nt Arial -v
(gdb) run
Starting program: /home/ricardo/Mis
documentos/cygwin/mplayer/mplayer.exe 
"/home
/ricardo/Mis documentos/Videos/3x11.avi" -fontconfig
-font Arial -v
Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
Loaded symbols for
/cygdrive/c/WINDOWS/system32/kernel32.dll
Loaded symbols for /usr/bin/cygwin1.dll
Loaded symbols for
/cygdrive/c/WINDOWS/system32/advapi32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/gdi32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/user32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/ole32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/msvcrt.dll
Loaded symbols for
/cygdrive/c/WINDOWS/system32/opengl32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/glu32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/ddraw.dll
Loaded symbols for
/cygdrive/c/WINDOWS/system32/dciman32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/shell32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/shlwapi.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/winmm.dll
MPlayer dev-SVN-r25242-3.4.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 with runtime CPU detection.
get_path('codecs.conf') ->
'/home/ricardo/.mplayer/codecs.conf'
Reading /home/ricardo/.mplayer/codecs.conf: Can't open 
'/home/ricardo/.mplayer/c
odecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open 
'/usr/local/etc/mplayer/c
odecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --enable-static --enable-debug
--enable-runtime-cpudetection 
--co
decsdir=codecs
CommandLine: '/home/ricardo/Mis documentos/Videos/3x11.avi'
'-fontconfig' 
'-font
' 'Arial' '-v'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/ricardo/.mplayer/fonts'
Using Windows native 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
get_path('3x11.avi.conf') ->
'/home/ricardo/.mplayer/3x11.avi.conf'
 
Playing /home/ricardo/Mis documentos/Videos/3x11.avi.
get_path('sub/') -> '/home/ricardo/.mplayer/sub/'
[file] File size is 367501312 bytes
STREAM: [file] /home/ricardo/Mis documentos/Videos/3x11.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=0x2292
======= AVI Header =======
us/frame: 41708  (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames  total: 62608   initial: 0
streams: 2
Suggested BufferSize: 0
Size:  624 x 352
==========================
list_end=0x10F4
==> 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: 62608
Suggested BufferSize: 77580
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=0x2186
==> 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: 108802
Suggested BufferSize: 768
Quality -1
Sample size: 0
==========================
Found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 16204
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=388
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
============================================================
==============
list_end=0x2292
AVI: dmlh found (size=248) (total_frames=62608)
list_end=0x22BC
hdr=Software  size=21
Software  : VirtualDubMod 1.4.13
list_end=0x15BDC64A
Found movie at 0x280C - 0x15BDC64A
Reading INDEX block, 171410 chunks for 62608 frames
(fpos=364758610).
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=321031850 (62608) audio size=42313728
(108802)
VIDEO:  [XVID]  624x352  12bpp  23.976 fps  983.5 kbps
(120.1 kbyte/s)
[V] filefmt:3  fourcc:0x44495658  size:624x352  fps:23.98 
ftime:=0.0417
Clip info:
 Software: VirtualDubMod 1.4.13
get_path('sub/') -> '/home/ricardo/.mplayer/sub/'
[file] File size is 51887 bytes
STREAM: [file] /home/ricardo/Mis documentos/Videos/3x11.srt
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
SUB: Detected subtitle file format: subviewer
SUB: Read 643 subtitles.
SUB: Added subtitle file (1): /home/ricardo/Mis
documentos/Videos/3x11.srt
<vo_directx><INFO>checking primary surface
<vo_directx><FORMAT PRIMARY>10 BGR16 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: [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
ao_dsound: Output Devices:
0 Controlador primario de sonido <--
1 Realtek AC97 Audio
2 Línea #1 del módem (emulada)
 
[1]+  Stopped                 gdb ./mplayer.exe
 
ricardoavalon ~/Mis documentos/cygwin/mplayer
$ fg 1
gdb ./mplayer.exe
---Type <return> to continue, or q <return> to
quit---
 
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 <dejemiki.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...
Increasing filtered audio buffer size from 0 to 65536
XXX initial  v_pts=0.000  a_pos=7776 (0.480)
Compiler did not align stack variables. Libavcodec has been
miscompiled
and may be very slow or crash. This is not a bug in
libavcodec,
but in the compiler. You may try recompiling using gcc >=
4.2.
Do not report crashes to FFmpeg developers.
[ffmpeg] aspect_ratio: 1.772727
VDec: vo config request - 624 x 352 (preferred colorspace:
Planar YV12)
Trying filter chain: 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)
VO: [directx] 624x352 => 624x352 Planar YV12
VO: Description: Directx DDraw YUV/RGB/BGR renderer
VO: Author: Sascha Sommer <saschasommerfreenet.de>
<vo_directx><INFO>overlay with format YV12 
created
*** [vo] Allocating (slices) mp_image_t, 624x352x12bpp YUV
planar, 329472 
bytes
*** [vo] Allocating (slices) mp_image_t, 624x352x12bpp YUV
planar, 329472 
bytes
 
Program received signal SIGSEGV, Segmentation fault.
0x00983561 in FcFontSetMatch ()
(gdb) bt
#0  0x00983561 in FcFontSetMatch ()
#1  0x009835bb in FcFontMatch ()
#2  0x0057efb9 in load_font_ft (width=624, height=352,
fontp=0xc90704,
    font_name=0x1d6cc18 "Arial") at
font_load_ft.c:1151
#3  0x0057a890 in vo_update_osd (dxs=624, dys=352) at
sub.c:1093
#4  0x0057ca23 in vo_draw_text (dxs=624, dys=352,
    draw_alpha=0x430d20 <draw_alpha>) at sub.c:1228
#5  0x00430fc5 in draw_osd () at vo_directx.c:185
#6  0x00477226 in control (vf=0x1d88150, request=7,
data=0x0) at vf_vo.c:94
#7  0x00466f1e in filter_video (sh_video=0x1d7b1d0,
frame=0x1d7fd30,
    pts=0.041708331555128098) at dec_video.c:415
#8  0x00407469 in main (argc=6, argv=0x1d61e88) at
mplayer.c:2052
(gdb)

And this is with -ass, mplayer crashes when the first
subtitle is about to 
show:

$ gdb ./mplayer.exe
GNU gdb 6.5.50.20060706-cvs (cygwin-special)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public
License, and you are
welcome to change it and/or distribute copies of it under
certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show
warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) set args  "/home/ricardo/Mis
documentos/Videos/3x11.avi" -ass
(gdb) run
Starting program: /home/ricardo/Mis
documentos/cygwin/mplayer/mplayer.exe 
"/home
/ricardo/Mis documentos/Videos/3x11.avi" -ass
Loaded symbols for /cygdrive/c/WINDOWS/system32/ntdll.dll
Loaded symbols for
/cygdrive/c/WINDOWS/system32/kernel32.dll
Loaded symbols for /usr/bin/cygwin1.dll
Loaded symbols for
/cygdrive/c/WINDOWS/system32/advapi32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/rpcrt4.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/gdi32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/user32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/ole32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/msvcrt.dll
Loaded symbols for
/cygdrive/c/WINDOWS/system32/opengl32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/glu32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/ddraw.dll
Loaded symbols for
/cygdrive/c/WINDOWS/system32/dciman32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/shell32.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/shlwapi.dll
Loaded symbols for /cygdrive/c/WINDOWS/system32/winmm.dll
MPlayer dev-SVN-r25242-3.4.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 with runtime CPU detection.
 
Playing /home/ricardo/Mis documentos/Videos/3x11.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[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
SUB: Detected subtitle file format: subviewer
SUB: Read 643 subtitles.
SUB: Added subtitle file (1): /home/ricardo/Mis
documentos/Videos/3x11.srt
[ass] auto-open
[ass] Init
[ass] Updating font cache.
============================================================
==============
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec
family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
============================================================
==============
============================================================
==============
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
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)
============================================================
==============
 
[1]+  Stopped                 gdb ./mplayer.exe
 
ricardoavalon ~/Mis documentos/cygwin/mplayer
$ fg 1
gdb ./mplayer.exe
---Type <return> to continue, or q <return> to
quit---
 
AO: [dsound] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Compiler did not align stack variables. Libavcodec has been
miscompiled
and may be very slow or crash. This is not a bug in
libavcodec,
but in the compiler. You may try recompiling using gcc >=
4.2.
Do not report crashes to FFmpeg developers.
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.
VO: [directx] 624x352 => 624x352 Planar YV12
[ass] PlayResX undefined, setting 511.00   1/  1 ??% ??%
??,?% 0 0
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
A:   0.5 V:   0.5 A-V: -0.007 ct: -0.005  14/ 14  2%  2% 
3.0% 0 0
Program received signal SIGSEGV, Segmentation fault.
_select_font (priv=0x0, family=0x1dfe088 "Sans",
bold=80, italic=0,
    index=0x22b498, code=0) at ass_fontconfig.c:96
96              for (curf = 0; curf < fset->nfont;
++curf) {
(gdb) bt
#0  _select_font (priv=0x0, family=0x1dfe088
"Sans", bold=80, italic=0,
    index=0x22b498, code=0) at ass_fontconfig.c:96
#1  0x008c17db in fontconfig_select (priv=0x1d91958,
family=0x1dfe088 "Sans",
    bold=80, italic=0, index=0x22b498, code=0) at
ass_fontconfig.c:157
#2  0x008c2899 in add_face (fc_priv=0x22b3d0,
font=0x1dfe088, ch=80)
    at ass_font.c:126
#3  0x01dfe088 in ?? ()
#4  0x00000050 in ?? ()
#5  0x00000000 in ?? ()
(gdb) quit
The program is running.  Exit anyway? (y or n) y

I noticed the text that says:
"Compiler did not align stack variables. Libavcodec has
been miscompiled
and may be very slow or crash. This is not a bug in
libavcodec,
but in the compiler. You may try recompiling using gcc >=
4.2.
Do not report crashes to FFmpeg developers."

The mingw build doesn't print this warning, but it has the
same behavior and 
crashes at the same point, so I think the crash is not
related to that 
warning. And just running 'mplayer.exe -font any_font.ttf'
(so no fontconfig 
used) works.

This is how mplayer was configured:
./configure --enable-static --enable-debug
--enable-runtime-cpudetection 
--codecsdir=codecs

I attach the whole configure log, in case it's needed.

-- 
RVM

_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in
  
Re: How to get a mplayer with fontconfig?
country flaguser name
Jamaica
2007-12-03 03:55:02
RVM wrote:
> El Sábado, 1 de Diciembre de 2007 18:18, John Brown
escribió:
>> I don't have any subtitle files, so I can't try it
myself.
>>
>> Does fontconfig work for you otherwise? If you type
fc-list, do you get a
>> list of fonts installed on your system? 
>
> Yes.
>
>>
>> Next, don't try to play your subtitles, but
instead:
>>
>> mplayer -fontconfig -font "Courier New"
x11.avi.
>>
>> Is your On Screen Display in Courier New?
>
> No, mplayer crashes immediately.
>
>> If both tests were successful, then fontconfig and
freetype2 are OK
>> and you have another problem.
>>
>
> Today I compiled mplayer with cygwin, instead of mingw.
It seemed to me that 
> it was a lot easier. The setup allows to install a lot
of precompiled 
> packages, including fontconfig. (And to make things
easier I only installed 
> packages from the setup).
>
> There was a problem with an undefined reference to
`_llrint' but I found a 
> patch (http://article.gmane.org/gmane.comp.video.ffmpeg.dev
el/37442).
>
> This build works but it has exactly the same problem as
the mingw build. It 
> crashed when trying to use fontconfig.
>
> This is with -fontconfig -font Arial, mplayer crashes
immediately:
>
> $ gdb ./mplayer.exe
> (gdb) set args  "/home/ricardo/Mis
documentos/Videos/3x11.avi" -fontconfig -fo
> nt Arial -v
> (gdb) run
> Starting program: /home/ricardo/Mis
documentos/cygwin/mplayer/mplayer.exe 
> "/home
> /ricardo/Mis documentos/Videos/3x11.avi"
-fontconfig -font Arial -v
> [various DLLs loaded]
> [Tries to open various configuration files]
>  
> Playing /home/ricardo/Mis documentos/Videos/3x11.avi.
> get_path('sub/') -> '/home/ricardo/.mplayer/sub/'
> [file] File size is 367501312 bytes
> [file format information that means nothing to me]
> get_path('sub/') -> '/home/ricardo/.mplayer/sub/'
> [file] File size is 51887 bytes
> STREAM: [file] /home/ricardo/Mis
documentos/Videos/3x11.srt
> STREAM: Description: File
> STREAM: Author: Albeu
> STREAM: Comment: based on the code from ??? (probably
Arpi)
> SUB: Detected subtitle file format: subviewer
> SUB: Read 643 subtitles.
> SUB: Added subtitle file (1): /home/ricardo/Mis
documentos/Videos/3x11.srt
> checking primary surface
> 10 BGR16 supported
> testing supported overlay pixelformats
> 0 YV12  supported
> 3 YVU9  supported
> 4 YUY2  supported
> 5 UYVY  supported

> Your card supports 4 of 15 overlayformats
> [more information deleted]
> [1]+  Stopped                 gdb ./mplayer.exe
>  
> ricardoavalon ~/Mis documentos/cygwin/mplayer
> $ fg 1
> gdb ./mplayer.exe
> ---Type  to continue, or q  to quit---
>  

> [ffmpeg] aspect_ratio: 1.772727
> VDec: vo config request - 624 x 352 (preferred
colorspace: Planar YV12)
> Trying filter chain: 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)
> VO: [directx] 624x352 => 624x352 Planar YV12
> VO: Description: Directx DDraw YUV/RGB/BGR renderer
> VO: Author: Sascha Sommer 
> overlay with format YV12  created
> *** [vo] Allocating (slices) mp_image_t, 624x352x12bpp
YUV planar, 329472 
> bytes
> *** [vo] Allocating (slices) mp_image_t, 624x352x12bpp
YUV planar, 329472 
> bytes
>  
> Program received signal SIGSEGV, Segmentation fault.
> 0x00983561 in FcFontSetMatch ()
> (gdb) bt
> #0  0x00983561 in FcFontSetMatch ()
> #1  0x009835bb in FcFontMatch ()
> #2  0x0057efb9 in load_font_ft (width=624, height=352,
fontp=0xc90704,
>     font_name=0x1d6cc18 "Arial") at
font_load_ft.c:1151
> #3  0x0057a890 in vo_update_osd (dxs=624, dys=352) at
sub.c:1093
> #4  0x0057ca23 in vo_draw_text (dxs=624, dys=352,
>     draw_alpha=0x430d20 ) at sub.c:1228
> #5  0x00430fc5 in draw_osd () at vo_directx.c:185
> #6  0x00477226 in control (vf=0x1d88150, request=7,
data=0x0) at vf_vo.c:94
> #7  0x00466f1e in filter_video (sh_video=0x1d7b1d0,
frame=0x1d7fd30,
>     pts=0.041708331555128098) at dec_video.c:415
> #8  0x00407469 in main (argc=6, argv=0x1d61e88) at
mplayer.c:2052
> (gdb)
>
> And this is with -ass, mplayer crashes when the first
subtitle is about to 
> show:
>
> $ gdb ./mplayer.exe
> (gdb) set args  "/home/ricardo/Mis
documentos/Videos/3x11.avi" -ass
> (gdb) run
> Starting program: /home/ricardo/Mis
documentos/cygwin/mplayer/mplayer.exe 
> "/home
> /ricardo/Mis documentos/Videos/3x11.avi" -ass

> SUB: Detected subtitle file format: subviewer
> SUB: Read 643 subtitles.
> SUB: Added subtitle file (1): /home/ricardo/Mis
documentos/Videos/3x11.srt
> [ass] auto-open
> [ass] Init
> [ass] Updating font cache.

>  
> [1]+  Stopped                 gdb ./mplayer.exe
>  
> ricardoavalon ~/Mis documentos/cygwin/mplayer
> $ fg 1
> gdb ./mplayer.exe

> A:   0.5 V:   0.5 A-V: -0.007 ct: -0.005  14/ 14  2% 
2%  3.0% 0 0
> Program received signal SIGSEGV, Segmentation fault.
> _select_font (priv=0x0, family=0x1dfe088
"Sans", bold=80, italic=0,
>     index=0x22b498, code=0) at ass_fontconfig.c:96
> 96              for (curf = 0; curf <
fset->nfont; ++curf) {
> (gdb) bt
> #0  _select_font (priv=0x0, family=0x1dfe088
"Sans", bold=80, italic=0,
>     index=0x22b498, code=0) at ass_fontconfig.c:96
> #1  0x008c17db in fontconfig_select (priv=0x1d91958,
family=0x1dfe088 "Sans",
>     bold=80, italic=0, index=0x22b498, code=0) at
ass_fontconfig.c:157
> #2  0x008c2899 in add_face (fc_priv=0x22b3d0,
font=0x1dfe088, ch=80)
>     at ass_font.c:126
> #3  0x01dfe088 in ?? ()
> #4  0x00000050 in ?? ()
> #5  0x00000000 in ?? ()
> (gdb) quit
> The program is running.  Exit anyway? (y or n) y
>
> I noticed the text that says:
> "Compiler did not align stack variables.
Libavcodec has been miscompiled
> and may be very slow or crash. This is not a bug in
libavcodec,
> but in the compiler. You may try recompiling using
gcc>= 4.2.
> Do not report crashes to FFmpeg developers."
>
> The mingw build doesn't print this warning, but it has
the same behavior and 
> crashes at the same point, so I think the crash is not
related to that 
> warning. And just running 'mplayer.exe -font
any_font.ttf' (so no fontconfig 
> used) works.

I get that message too, but it works, so I don't think that
it is the cause of
your problem either.
My software:
gcc 3.4.5 (MinGW)
binutils 2.16.91
MPlayer svn 25096
fontconfig 2.4.2
freetype2 2.3.4

Try a different vo (gl2 or gl).

Also, you mentioned that mplayer's configure had problems
detecting fonctconfig
and freetype. Do you remember what you did to fix the
problems? I had a recent
problem, but I only had to edit the test for fontconfig in
the configure script.
I did not have to do anything special to compile fontconfig
or freetype.
>
> This is how mplayer was configured:
> ./configure --enable-static --enable-debug
--enable-runtime-cpudetection 
> --codecsdir=codecs
>
> I attach the whole configure log, in case it's needed.
>


____________________________________________________________
_____
Share life as it happens with the new Windows Live.Download
today it's FREE!
http://www.windowslive.com/share.html
?ocid=TXT_TAGLM_Wave2_sharelife_112007
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in

Re: How to get a mplayer with fontconfig?
user name
2007-12-03 18:32:27
El Lunes, 3 de Diciembre de 2007 10:55, John Brown
escribió:
> RVM wrote:
(...)
> > I noticed the text that says:
> > "Compiler did not align stack variables.
Libavcodec has been miscompiled
> > and may be very slow or crash. This is not a bug
in libavcodec,
> > but in the compiler. You may try recompiling using
gcc>= 4.2.
> > Do not report crashes to FFmpeg developers."
> >
> > The mingw build doesn't print this warning, but it
has the same behavior
> > and crashes at the same point, so I think the
crash is not related to
> > that warning. And just running 'mplayer.exe -font
any_font.ttf' (so no
> > fontconfig used) works.
>
> I get that message too, but it works, so I don't think
that it is the cause
> of your problem either.
> My software:
> gcc 3.4.5 (MinGW)
> binutils 2.16.91
> MPlayer svn 25096
> fontconfig 2.4.2
> freetype2 2.3.4

I was using freetype 2.3.5 and fontconfig 2.5.0. Maybe
tomorrow I'll try it 
with your versions and see if there's better luck.

> Try a different vo (gl2 or gl).

Doesn't work either.

> Also, you mentioned that mplayer's configure had
problems detecting
> fonctconfig and freetype. Do you remember what you did
to fix the problems?
> I had a recent problem, but I only had to edit the test
for fontconfig in
> the configure script. I did not have to do anything
special to compile
> fontconfig or freetype.

First I had problems compiling fontconfig. It seems it
didn't work if libiconv 
was static. But if libiconv was shared then the mplayer
configure didn't 
detect it and so freetype and fontconfig were disabled.

Finally I removed the --enable-static option and that made
the mplayer 
configure to detect the shared libiconv and enable support
for freetype and 
fontconfig at last.

With cygwin things were easier, it worked perfectly at the
first try even with 
--enable-static.

-- 
RVM
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in

Re: How to get a mplayer with fontconfig?
country flaguser name
Jamaica
2007-12-03 19:38:45

RVM wrote:
> El Lunes, 3 de Diciembre de 2007 10:55, John Brown
escribió:
>   
>> RVM wrote:
>>     
> (...)
>   
>   
>> Try a different vo (gl2 or gl).
>>     
>
> Doesn't work either.
>   

Too bad. I suggested it because I had a problem (which I
have not reported yet)
using the new tv:// support on Windows. There were some
problems with the
dshow driver, but in the end, it works only if I use -vo gl2
(or gl). The developer
told me that it seems that there is a problem with -vo
directx, so I should report it.

>
> First I had problems compiling fontconfig. It seems it
didn't work if libiconv 
> was static. But if libiconv was shared then the mplayer
configure didn't 
> detect it and so freetype and fontconfig were
disabled.
>
> Finally I removed the --enable-static option and that
made the mplayer 
> configure to detect the shared libiconv and enable
support for freetype and 
> fontconfig at last.
>   

That's strange. I have compiled practically every library
used by MPlayer that can be
compiled on Windows with MinGW/MSYS. I always
--enable-static. Occasionally,
I have to edit the .pc files in /usr/locla/lib/pkgconfig
because they don't list all the
libraries that are really needed. For example, I think that
I had to add -lexpat to
fontconfig.pc. Rarely, I have had to edit the MPlayer
configure script to make it detect
 libraries.

> With cygwin things were easier, it worked perfectly at
the first try even with 
> --enable-static.
>
>   

Maybe you should 'make distclean' and start over.
____________________________________________________________
_____
Your smile counts. The more smiles you share, the more we
donate.  Join in.
www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmt
agline
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in

Re: How to get a mplayer with fontconfig?
user name
2007-12-04 19:42:37
El Martes, 4 de Diciembre de 2007 02:38, John Brown
escribió:
> RVM wrote:
> > El Lunes, 3 de Diciembre de 2007 10:55, John Brown
escribió:
> >> RVM wrote:
> >
> > (...)
> >
> >> Try a different vo (gl2 or gl).
> >
> > Doesn't work either.
>
> Too bad. I suggested it because I had a problem (which
I have not reported
> yet) using the new tv:// support on Windows. There were
some problems with
> the dshow driver, but in the end, it works only if I
use -vo gl2 (or gl).
> The developer told me that it seems that there is a
problem with -vo
> directx, so I should report it.

I finally found out what was going on. I realized that if I
run mplayer inside 
the msys console then it worked, fontconfig included. So the
problem was that 
outside msys it couldn't find /etc/fonts/font.conf and so
there were no fonts 
and mplayer crashed (anyway I think this is a bug, it
shouldn't crash, just 
display a warning on the console and go on without fonts).

Then I made it work too outside msys, just creating a
etc/fonts subdir in the 
same folder where mplayer was installed, and copying the
font.conf.

With the cygwin build this didn't work, it still kept
reading 
its /etc/fonts/font.conf, so I think that build wouldn't
work if the user 
doesn't have installed cygwin. 

-- 
RVM
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in

Re: How to get a mplayer with fontconfig?
country flaguser name
Jamaica
2007-12-05 03:19:08
RVM wrote:
>
> I finally found out what was going on. I realized that
if I run mplayer inside 
> the msys console then it worked, fontconfig included.
So the problem was that 
> outside msys it couldn't find /etc/fonts/font.conf and
so there were no fonts 
> and mplayer crashed (anyway I think this is a bug, it
shouldn't crash, just 
> display a warning on the console and go on without
fonts).
>
> Then I made it work too outside msys, just creating a
etc/fonts subdir in the 
> same folder where mplayer was installed, and copying
the font.conf.
>
> With the cygwin build this didn't work, it still kept
reading 
> its /etc/fonts/font.conf, so I think that build
wouldn't work if the user 
> doesn't have installed cygwin. 


I am just remembering that I experienced this problem some
time ago. You
can search the archives for posts with the subject
"zlib and
fontconfig". To fix it, I made a change in the source
of fontconfig
(2.2.3 at the time), but I cannot remember exactly what I
did. Whatever
it was, I am sure that I am not doing it now. I configured
with my
usual command line:

CFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
./configure --enable-static
--disable-shared --prefix=/usr/local>
BUGREPORT/configure.txt 2>&1


On my system, outside of MSYS, I can also set the
environment variable 
FONTCONFIG_FILE= c:msyslocaletcfontsfonts.conf. If I
set it to
something else, it crashes. It works without the variable.
My last post in the thread that I mentioned that I had to
leave out "C:",
but I don't have to do that now. C: and C:/ both work.

You can try this with the Cygwin build. You may have to
enter the path in 
various ways: c:mingw, c:/mingw, c:\mingw, /mingw
(assuming that
MinGW and MPlayer are on the same drive) , etc.
____________________________________________________________
_____
Your smile counts. The more smiles you share, the more we
donate.  Join in.
www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmt
agline
_______________________________________________
MPlayer-cygwin mailing list
MPlayer-cygwinmplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/mplayer-cygw
in

[1-10]

about | contact  Other archives ( Real Estate discussion Medical topics )