Converting Video to Wallpaper
Mirage can turn an ordinary video file into a live wallpaper. Just select a video during import, and Mirage automatically generates a video wallpaper package.
Supported Formats
Section titled “Supported Formats”.mp4.mov.m4v
Other extensions are rejected with an unsupported-type message.
What the Conversion Does
Section titled “What the Conversion Does”When you select a video, Mirage creates a new wallpaper package under the import directory and does the following:
- Copies the video file into the newly created wallpaper folder. The conversion does not re-encode the video, so it is fast and lossless, but it also means playback compatibility depends on how the video itself is encoded.
- Generates a preview image: it extracts a frame near the first second of the video and saves it as
preview.jpg(JPEG, quality around 0.85). - Writes
project.json: it generates a minimal project description, withtypeset tovideo,filepointing to the copied video,previewpointing to the thumbnail just generated, andtitletaken from the video file name.
The resulting wallpaper package looks roughly like this:
My Video/├── project.json # type: "video", file, preview, title├── My Video.mp4 # the copied original video└── preview.jpg # the auto-generated thumbnailPlayback
Section titled “Playback”The converted video wallpaper is rendered by VideoWallpaper (AVFoundation) and supports controls such as volume, speed, and fill mode.
- Since there is no re-encoding, prefer codecs that macOS / AVFoundation plays well (such as H.264 / HEVC in mp4 or mov). If a video plays fine in the system’s Quick Look, it usually plays fine as a wallpaper too.
- To compress or transcode further, process the video with an external tool before importing (the project’s build dependencies include FFmpeg, which is used mainly for renderer-side video processing; see System and Build Requirements).
- The conversion is a copy operation, so the original video is unaffected, but it takes up additional disk space.
