Page 1 of 1

freetype-font option won't work

Posted: 02 Jan 2012 13:57
by eNergizer
I get this error when trying to play this subtitled video:
[0x27415c0] freetype spu text error: failed to load font file /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf

When I add the ttf there, it works but I want to force the subtitles into a certain font so I tried launching VLC via this:
vlc "file2.mkv" --sout "#transcode{vcodec=h264,scale=1.0,soverlay}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=:8080/stream.flv}" --sout-keep --sub-track-id=0 --freetype-font=/usr/share/fonts/truetype/freefont/arial.ttf

However I still get the error:
[0x27415c0] freetype spu text error: failed to load font file /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf


Why won't --freetype-font work?

Re: freetype-font option won't work

Posted: 02 Jan 2012 14:32
by Jean-Baptiste Kempf
VLC version?

Re: freetype-font option won't work

Posted: 02 Jan 2012 15:00
by eNergizer
VLC media player 1.1.2 The Luggage

When I open it, it looks like this.
[root@PlayMOAR ~]# vlc
VLC media player 1.1.2 The Luggage (revision exported)
LibVLC has detected an unusable buggy GNU/libc version.
Please update to version 2.8 or newer.
Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS")
Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE")
process 21602: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
[0x16fa6fe0] inhibit interface error: Failed to connect to the D-Bus session daemon: Failed to execute dbus-launch to autolaunch D-Bus session
[0x16fa6fe0] main interface error: no suitable interface module
[0x16fa8b70] main interface error: no suitable interface module
[0x16ee1090] main libvlc error: interface "globalhotkeys,none" initialization failed
[0x16ee1090] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x16fa8b70] [rc] lua interface: Listening on host "*console".
VLC media player 1.1.2 The Luggage
Remote control interface initialized. Type `help' for help.


I compiled it myself with these settings:
./configure --prefix=/usr/local/customvlc/vlc.1.1.2 --enable-shout --enable-x264 --disable-nls --disable-mozilla --disable-a52 --disable-xcb --disable-qt4 --disable-skins2 --disable-v4l2

Re: freetype-font option won't work

Posted: 02 Jan 2012 16:01
by Jean-Baptiste Kempf
do you have fontconfig in it?

Re: freetype-font option won't work

Posted: 02 Jan 2012 21:19
by eNergizer
do you have fontconfig in it?
How can I tell if I have fontconfig in it?

Re: freetype-font option won't work

Posted: 02 Jan 2012 21:37
by eNergizer
I did a
./configure --prefix=/usr/local/customvlc/vlc.1.1.2 --enable-shout --enable-x264 --disable-nls --disable-mozilla --disable-a52 --disable-xcb --disable-qt4 --disable-skins2 --disable-v4l2 --enable-fontconfig

I see that in my config.log it says:

conftest.c:190:35: error: fontconfig/fontconfig.h: No such file or directory


Now how can I get this file? Is it supposed to be apart of the VLC source or it's a third party package I'm already supposed to have?

Re: freetype-font option won't work

Posted: 02 Jan 2012 22:32
by eNergizer
Alright I did yum instal fontconfig-devel
Now the ./configure works and compiled after.

It's using the right font now, thanks for the help Jean-Baptiste Kempf!

Re: freetype-font option won't work

Posted: 02 Jan 2012 22:49
by Jean-Baptiste Kempf
cool.