Lurker News
Ever since Apple introduced their video wallpapers I wanted to be able to put custom videos there. I decided to reverse engineer and see what I can do.

I built Phosphene to sell it, but the existing competitors were polished enough that the time it would have taken to catch up wasn't going to pay off. So I'm open-sourcing it.
WallpaperExtensionKit.framework is what powers macOS wallpapers. It controls what’s shows in the Settings app. It took a lot of trial and error to replicate the behavior, but the result is that your custom wallpapers appear alongside everything else. I wanted to have an “add” button there too, but I couldn’t find a way to do so, so there’s a companion app that will put your video where it needs to be.
Unlike Apple's Aerials, the video keeps playing on the desktop (not just the lock screen). The renderer drives AVSampleBufferDisplayLayer directly with PTS-offset gapless looping, and pauses or downshifts based on thermal state, battery level, brightness, and window occlusion.
It’s free and works well.

Comments (108) 38 threads

encore2097#
Very neat. I was confused at first, I was like you can download the video screensavers.. why scrape the frames. Then I saw your comment and read I can use my own videos for desktop and lock screen. Great work! Dont bury the lede! A title with the hook of what and how would be super helpful!
buildbot6 replies#
As much (fairly well deserved) hate as Tahoe gets, the video wallpapers and transparency are such a fun Windows Vista vibe I get nostalgia. Time to set this up with the Vista waterfall wallpaper and reallllyyy feel like it’s 2007!
riddlemethat2 replies#
I’m imagining dozens of people worldwide sharing your nostalgia for Vista.
zaps1 reply#
“Good old Vista. People give it a bad press but I’m never upgrading, why would I? It just feels like a good pair of jeans.”
devilbunny1 reply#
It wasn’t a horrible OS. It just broke XP’s “it runs on practically anything” before the hardware was really there. And 7 was, as we all know, the most perfect Windows has ever been. Windows 7 Media Center was a magnificent DVR and a great movie-playing box.

Continue this thread — 1 reply

Gigachad2 replies#
It's called frutiger aero now. Lot of people very bored with modern safe design nostalgic for when tech and UI was weird and bold.
voidUpdate1 reply#
The funniest thing about the "frutiger aero" thing is that it looks nothing like how I remember vista looking

Continue this thread — 1 reply

darkwater#
Let a sufficient amount of time pass, and what people knew in their children/teenage years will be remembered with nostalgia.
_kb5 replies#
What do you mean Windows Vista "nostalgia"? That makes me feel a little long in the horn.
ebbi#
guy_holding_shoulder.jpg
geerlingguy1 reply#
There are likely a number of folks on this forum now who were born after Vista was released.
_kb2 replies#
Nope. 2007 is like 2 or 3 years ago, tops.

Continue this thread — 2 replies

Springtime1 reply#
> That makes me feel a little long in the horn

I see what you did there :)

ChrisMarshallNY#
I attended the Longhorn event, where they played Director scripts, and told us it was “live code.”
samat1 reply#
Still burned they did not ship winFS then
breppp#
Good thing it eventually grew to replace NTFS
harrouet#
Vista is what made me get my first Mac. I hope Apple does not make the same mistake.
wpm#
The moving wallpapers are near the first few times but I can't turn it off. I had to dig deep into WallpaperKit (I mean really? It's a friggin wallpaper) to find the static last frame of the wooshy moving BS.
asimovDev1 reply#
https://windowswallpaper.miraheze.org/wiki/Windows_Vista

which waterfall are you talking about? i am also surprised to see how many wallpapers were apparently available on Vista. All I remember is the default green gradient thingie and I think I had the bamboo forest on at some point

dspillett#
> All I remember is the default green gradient thingie and…

IIRC at that time users were split fairly completely into three types: those who customised their OS look a lot, sometimes spending far too much time on it (I was one of them back then), those who had developed a preferred look and just kept that as much as possible between OS changes, and those who just used the defaults and got on with whatever else. This means the other wallpaper that someone at MS put effort into collecting together hardly ever got seen: many users kept the one default, and almost all who didn't had something that they chose from other sources. Maybe the other included images might have seen the light of day more often if there had been an explicit “choose your wallpaper” prompt as part of user on-boarding.

jermaustin12 replies#
My big problem with Tahoe, is the lock screen animation stutters and freezes CONSTANTLY. I'm on an M3 Pro. If I can watch 4K video with no dropped frames, a simple video background should work as well, and if it doesn't, it shouldn't exist.
radley#
Are you using a Studio Monitor? Lock screen videos are incompatible with Settings > Displays > Refresh rate > Adaptive. You have to use a fixed frame rate (60 or 120 Hz).
peapicker#
I have this problem a few times a day on my corporate M4 Pro when I lock the screen... with 60Hz set. It happens when the two security monitoring app corporate insists on are scanning harder b/c the screensaver kicked in. My personal macbook pro is fine.
philsnow#
I'm feeling nostalgic for ~1998 when I ran xscreensaver hacks in the background on the root X window (so the "desktop" I guess)
postalcoder2 replies#
Wow, thank you for this. I've been working on a screensaver suite but LegacyScreenSaver is so janky. I was hoping someone would figure out apple's private wallpaper framework and you did!
mikestaas#
OMG, LegacyScreenSaver is such a memory hog!
cwizou#
As far as I can tell this is for WallpaperAgent, an extension to `com.apple.wallpaper` that are ran by WallpaperAgent on the desktop. For screensavers check my other post, I posted a sample the private screensaver api to bypass that.

Apple's uses both for their own "Aerials" and they have a sync system to share the position between the screensaver player and the desktop player.

tharropoulos1 reply#
Really nice work. We went down a similar rabbit hole recently and reverse engineered the Aerials catalogue to figure out how Apple wires this stuff up, so seeing another open source project doing this is great. The detail I love most and one I can't replicate on our own tool is how the animation persists between the login window and the live desktop. We built phonto as a cross platform take on the same idea, https://github.com/museslabs/phonto. I was about to start writing an article on the whole reverse engineering process and this might be the nudge I needed to start working on it.
kageroumado#
Thank you! The way it works is that the video playback is shared between the lock screen and the desktop, and Apple’s framework transparently switches the surface it’s displayed to.

Load more comments