Videos are displayed as a static snapshot in QuickLook previews.
@cytec all right, thanks. I wanted to be sure there wasn't something wrong with my installation. :)
/System/Library/Frameworks/Quartz.framework/Frameworks/QuickLookUI.framework/PlugIns/Movie.qldisplay or ./LegacyMovie.qldisplay. (The former uses AVKit, the latter QTKit).
If you rename LegacyMovie.qldisplay to Movie.qldisplay it will work with non-native video containers as on pre-10.9 OS X
The good news is that these are also plugins, so in theory it might be possible to produce a similar plugin for non-native video files.
I think this is impossible, because all *.qldisplay IDs are hardcoded into QuickLook.framework
The bad news is that I can't see any evidence that OS X looks anywhere outside of /System for such plugins, and the plugin interface (QLDisplayBundle) is undocumented and non-trivial.
Maybe there is a way to choose display bundle programmatically but I don't know how to do this.
If you rename LegacyMovie.qldisplay to Movie.qldisplay it will work with non-native video containers as on pre-10.9 OS X
LegacyMovie.qldisplay does OK on some codec/container combinations if you have Perian installed, but it's painfully slow on some of my .mkv test files. Weirdly it can't handle some combinations e.g. DV, or H.264 in .mts, that Movie.qldisplay handles fine.
I've created a new branch LegacyMovie which defers to LegacyMovie if LegacyMovie can preview the content, and provides static previews otherwise.
For this to work you have to:
- Be running OSX 10.9 or 10.10. (The renaming/symlinking trick doesn't work from 10.11 due to SIP).
- Install Perian or some other source of QT codecs.
- Move /System/Library/Frameworks/Quartz.framework/Frameworks/QuickLookUI.framework/PlugIns/Movie.qldisplay out the way.
- Symlink LegacyMovie.qldisplay as Movie.qldisplay (
sudo ln -s LegacyMovie.qldisplay /System/Library/Frameworks/Quartz.framework/Frameworks/QuickLookUI.framework/PlugIns/Movie.qldisplay).
Let me know how it works for you if you try this.
Marginal,
Need some clarification (I'm not well versed in coding/computer terms). When you say "Symlink LegacyMovie.qldisplay as Movie.qldisplay" followed by the terminal commands, do you simply copy and paste that text into terminal? Thanks in advance.
Marginal,
Clarification no longer needed. I just copied and pasted into terminal and it worked like a charm! I even tried it in 10.11 (El Capitan) and it worked! All I had to do was disable System Integrity Protection, add the command to terminal, and re-enable System Integrity Protection. Thanks for this!
LegacyMovie.qldisplay does OK
Marginal, if I'm to understand correctly is there now a workaround that makes QLVideo work (as in play video) with more video formats than before? For example, QLVideo doesn't currently play .flv video formats and shows still images. If I perform the SymLink directions above, will .flv videos play in QuickLook now?
Also, in your instructions you say to move "Movie.qldisplay out the way". Can I just rename it with an underscore in front of it so I can easily change it back later if needed? Also, is changing this stuff risky to the system stability?
The other thing I'm trying to understand - Do I have to use the new branch LegacyMovie you link to for any of this to work? I don't see a package download for it, so I'm confused as to how I should implement it with your instructions above.
Thank you!
The instructions above allow .flv and other "non-native" video types to play in QuickLook on 10.9 and 10.10, and on 10.11 and later if you first disable SIP.
in your instructions you say to move "Movie.qldisplay out the way". Can I just rename it with an underscore in front of it so I can easily change it back later if needed?
Yes.
Do I have to use the new branch LegacyMovie you link to for any of this to work?
That branch has been folded into the master branch. Just make sure you're on the latest release of QLVideo. Actually QLVideo isn't required at all to get .flv videos to play in QuickLook, but it's still useful to have for videos that the LegacyMovie QuickLook plugin can't handle.
Thank you, Marginal. It works great.
Cheers Marginal, works as advertised. Haven't installed Sierra yet, but i assume it works the same way as in 10.11?
christopheranderton, I can confirm the symlink trick still works in Sierra. I had it working in Mavericks, then upgraded to Sierra and during the upgrade process the files were overwritten with new ones and it stopped working in Sierra, of course.
I disabled SIP in Sierra, followed the same steps from the May 5 post above (except I already had Perian installed so that was skipped), then I reenabled SIP in Sierra afterwards. I should note there's a current bug in Sierra 10.12.0 where the Recovery System doesn't show the proper menu bar to get to the Terminal app. I followed some advice here and kept trying until I got the menu bar back and then was able to open Terminal and enable SIP back on again.
Now I'm able to use QuickLook within Sierra on all kinds of formats including .webm, .flv videos that play video within the QuickLook window once again.

Marginal, it does play mp3. It didn't play a .flac file I tested, but I don't think I ever had that working with QuickLook even back with Mavericks and earlier. I couldn’t find any readily available APE audio files to test.

Marginal, thank you so much for all your hard work. I now have all the benefits of Sierra without the drawback of losing QuickLook video on many formats.
Dammit. 10.12.1 broke it again. I'll see if the same steps works again later to fix it and post update.
I have bad news and I'm very bummed. 10.12.1 broke it in some new way I can't resolve.
In the past when I upgraded to 10.12.0, it disabled QLVideo and I was able to simply disable SIP and reimplement the same steps I outlined in my post above.
Now with 10.12.1 I noticed that the symlink was still in place, but QLVideo just stopped working anyway. I removed the symlink after disabling SIP again and tried the terminal command:
sudo ln -s LegacyMovie.qldisplay /System/Library/Frameworks/Quartz.framework/Frameworks/QuickLookUI.framework/PlugIns/Movie.qldisplay
No dice, still didn't work. So I tried reinstalling the QLVideo package again, removed the symlink again, redid the terminal command again, restarted, etc. and still doesn't work.
Marginal, do you have any ideas for workarounds to get it working again in 10.12.1?
@gitguys @Marginal It still works in 10.12.1. Tested in a Virtual Machine with a vanilla install of 10.12.1. Installed Perian, QLVideo and followed the instructions from this thread. No problem at all. Created a ”test” with videos encoded in various ways. Only ”problems” was with some MKV (not all) and WebM files (only showed a two frames still image preview). Ah, also, a VC-1 file did not work. But that's to be expected.
You may need to reinstall Perian with SIP disabled. That's what i would try (if you not already have tried that).


@christopheranderton thank you for your testing!
Were you able to get flash video .flv or AVI to work? That used to work in 10.12.0 and stopped with 10.12.1 and I don't see any examples of those formats working in your post.
I think the difference may be that you started with a vanilla 10.12.1 install instead of perhaps updating a previous setup from 10.12.0 to 10.12.1 like I did.
Either way, your tests got me thinking and I was able to not only get QLVideo working again, but it also works with .flv and .avi formats again now as well.
I copied the old LegacyMovie.qldisplay folder from my 10.12.0 version and replaced it over to my 10.12.1 upgrade LegacyMovie.qldisplay folder that I had installed on my secondary hard drive. I then did the symlink Terminal command shown by Marginal above and it's all working again in 10.12.1. Such a relief.
Beforehand, I tried reinstalling QLVideo, etc. and I even tried reinstalling Perian and reimplementing the symlink steps, etc. to no avail. It wasn't until I copied over the old LegacyMovie.qldisplay folder did it finally fix the issue.
Hopefully this will help out anyone else who updates from 10.12.0 to 10.12.1. If anyone has any questions, I be happy to assist with more details.
@gitguys Ah, forgot the AVI. But .flv using codecs like VP8 or H.264 worked without problems. I still waiting to upgrade to Sierra from El Capitain on my main working machine. Still waiting for updates or solutions for some essential software i'm working with. But when i do, i will see if my experiences are the same. If so, i'm gonna try to find out why.
@gitguys try reinstall Perian
Thank you, gordon for your help. Not certain if you saw my last post, but I did get it working in Sierra 10.12.1.
The only issue that really still bothers me is QuickTime Player Pro 7 AV controls don't work properly (brightness/contrast/etc.) if I change the video properties (turn video upside-down, etc.) -- but that's not related to QLVideo at all I doubt.
FYI - Followed my steps fro 10.12.1 and now working again in 10.12.2
Got it working again in 10.12.3.
-
Disabled SIP
-
Used my old copy of LegacyMovie.qldisplay that I've kept from 10.12.0 to copy over folder of same name at this path:
/System/Library/Frameworks/Quartz.framework/Frameworks/QuickLookUI.framework/PlugIns/
I guess the 10.12.2 LegacyMovie.qldisplay folder would work too, but I'm just sticking with what I know works from before.
- Ran terminal command:
sudo ln -s LegacyMovie.qldisplay /System/Library/Frameworks/Quartz.framework/Frameworks/QuickLookUI.framework/PlugIns/Movie.qldisplay
- Works again.
- Re-enabled SIP
It stopped working for me. Webms won't play anymore. :(
Tried reinstalling QLVideo and Perian and re-linking the LegacyMovie -> Movie without success.
I'm on 10.12.5 and updated a short while ago.