AppleScript Corel Painter Essentials 4
Dec 16

Here is a neat trick that I am sure could be expanded to include even more file types, as submitted by reader Frantz. Thanks, Frantz!

I’ve found a trick allowing me to display Matroska video files in Quicklook without the need of a plugin :

1 / First you need Perian for mkv support in Quicktime : http://perian.org/

2 / Then you need to add a Uniform Type Identifier in Quicktime Player :
- Edit QuickTime Player.app’s /Contents/info.plist
- Add the following code just before the last 2 tags </dict></plist> :
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.movie</string>
</array>
<key>UTTypeDescription</key>
<string>Matroska Video File</string>
<key>UTTypeIconName</key>
<string>generic</string>
<key>UTTypeIdentifier</key>
<string>com.apple.quicktime.mkv</string>
<key>UTTypeReferenceURL</key>
<string>http://www.matroska.org/</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>public.filename-extension</key>
<array>
<string>mkv</string>
</array>
</dict>
</dict>
</array>

3 / In Terminal.app
touch /Applications/QuickTime\ Player.app

Et voila that’s all:

image5qe2.png

19 Responses to “mkv: Matroska video files”

  1. Quick Look Plugin sites | Techitorial Gadget Reviews and Tech Updates Says:

    [...] some good stuff not on the other so it’s worth keeping an eye on both. Highlights include a neat trick for expanding video format support to mkv (Matroska video) files (and in principle others) and a [...]

  2. BlogTrage » Quick Look Plugin sites Says:

    [...] some good stuff not on the other so it’s worth keeping an eye on both. Highlights include a neat trick for expanding video format support to mkv (Matroska video) files (and in principle others) and a [...]

  3. intodimensions.com » Quick Look Plugin sites Says:

    [...] some good stuff not on the other so it’s worth keeping an eye on both. Highlights include a neat trick for expanding video format support to mkv (Matroska video) files (and in principle others) and a [...]

  4. sushiboy Says:

    this is pretty cool… does anyone know how to display thumbnails for mkv files? is there a tutorial anywhere that shows this?

  5. feed me apple snacks » Quick Look Plugin sites Says:

    [...] some good stuff not on the other so it’s worth keeping an eye on both. Highlights include a neat trick for expanding video format support to mkv (Matroska video) files (and in principle others) and a [...]

  6. Naf Says:

    I don’t get step 3? Could you explain it for a newbie?

  7. MrPants Says:

    In order for the OS to update Quicktime based off of the changes you made, “touching” the file will force it to update to the latest changes you made to it.

  8. Quick Look Plugin sites teasered @ Feed UP !! Says:

    [...] some good stuff not on the other so it’s worth keeping an eye on both. Highlights include a neat trick for expanding video format support to mkv (Matroska video) files (and in principle others) and a [...]

  9. iPhone Updates - Apple iPhone Software, iPhone Hardware, iPhone cables, iPhone cases, iPhone News Says:

    [...] some good stuff not on the other so it’s worth keeping an eye on both. Highlights include a neat trick for expanding video format support to mkv (Matroska video) files (and in principle others) and a [...]

  10. iPhone Software » Blog Archive » Quick Look Plugin sites Says:

    [...] some good stuff not on the other so it’s worth keeping an eye on both. Highlights include a neat trick for expanding video format support to mkv (Matroska video) files (and in principle others) and a [...]

  11. MarkOh Says:

    Hi, nice workaround, but i dont get any sound and there is no thumbnail in finder. Any idea?

    Thanks

  12. Tarik Says:

    I did exactly what the tip said and the video works but the sound is deafening screech. How can I fix this please?

  13. Orri Says:

    Minor tweaks result in this working for wmv files, too (assuming you have Flip4Mac installed to allow playing them in the first place):

    UTTypeConformsTo

    public.movie

    UTTypeDescription
    Windows Media Player File
    UTTypeIconName
    generic
    UTTypeIdentifier
    com.apple.quicktime.wmv
    UTTypeReferenceURL
    http://www.flip4mac.com/wmv.htm
    UTTypeTagSpecification

    public.filename-extension

    wmv

  14. Orri Says:

    Oops, didn’t escape any of the characters. Let’s try again:

    <array>
    <dict>
    <key>UTTypeConformsTo</key>
    <array>
    <string>public.movie</string>
    </array>
    <key>UTTypeDescription</key>
    <string>Windows Media Player File</string>
    <key>UTTypeIconName</key>
    <string>generic</string>
    <key>UTTypeIdentifier</key>
    <string>com.apple.quicktime.wmv</string>
    <key>UTTypeReferenceURL</key>
    <string>http://www.google.com</string>
    <key>UTTypeTagSpecification</key>
    <dict>
    <key>public.filename-extension</key>
    <array>
    <string>wmv</string>
    </array>
    </dict>
    </dict>
    </array>

  15. Joseph Says:

    This seems to work for ogg vorbis files.

    <key>UTExportedTypeDeclarations</key>
    <array>
    <dict>
    <key>UTTypeConformsTo</key>
    <array>
    <string>public.audio</string>
    </array>
    <key>UTTypeDescription</key>
    <string>Ogg Vorbis Audio File</string>
    <key>UTTypeIconName</key>
    <string>generic</string>
    <key>UTTypeIdentifier</key>
    <string>com.apple.quicktime.ogg</string>
    <key>UTTypeReferenceURL</key>
    <string>http://www.vorbis.org/</string>
    <key>UTTypeTagSpecification</key>
    <dict>
    <key>public.filename-extension</key>
    <array>
    <string>ogg</string>
    </array>
    </dict>
    </dict>
    </array>

  16. صطيف Says:

    Hi All,

    Orri I thought you missed the first line too.

    The correct lines are:

    UTExportedTypeDeclarations

    UTTypeConformsTo

    public.movie

    UTTypeDescription
    Windows Media Player File
    UTTypeIconName
    generic
    UTTypeIdentifier
    com.apple.quicktime.wmv
    UTTypeReferenceURL
    http://www.google.com
    UTTypeTagSpecification

    public.filename-extension

    wmv

    Regards,

    Steaf

  17. Keith Says:

    Hmm. Is there another way to add a UTI entry _without_ modifying the original Quicktime Player app’s contents? Where are entries of this kinds usually stored in the system? I’m completely up-to-date with the latest rev of the QT app, so I can’t (or too lazy to) check if this info.plist mod will survive a QT rev update.

    As for the sound troubles, it’s likely that the Perian sound prefs are not being honored into the Quicklook Quicktime daemon. The screeching is likely an AC3 soundtrack not being passed through or something like that. That’s my best guess, in any event.

    It’d be nice to build a Quicklook module which uses the mplayer module to preview more esoteric movie (container) formats. I’ll take up programming now, and get back to it in a year.

  18. ankit Says:

    hey.. it has stopped working in 10.5.2 and QT 7.4.5.
    i realized it just a few days back. any chance we can see a separate plug-in like for the other files??
    i think this work around would break every time there is an update. or atleast is likely to.

  19. ankit Says:

    edit : it still works. my plist editor was acting up.
    it still works.
    yay!

Leave a Reply

Site maintained by JonnyMac Interactive Design