1.0rc2 on osx: unable to load subfonts
I just compiled 1.0rc2 on osx 10.5, configured with: ,---- | --prefix=$HOME --enable-menu `---- It works pretty well, except that it won't load .sub files. It complains: ,---- | SUB: Could not determine file format | Cannot load subtitles: ./foo.sub `---- Also, i press `o', but the OSD menu doesn't show at all. ,----[ mplayer version ] | MPlayer 1.0rc2-4.0.1 (C) 2000-2007 MPlayer Team | CPU: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz (Family: 6, Model: 15, Stepping: 11) | CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 | Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 `---- Any help would be appreciated. -- William
2007/11/10, William Xu <william.xwl@gmail.com>:
I just compiled 1.0rc2 on osx 10.5, configured with:
,---- | --prefix=$HOME --enable-menu `----
It works pretty well, except that it won't load .sub files. It complains:
,---- | SUB: Could not determine file format | Cannot load subtitles: ./foo.sub `----
.sub can not be loaded without .idx file, it seems, or did your .sub is in rar?
Also, i press `o', but the OSD menu doesn't show at all.
You need sub font put it as ~/.mplayer/subfont.ttf -- Ulion
Ulion <ulion2002@gmail.com> writes:
.sub can not be loaded without .idx file, it seems, or did your .sub is in rar?
Oh, you are right. The .idx differs from .sub and .avi files. Now it can show subtitles, although i still find it display the same complaints, weird.
Also, i press `o', but the OSD menu doesn't show at all.
You need sub font put it as ~/.mplayer/subfont.ttf
I already did: cp "/Library/Fonts/Comic Sans MS.ttf" ~/.mplayer/subfont.ttf But OSD menu still won't show up. -- William
2007/11/11, William Xu <william.xwl@gmail.com>:
Ulion <ulion2002@gmail.com> writes:
.sub can not be loaded without .idx file, it seems, or did your .sub is in rar?
Oh, you are right. The .idx differs from .sub and .avi files. Now it can show subtitles, although i still find it display the same complaints, weird.
Also, i press `o', but the OSD menu doesn't show at all.
You need sub font put it as ~/.mplayer/subfont.ttf
I already did: cp "/Library/Fonts/Comic Sans MS.ttf" ~/.mplayer/subfont.ttf
But OSD menu still won't show up.
Indeed, that need the output message to judge, you can add '-v' to mplayer command line to get a more detail output and post here. The same ttf file you metioned works for me, so probably it's your build of mplayer's problem, such as, compiled with no freetype supported or bad version... So, also check your configure.log, to see the freetype part and post it here. -- Ulion
Ulion <ulion2002@gmail.com> writes:
Indeed, that need the output message to judge, you can add '-v' to mplayer command line to get a more detail output and post here.
,----[ mplayer -v ] | MPlayer 1.0rc2-4.0.1 (C) 2000-2007 MPlayer Team | CPU: Intel(R) Core(TM)2 Duo CPU T7500 @ 2.20GHz (Family: 6, Model: 15, Stepping: 11) | CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 | Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 | get_path('codecs.conf') -> '/Users/william/.mplayer/codecs.conf' | Reading /Users/william/.mplayer/codecs.conf: Can't open '/Users/william/.mplayer/codecs.conf': No such file or directory | Reading /Users/william/etc/mplayer/codecs.conf: Can't open '/Users/william/etc/mplayer/codecs.conf': No such file or directory | Using built-in default codecs.conf. | Usage: mplayer [options] [url|path/]filename | | Basic options: (complete list in the man page) | -vo <drv> select video output driver ('-vo help' for a list) | -ao <drv> select audio output driver ('-ao help' for a list) | vcd://<trackno> play (S)VCD (Super Video CD) track (raw device, no mount) | dvd://<titleno> play DVD title from device instead of plain file | -alang/-slang select DVD audio/subtitle language (by 2-char country code) | -ss <position> seek to given (seconds or hh:mm:ss) position | -nosound do not play sound | -fs fullscreen playback (or -vm, -zoom, details in the man page) | -x <x> -y <y> set display resolution (for use with -vm or -zoom) | -sub <file> specify subtitle file to use (also see -subfps, -subdelay) | -playlist <file> specify playlist file | -vid x -aid y select video (x) and audio (y) stream to play | -fps x -srate y change video (x fps) and audio (y Hz) rate | -pp <quality> enable postprocessing filter (details in the man page) | -framedrop enable frame dropping (for slow machines) | | Basic keys: (complete list in the man page, also check input.conf) | <- or -> seek backward/forward 10 seconds | down or up seek backward/forward 1 minute | pgdown or pgup seek backward/forward 10 minutes | < or > step backward/forward in playlist | p or SPACE pause movie (press any key to continue) | q or ESC stop playing and quit program | + or - adjust audio delay by +/- 0.1 second | o cycle OSD mode: none / seekbar / seekbar + timer | * or / increase or decrease PCM volume | x or z adjust subtitle delay by +/- 0.1 second | r or t adjust subtitle position up/down, also see -vf expand | | * * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * * `----
The same ttf file you metioned works for me, so probably it's your build of mplayer's problem, such as, compiled with no freetype supported or bad version... So, also check your configure.log, to see the freetype part and post it here.
As mentioned previously, i compiled with `--prefix=$HOME --enable-menu'. Now if i tried compiling it with `--enable-menu --enable-freetype', during configure, looks like freetype is correctly recognized: ,---- | Checking for bitmap font support ... yes | Checking for freetype >= 2.0.9 ... yes | Checking for fontconfig ... no | Checking for SSA/ASS support ... no (FreeType >= 2.1.8 needed) | Checking for fribidi with charsets ... no `---- But it failed at the end of make: ,---- | ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib | collect2: ld returned 1 exit status | make: *** [mplayer] Error 1 `---- Could you share your configure options? -- William
William Xu pisze:
The same ttf file you metioned works for me, so probably it's your build of mplayer's problem, such as, compiled with no freetype supported or bad version... So, also check your configure.log, to see the freetype part and post it here.
As mentioned previously, i compiled with `--prefix=$HOME --enable-menu'. Now if i tried compiling it with `--enable-menu --enable-freetype', during configure, looks like freetype is correctly recognized:
,---- | Checking for bitmap font support ... yes | Checking for freetype >= 2.0.9 ... yes | Checking for fontconfig ... no | Checking for SSA/ASS support ... no (FreeType >= 2.1.8 needed) | Checking for fribidi with charsets ... no `----
First of all - don't force "--enable-freetype" to "./configure" Second - you don't have "fontconfig" Thrid - you was asked to check "configure.log" but not "./configure" <stdout> as you included. Here my part configure.log: ============ Checking for freetype >= 2.0.9 ============ #include <stdio.h> #include <ft2build.h> #include FT_FREETYPE_H #if ((FREETYPE_MAJOR < 2) || ((FREETYPE_MINOR == 0) && (FREETYPE_PATCH < 9))) #error "Need FreeType 2.0.9 or newer" #endif int main() { FT_Library library; FT_Int major=-1,minor=-1,patch=-1; int err=FT_Init_FreeType(&library); if(err){ printf("Couldn't initialize freetype2 lib, err code: %d\n",err); exit(err); } FT_Library_Version(library,&major,&minor,&patch); // in v2.1.0+ only :((( printf("freetype2 header version: %d.%d.%d library version: %d.%d.%d\n", FREETYPE_MAJOR,FREETYPE_MINOR,FREETYPE_PATCH, (int)major,(int)minor,(int)patch ); if(major!=FREETYPE_MAJOR || minor!=FREETYPE_MINOR){ printf("Library and header version mismatch! Fix it in your distribution!\n"); exit(1); } return 0; } cc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=k8 -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -I/usr/include/directfb -I/usr/include/SDL -D_REENTRANT -lncurses -lpng -lz -ljpeg -lungif -lasound -ldl -lpthread -ldvdread -lcdda_interface -lcdda_paranoia -ldirectfb -lXext -lX11 -lpthread -lXv -lXinerama -lXxf86vm -lXxf86dga -L/usr/lib -lSDL -laudio -lXt -L/usr/lib -lesd -laudiofile -lm -ljack -o /tmp/mplayer-conf-16435-20664 /tmp/mplayer-conf-20539-20664.c -I/usr/local/include/freetype2 -I/usr/local/include -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz freetype2 header version: 2.3.1 library version: 2.3.1 Result is: yes ########################################## ============ Checking for fontconfig ============ #include <stdio.h> #include <fontconfig/fontconfig.h> int main() { int err = FcInit(); if(err == FcFalse){ printf("Couldn't initialize fontconfig lib\n"); exit(err); } return 0; } cc -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -O4 -march=k8 -mtune=k8 -pipe -ffast-math -fomit-frame-pointer -I/usr/include/directfb -I/usr/include/SDL -D_REENTRANT -I/usr/local/include/freetype2 -I/usr/local/include -lncurses -lpng -lz -ljpeg -lungif -lasound -ldl -lpthread -ldvdread -lcdda_interface -lcdda_paranoia -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz -ldirectfb -lXext -lX11 -lpthread -lXv -lXinerama -lXxf86vm -lXxf86dga -L/usr/lib -lSDL -laudio -lXt -L/usr/lib -lesd -laudiofile -lm -ljack -o /tmp/mplayer-conf-16435-20664 /tmp/mplayer-conf-20539-20664.c -lfontconfig /tmp/mplayer-conf-20539-20664.c: In function 'main': /tmp/mplayer-conf-20539-20664.c:8: warning: implicit declaration of function 'exit' /tmp/mplayer-conf-20539-20664.c:8: warning: incompatible implicit declaration of built-in function 'exit' Result is: yes ########################################## -- Krzysztof 'DK75' Duchnowski GetFirefox - http://www.mozilla.com/firefox/ Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/
Krzysztof Duchnowski <amidk75@gmail.com> writes:
First of all - don't force "--enable-freetype" to "./configure" Second - you don't have "fontconfig" Thrid - you was asked to check "configure.log" but not "./configure" <stdout> as you included.
Okay...i did that. And it turns out that freetype can't be detected correctly was caused by the same error i pasted previously, namely ,----[ configure.log ] | ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib | collect2: ld returned 1 exit status `---- And google tells me it's a bug of leopard, also i find the following workaround to fix it: ,---- | $ LDFLAGS+="-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib" \ | ./configure --prefix=$HOME --enable-menu `---- Thanks for all help ! -- William
participants (3)
-
Krzysztof Duchnowski -
Ulion -
William Xu