Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.6: Prevent a VLC crash when watching videos with subtitles Apps
Snow Leopard only hintIt seems the version of X11 that ships with Snow Leopard causes some problems with VLC when it comes to videos with embedded subtitles.

In my case, whenever I tried to open an MKV file that contained subtitles, VLC would get stuck while loading the video and never actually play it. If I tried to quit the application, VLC would immediately freeze, so I'd have to force quit. Annoying to say the least.

Luckily it's pretty easy to fix. Open a Terminal window, copy and paste the following, and press Return (and enter your password when prompted):
sudo chmod a+w /usr/X11/var/cache/fontconfig
Now open your video again and it should work. The first time you try to play a video, it might take a while to load (sometimes a minute or longer), but after that you shouldn't have any problems. Note that you'll have to repeat the process after any OS update (10.6.1, 10.6.2, etc.) or security update.
    •    
  • Currently 2.59 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (17 votes cast)
 
[13,736 views]  

10.6: Prevent a VLC crash when watching videos with subtitles | 7 comments | Create New Account
Click here to return to the '10.6: Prevent a VLC crash when watching videos with subtitles' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.6: Prevent a VLC crash when watching videos with subtitles
Authored by: Anonymous on Dec 14, '09 08:25:44AM

What am I missing here? As far as I know, you don't need X11 to run VLC, there's a native OS X build. On both my Intel Mac boxes, I don't even have X11 installed and I play MKV files with subtitles on a regular basis.

Now if you compiled VLC from source against X11, that's another story. I doubt the majority of OS X users do that.



[ Reply to This | # ]
10.6: Prevent a VLC crash when watching videos with subtitles
Authored by: CaptnEvilStomper on Dec 17, '09 02:42:53PM

I know VLC doesn't require X11 - I'm using the native build and still had this problem after upgrading to Snow Leopard. I'm guessing it caches fonts in that folder regardless of whether X11 is installed or not and it just creates the folder if it doesn't exist. From what I understand the problem is that when Snow Leopard installs X11 it sets the permissions differently than VLC expects, so VLC freezes because it's trying to cache the fonts for the subtitles but it doesn't have write access to the folder. This trick fixes that so VLC can cache the fonts and get on with playing the video. If you don't install Apple's version of X11 that ships with Snow Leopard then you shouldn't have this problem.



[ Reply to This | # ]
10.6: Prevent a VLC crash when watching videos with subtitles
Authored by: Anonymous on Dec 17, '09 03:05:37PM

Sadly, things aren't going to get better for the moment.

http://forum.videolan.org/viewtopic.php?f=12&t=59905#p200203



[ Reply to This | # ]
10.6: Prevent a VLC crash when watching videos with subtitles
Authored by: build6 on Dec 14, '09 02:19:54PM

i think there might be a bug in the current VLC itself, and not so much anything to do with X11 (unless VLC talks to X11 no matter what you do). I'm experiencing a VLC "freeze on first launch" issue as well, and I don't think it has anything to do with subtitling. Things work after I force quit and restart it.



[ Reply to This | # ]
10.6: Prevent a VLC crash when watching videos with subtitles
Authored by: BlaatMekker on Dec 15, '09 02:25:00AM

This might explain why I'm having VLC + MKV issues as well.



[ Reply to This | # ]
10.6: Prevent a VLC crash when watching videos with subtitles
Authored by: CyberSkull on Dec 14, '09 03:59:25PM
Usually for MKV files I go and open them in QuickTime Player (via Perian) and then save it as a QuickTime movie (QuickTime Pro required). Afterwards, I have no trouble with any player.

[ Reply to This | # ]
10.6: Prevent a VLC crash when watching videos with subtitles
Authored by: Gex2501 on Dec 20, '09 02:37:16AM

Finally! I've been looking for this fix forever! My MKV's with subtitles were taking forever to load, and forget about turning the subtitles on and off on the fly. Thank You!



[ Reply to This | # ]