Fixing VLC and Matroska .MKV files on Snow Leopard (Mac OS/X 10.6)

Warning: Boring google food article.

Your problem:

Your Matroshka files played fine in Mac OS/X 10.5, but then you updated to Snow Leopard, and now you get tons of error messages, and they may (or may not) play.

If you run VLC from the command line, you see the following error messages:

m_el[mi_level] == NULL
arrrrrrrrrrrrrg Up cannot escape itself
[ass] Init
Fontconfig error: Cannot load default config file
[ass] No usable fontconfig configuration file found, using fallback.

Note: If you’re having some other problem, this probably won’t help you. But it won’t hurt either.

Preparing to Fix the Problem:

You need to (1) enable root access on your computer, and (2) enter a few commands in a Terminal window.

If you haven’t already enabled root access, here’s an excerpt from Apple’s page on how to do it:

Note you should choose a password different from your normal one for this!

How to enable the root user
Mac OS X 10.5 or later

  1. From the Finder’s Go menu, choose Utilities.
  2. Open Directory Utility.
  3. Click the lock in the Directory Utility window.
  4. Enter an administrator account name and password, then click OK.
  5. Choose Enable Root User from the Edit menu.
  6. Enter the root password you wish to use in both the Password and Verify fields, then click OK
  7. .

Actually fixing the problem:

  1. Open a Terminal window. Hint: /Applications/Utilities/Terminal
  2. Type su and hit return. You will be asked for a password.
  3. Enter the password you used for root earlier. If it works, you’ll get a sh-3.2# prompt., or something like it. The important thing is the last character is an octothorpe “#” and not a dollar sign.
  4. Type the following: cd /usr/X11/var/cache/fontconfig and hit return.
  5. Make sure you got into the right directory: Type pwd, hit return, and make sure it printed the directory above (/usr/X11/var/cache/fontconfig.)
  6. Type: chmod 777 . and hit return. Yes, that’s a period in there. If you get any message at all, you did something wrong.
  7. Type exit and hit return. The prompt will change to $.
  8. Type exit again, hit return again.
  9. From the menu bar, Terminal -> Quit
  10. Try to play a MKV file through VLC. It seems it doesn’t work… But it really does; it just has to grind for a few minutes this one time.
  11. Be patient. Wait for your video to come up. When it does, exit VLC.
  12. From now on, when you play MKV files, they will open immediately. Problem fixed!
What your Terminal will look like; exciting, what not?

What your Terminal will look like; exciting, what not?

5 Responses to “Fixing VLC and Matroska .MKV files on Snow Leopard (Mac OS/X 10.6)”

  1. Folletto Malefico Says:

    I was looking a way to solve this problem and yes, it worked for me too it seems! :)

    I can add:
    1. There’s no need to enable the root user (safer). Just use this one-line command from terminal: sudo chmod 777 /usr/X11/var/cache/fontconfig
    2. After running VLC (and waiting for the MKV to start) you can reset the permissions with: sudo chmod 755 /usr/X11/var/cache/fontconfig

    Thanks! :)
    |D

  2. Marcus Says:

    Yay it worked, thanks.

    This has been very annoying to say the least.

    // Marcus

  3. Vin Says:

    You re awesome dude ! I’ve searched many forum and seen they give many complicated comments. But your way re simple and best !!!
    Thank u !!!

  4. drchan Says:

    Perfect fix. Thank you for solving a problem I have been too lazy to fix I got fed up!

    :D

  5. Matt Says:

    Hi there,

    I followed the instructions, but still my files won’t work. They open and play for 3 secs and then stop. When I click and drag the through the video it gives me the following message: Seeking Functionality may be limited

    This file appears to be corrupted. Seeking may be limited or behave unexpectedly.

    Not sure if you have any further suggestions?

    Cheers :-)

Leave a Reply