ghacks Technology News

Building Font Cache, VLC And MPlayer Troubleshooting

Nothing is more frustrating than having to wait until a media player has finished building the font cache, before a video can be played on the local computer system. Especially so, if the “building font cache” window appears every time the media player is used to play videos.

The first question that comes to mind is this: Why is there a font cache at all? It’s video, not some textual content that is displayed in the program window. The font cache apparently is used for subtitles and On Screen Displays (OSD). Both VLC Media Player and MPlayer (and variants like SMPlayer) make use of a font cache to display subtitles and OSD.

Both media players seem to create the font cache regardless of the fact if it is needed or not to view the video.

building font cache

building font cache

In theory, the font cache is build once, and stored in a directory on the hard drive for faster access to the required data.

Font Cache Location

VLC stores the font cache in the AppData folder in Windows 7, more precisely under username > AppData > Roaming > vlc. The file uses a long cryptic file name and makes use of the extension cache-2. Windows XP users will find the font cache in Documents and Settings > username > Application Data > vlc.

font cache directory

font cache directory

The most common MPlayer font cache locations are username > fontconfig > cache for Windows 7 (and Vista probably as well), and Documents and Settings > XPMUser > fontconfig > cache for Windows XP.

The cache file is as cryptic as the VLC one, seems to use the same generator, but uses the cache-3 extension instead.

Troubleshooting Building Font Cache Issues

The most common problem related to the font cache is the repeated generation of the font cache, followed by crashes and hangs during the building of the cache.

VLC offers no option to disable font caching, at least not directly in the Windows client. Users who are experiencing issues with it should check the VLC directory under user to see if the font cache file is generated. If it is not it could be a rights issue or permission problem.

Deleting the contents of the cache directory to force the player to build the font cache again could resolve the issues as well. Several users have reported problems building the font cache if the AppData folder is stored on a network drive.

It is a bit different if MPlayer is concerned. SMPlayer for instance can pass parameters to MPlayer, and one of those parameters can be used to prevent the building of the font cache.

To test that press CTRL-P in SMPlayer to open the options. Switch to Advanced > Options for MPlayer and enter -nofontconfig in the Options field.

no font config

no font config

Some users may also need to change the subtitle display format. This is done by clicking on Subtitles > Font and colors. A click on Enable normal subtitles should resolve the issue.

A last resort is the use of a process monitor to see if a specific font cannot be loaded by the video player. Process Monitor is a free Microsoft tool that displays those information. The easiest way to use the program is to create a new filter for vlc.exe (or the name of the video player that is used on the PC) to see only the activity of that player.

Using portable media players

Another possibility is to make use of portable media players. This can be especially helpful in cases where the font cache file is not generated, or generated whenever a video is played.

The portable version of VLC is available here, a portable version of SMPlayer can be downloaded from the official project website.

Portable VLC will still generate a font cache, but it will be stored in the portable directory, not in AppData or another Windows system directory. This alone could resolve several of the issues users have with the building of the font cache.

The portable version of SMPlayer makes use of the -nofontconfig parameter so that the font cache is not build during usage.

Share your tips: Have you noticed the building font cache message in your video player? Let us know in the comments.

Related Articles:

MPlayer WW, Lightweight MPlayer Frontend
Font Cubes Font Collection
AMP Font Viewer An Advanced Font Manager
Change Firefox’s Default Font With Theme Font And Size Changer
MozillaCacheView, Firefox Cache Management Software

Enjoyed the article?: Then sign-up for our free newsletter or RSS feed to kick off your day with the latest technology news and tips, or share the article with your friends and contacts on Facebook, Twitter or Google+ using the icons below.



About the Author:Martin Brinkmann is a journalist from Germany who founded Ghacks Technology News Back in 2005. He is passionate about all things tech and knows the Internet and computers like the back of his hand. You can follow Martin on Facebook or Twitter.

Author: , Sunday August 1, 2010 -
Tags:, , ,


Responses so far:

  1. Anonymous says:

    Why not make use of the mplayer.conf?

  2. Mike J says:

    Huh, I have never even seen this “font cache” pane; videos play at once for me, using VLC & XP SP3.

    • Martin says:

      Mike, in theory this should have only been displayed once to you, at the very first video that you played with VLC. The time this window is displayed depends largely on the number of fonts in your font directory.

      • Mike J says:

        huh, I lucked out for a change?? Amazing!!
        Apparently VLC keeps this info through version updates, but I didn’t see this message after a fresh OS install about 8 weeks ago, & a new VLC.

  3. myo says:

    yes, yes, i have the same problem. sometimes, VLC crashes when it is playing .mov file.

  4. Kishore says:

    Error:
    Buidling font Cache pop-up

    Solution:

    Open VLC player.

    On Menu Bar:

    Tools
    Preferences

    (at bottom – left side)
    Show settings — ALL

    Open: Video
    Click: Subtitles/OSD (This is now highlited, not opened)
    Text rendering module – change this to “Dummy font renderer function”

    Save
    Exit

    Re-open – done.
    Progam will no longer look outside self for fonts

    Source – WorthyTricks.co.cc

  5. javier says:

    @Kishore, I’ll try your tips, but does this mean it will no longer show subtitles either?
    I do use subtitles, but the fontcache dialog box pops up (almost) everytime I play a file.

    Could this be related to the fonts I have installed? Or if I add/remove fonts to my system?

    I’ll try to do a fresh install also, if your tips does no work. I’ll post back here later…

    /thanks
    /j

  6. Kishore says:

    @ Javier, The trick i posted will show up subtitles too. If not,

  7. Kishore says:

    @ Javier, The trick i posted will show up subtitles too. If not,Dont worry, VLC is currently sorting out this issue and the next version will be out soon.

    No probs @ Martin !! Its my pleasure

  8. Ted says:

    Try running LC with administrator privileges. That seemed to fix it for me

Leave a Reply   Follow Ghacks   Subscribe To Comment Rss

Subscribe without commenting

© 2005-2012 Ghacks.net. All Rights Reserved. Privacy Policy - About Us