freetype-font option won't work

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
eNergizer
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Mar 2011 04:11

freetype-font option won't work

Postby eNergizer » 02 Jan 2012 13:57

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: freetype-font option won't work

Postby Jean-Baptiste Kempf » 02 Jan 2012 14:32

VLC version?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

eNergizer
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Mar 2011 04:11

Re: freetype-font option won't work

Postby eNergizer » 02 Jan 2012 15:00

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: freetype-font option won't work

Postby Jean-Baptiste Kempf » 02 Jan 2012 16:01

do you have fontconfig in it?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

eNergizer
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Mar 2011 04:11

Re: freetype-font option won't work

Postby eNergizer » 02 Jan 2012 21:19

do you have fontconfig in it?
How can I tell if I have fontconfig in it?

eNergizer
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Mar 2011 04:11

Re: freetype-font option won't work

Postby eNergizer » 02 Jan 2012 21:37

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?

eNergizer
Blank Cone
Blank Cone
Posts: 21
Joined: 12 Mar 2011 04:11

Re: freetype-font option won't work

Postby eNergizer » 02 Jan 2012 22:32

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!

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: freetype-font option won't work

Postby Jean-Baptiste Kempf » 02 Jan 2012 22:49

cool.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 28 guests