QuickLookVideo icon indicating copy to clipboard operation
QuickLookVideo copied to clipboard

Issue with a video; but mainly: praise and respect

Open MikeRich88 opened this issue 8 months ago • 6 comments

https://samples.ffmpeg.org/asf-wmv/Alice%20Deejay%20-%20Back%20In%20My%20Life.asf - the video doesn't seem to move at all? Actually, I ought to update to 3.05 first, I see the updates are coming fast!

But also, OMG. QuickLookVideo 3.0 delighted me.

A couple of years ago I had the occasion to use an old iMac with Leopard that had Perian and all kinds of different video files, RM and ASF and MKV and whatever and I could QuickLook all of them and I thought "Wow, this is cool. Damn, we lost some something. It's gone forever."

And then deep in the bowels of Apple, for some unknown reason, we got Media Extensions, and then we got QuickLookVideo 3.0 because someone had the tenacity to figure out all the BS and hook up ffmpeg to QuickTime again.

Image

Look at that. You can just load the RM file in QuickTime again. It just plays.

Image

Never thought I'd see the day. You + whatever random people somewhere in Apple brought back something delightful. Respect.

MikeRich88 avatar Mar 13 '26 01:03 MikeRich88

I'm having issues with QuickLook not even working at all. But if I open it in QuickTime, it works.

This is legit Perian 2.0 beta. You should legit ask them if you can call it that.

MikeRich88 avatar Mar 13 '26 01:03 MikeRich88

I suspect that Media Extensions have been in macOS in some form for a while to support Apple's Pro codecs, but they were first documented publicly with macOS 15. I'm pleasantly surprised that I managed to get them working with FFmpeg since the expectations of the two APIs are so different. I've only just come across this blog post which mentions some of the Perian developers' difficulties working with QuickTime and I'm glad I didn't read it when I started out otherwise I may have been too discouraged since I see similar issues with AVFoundation.

I did consider asking the Perian developers whether I could use their name but decided I didn't want to look like I was trying to piggyback on their reputations.

Re this particular file: AVFoundation thinks it understands .asf (and .avi) files and the Microsoft version of the MPEG-4 codec that this file uses. It's wrong about that, but by the time it figures this out it's too late for this app to do anything about it. I'll leave this issue open in case some new approach occurs to me.

Marginal avatar Mar 13 '26 15:03 Marginal

I suspect that Media Extensions have been in macOS in some form for a while to support Apple's Pro codecs, but they were first documented publicly with macOS 15.

100% for sure. I've always suspected something like this. How else could the pro video codecs be a separate download, if there were not some kind of plugin/extensibility framework in AVFoundation?

Interestingly, there also seems to be an entirely separate parallel framework for adding audio codecs, and it predates the pro video codecs. The exact name escapes me now, but it has to do with CoreAudio "components".

AVFoundation thinks it understands .asf (and .avi) files and the Microsoft version of the MPEG-4 codec that this file uses.

Weird that it tries to look at an ASF file at all - that should be totally foreign. That kinda "DivX" or "old school pre-AVC MPEG-4" format though, maybe sure.

MikeRich88 avatar Mar 20 '26 22:03 MikeRich88

Here's a really stupid idea: Did you try naming it "AAAAAAQuickLook Video" or some such? Would that cause QL Video to be loaded earlier and override QuickTime's defaults?

(or maybe the opposite is true and it has to be named ZZZZZQuickLook Video?)

MikeRich88 avatar Mar 20 '26 22:03 MikeRich88

Interestingly, there also seems to be an entirely separate parallel framework for adding audio codecs, and it predates the pro video codecs. The exact name escapes me now, but it has to do with CoreAudio "components".

Thanks for that. I didn't know Audio Components existed but it looks like they've been around for ages. This should allow me to support things like WMA in .avi.

Weird that it tries to look at an ASF file at all - that should be totally foreign. That kinda "DivX" or "old school pre-AVC MPEG-4" format though, maybe sure.

Yes it's weird. Presumably back when they created AVFoundation there was some reason for it to support some kinds of .avi or .asf files, but the support is half-hearted and just gets in the way.

Here's a really stupid idea: Did you try naming it "AAAAAAQuickLook Video" or some such? Would that cause QL Video to be loaded earlier and override QuickTime's defaults?

v2 of this app used this kind of approach - it used identifier "com.apple..." to try to get in before macOS's QuickLook previewer and thumbnailer. It was never a reliable solution so I'm not keen to keep doing this sort of thing.

Marginal avatar Mar 20 '26 23:03 Marginal

I suspect that Media Extensions have been in macOS in some form for a while to support Apple's Pro codecs, but they were first documented publicly with macOS 15

I don't believe so - Final Cut Pro still embeds a lot of its codec support.

Image

latenitefilms avatar Mar 20 '26 23:03 latenitefilms