Find the sharpest frame of each shot in a video, pick the best pose, and export it as a full-resolution PNG, optionally AI-upscaled.
pip install wallpaper-frame-picker Copy PIP instructions
Wallpaper Frame Picker finds the sharpest frame in every shot of a video, lets you pick the frames with the pose you want, and exports them as full-resolution PNGs. It is made for pulling wallpapers and stills out of trailers, music videos and animation, where motion blur makes most frames unusable. An optional AI upscaling step runs the exported frames through Real-ESRGAN or most other models on OpenModelDB.
It has a desktop app and a command-line tool that share the same analyses, selections and models.
Every shot of the chosen part of the video gets a sheet of its sharpest frames. A star marks the sharpest frame, and a check mark shows the frames you picked.
The Viewer steps through any frame. The 1:1 loupe shows real pixels, and the bars above the timeline show how sharp each frame of the shot is.
With an upscaling model chosen, the loupe compares plain resizing with the model's output.
The screenshots show frames from Spring (2019) by Andy Goralczyk and the Blender Foundation, licensed under CC BY 4.0. The frames appear inside the app's interface, and the upscaled panel is the output of RealESRGAN_x2plus.
Each release has a standalone app for Linux, Windows and macOS. It needs no Python, no package manager and no FFmpeg. Run one command, or download the file from the releases page and open it.
Linux (x86_64), in a terminal. The app is an AppImage:
curl -fLo WallpaperFramePicker.AppImage https://github.com/onlykshitij/wallpaper-frame-picker/releases/latest/download/WallpaperFramePicker-x86_64.AppImage && chmod +x WallpaperFramePicker.AppImage && ./WallpaperFramePicker.AppImage Windows (x86_64), in PowerShell:
irm https://github.com/onlykshitij/wallpaper-frame-picker/releases/latest/download/WallpaperFramePicker-windows-x86_64.exe -OutFile WallpaperFramePicker.exe; .\WallpaperFramePicker.exe macOS (Apple Silicon), in Terminal:
curl -fLo WallpaperFramePicker.zip https://github.com/onlykshitij/wallpaper-frame-picker/releases/latest/download/WallpaperFramePicker-macos-arm64.zip && ditto -x -k WallpaperFramePicker.zip . && open WallpaperFramePicker.app After that, start it again with ./WallpaperFramePicker.AppImage, WallpaperFramePicker.exe or open WallpaperFramePicker.app. AppImage integration tools such as Gear Lever or AppImageLauncher can add the Linux app to your application menu, with its icon. AppImages run through FUSE, which desktop distributions include; where it is missing, start the app with ./WallpaperFramePicker.AppImage --appimage-extract-and-run.
The download is a small launcher, about 15 MB. The first time it starts, it shows an Install dependencies window that lists what it needs, with sizes, about 230 MB in all:
Press Install dependencies and the window shows each step as it runs. If something fails, the full log stays in the window, with a Copy log button, and is also saved to install.log in the data folder. Later launches start the app directly and work offline. To install everything without the window, for example on a server, run the launcher with --install-deps.
The launcher checks download certificates with the operating system, as a browser does, and also accepts Mozilla's list of root certificates, the one Firefox and uv use. Downloads therefore work on a Windows that has not fetched a root certificate yet, and on company networks that inspect secure connections, as long as the network's own certificate is installed on the computer.
The Linux launcher runs on any 64-bit glibc distribution from about 2019 on (glibc 2.28 or newer), including Debian 10+, Ubuntu 20.04+, Fedora, RHEL, AlmaLinux and Rocky Linux 8+, Arch and openSUSE. It installs system packages with apt, dnf, zypper or pacman; on other distributions it lists the libraries to install yourself. On RHEL-compatible systems in an X11 session, one library (libxcb-cursor) comes from EPEL, so enable it first with sudo dnf install epel-release. Distributions built on musl instead of glibc, such as Alpine, are not supported.
The apps are not code-signed. Downloaded with the commands above they open directly. Downloaded through a browser, Windows shows a SmartScreen warning (choose More info, then Run anyway) and macOS refuses the first start (right-click the app, choose Open, then Open again).
On Linux and macOS the same app also runs the command line, as ./WallpaperFramePicker.AppImage cli ... or WallpaperFramePicker.app/Contents/MacOS/WallpaperFramePicker cli .... On Windows the command line is a separate download, WallpaperFramePicker-cli-windows-x86_64.exe.
The app is on PyPI. With uv, one command runs it:
uvx wallpaper-frame-picker To run the newest unreleased code instead, use uvx --from git+https://github.com/onlykshitij/wallpaper-frame-picker wallpaper-frame-picker.
Or install it with pip into Python 3.10 or newer, which gives you the wallpaper-frame-picker and wallpaper-frame-picker-cli commands:
AI upscaling runs on PyTorch, a download of about 3 GB, so nothing includes it up front. The first time you pick a model, the app asks before downloading PyTorch into a separate environment. If uv is not installed, it also downloads its own copy of uv (about 20 MB) to do that. Everything after that first time works offline.
With the Python install you can add PyTorch yourself instead, with pip install 'wallpaper-frame-picker[upscale]' or uv run --extra upscale wallpaper-frame-picker in a clone. The upscaler then runs on the same Python as the app.
On Linux, PyTorch from PyPI includes CUDA support. On Windows, PyPI only has the CPU build; for an NVIDIA GPU, install the CUDA build into a Python install by following pytorch.org and use the upscale extra. Apple GPUs are used through MPS, which has not been tested.
Each sheet frame has a label like f431 0:17.958 · sharp 92% motion 3.1:
In the Viewer, the bar strip above the timeline shows every frame of the current shot. Taller bars are sharper, gray ticks mark the frames on the shot's sheet, and blue marks show selected frames. Click a bar to jump to that frame. Animation often holds a pose for 2 or more frames, so if the best pose has a low score, check the frames next to it.
With "Compare in the Viewer loupe" on, the loupe shows two panels when you hold the mouse still over the picture. The left one is the area enlarged by plain resizing, the right one is the model's output, both at the output size you chose.
On an RTX 3090, a compact model upscales a 3840x1636 frame 4x in about 1 second and a 6-block ESRGAN model in about 5 seconds. Bigger models take longer. The upscaler works in tiles, so large frames fit in limited VRAM.
Upscaling cannot bring back detail a video never had. It invents texture, and on animation it tends to smooth away film grain. If a frame already has more pixels than your screen, "Same size as the video" is usually the most useful setting.
Use model files from sources you trust. spandrel reads .pth files with a restricted unpickler, and .safetensors files cannot carry code at all.
Files are named _S014_f00431.png (shot and frame number), or _f00431.png for frames outside the analyzed range. Upscaled copies add the model and scale, as in _S014_f00431_RealESRGAN_x4plus_anime_6B_4x.png.
wallpaper-frame-picker-cli analyze video.mp4 --from 1:20 --to 2:05 wallpaper-frame-picker-cli shots video.mp4 wallpaper-frame-picker-cli sheets video.mp4 sheets/ wallpaper-frame-picker-cli export video.mp4 frames/ --picks sheets/picks.txt analyze scores the frames and splits the range into shots. shots lists the shots with their frame numbers and sharpest frame. sheets writes overview sheets with one frame per shot, a sheet of candidates for each shot, and picks.txt with one line per shot set to its sharpest frame. Each line is a name and a frame number, and text after # is ignored. Change the numbers to the poses you want; running sheets again keeps your edits. export writes PNGs for --frames 431 862, --picks FILE, or --selected (the frames selected in the app). Add --upscale MODEL for upscaled copies, --scale 2 to set their size, and --no-original to skip the plain frames. upscale --model MODEL IMAGE... upscales image files you already have. models lists installed models, and models --download realesr-animevideov3 fetches one of the official Real-ESRGAN models. Where files go What Default location Override Analyses, thumbnails, shot edits, selections the user cache folder, ~/.cache/wallpaper-frame-picker on Linux FRAME_PICKER_CACHE Upscaling models the user data folder, ~/.local/share/wallpaper-frame-picker/models on Linux FRAME_PICKER_MODELS The standalone app's Python, Qt, PyAV, OpenCV and NumPy the user data folder, in runtime/ FRAME_PICKER_DATA The launcher's install log the user data folder, install.log FRAME_PICKER_DATA The app's own copy of uv, if it needed one the user data folder, in bin/ FRAME_PICKER_DATA; FRAME_PICKER_OWN_UV=1 uses this copy even when uv is on PATH App settings Qt's settings file for wallpaper-frame-picker An analysis of a 4-minute 4K video takes about 150 MB, mostly thumbnails. Deleting the cache folder only means the next analysis starts from scratch.
Each frame is split into a grid of tiles, 16 across. A tile's sharpness is the mean squared Laplacian of its brightness, measured at half and quarter resolution, because film grain dominates at full resolution. A frame's score is the mean of its 8 sharpest tiles. When the background is out of focus, those tiles sit on the subject, so motion blur on the subject lowers the score. Scores only compare frames within one shot.
Motion comes from DIS optical flow at 960 pixels wide, scaled up to full-resolution pixels.
A new shot starts where the average change in hue, saturation and brightness between neighboring frames jumps well above the change around it. This is the rule PySceneDetect's adaptive detector uses. Cut sensitivity scales its thresholds.
Frames are identified by their presentation timestamps, so the frame you see in the Viewer is the frame that gets exported, also for variable frame rate video. Colors are converted from YUV with the matrix and range the video declares, and BT.709 limited range test colors come back exact.
git clone https://github.com/onlykshitij/wallpaper-frame-picker.git cd wallpaper-frame-picker uv run wallpaper-frame-picker uv run pytest uv run --extra upscale pytest The tests build a 264-frame synthetic video with PyAV. Every frame carries its frame number as a barcode, which lets the tests check that seeking and exporting return the exact frame. uv run pytest skips the upscaling tests; with the upscale extra they run with a random-weight model, which checks the plumbing but not picture quality. The GUI tests run offscreen.
To build the standalone launcher for the system you are on, check it, and test it, including a first-launch install into a temporary folder:
uv run --python 3.12 --with pyinstaller --with pillow python packaging/build.py uv run --python 3.12 --with pyinstaller python packaging/check_bundle.py build/AppDir uv run --python 3.12 python packaging/smoke_test.py dist/WallpaperFramePicker-x86_64.AppImage The launcher carries the app's own wheel and the exact package versions from uv.lock, so every first launch installs what CI tested. check_bundle.py fails a Linux build that bundles a system library or needs a glibc newer than 2.28. Set UV_PYTHON_PREFERENCE=only-managed when building, as CI does, so PyInstaller packs uv's portable Python rather than the system's.
PyInstaller only builds for the system it runs on, so the Windows and macOS launchers come from GitHub Actions. Pushing a tag such as v0.1.0 runs .github/workflows/release.yml, which builds and tests all three launchers, runs the Linux one on seven distributions starting from bare containers, and publishes the builds as a GitHub release. Running that workflow by hand from the Actions tab gives you the builds as downloadable artifacts without making a release. The same workflow can publish to PyPI, after which uvx wallpaper-frame-picker works; it is off until you set up a trusted publisher on PyPI and set the repository variable PUBLISH_TO_PYPI to true.
The code lives in src/wallpaper_frame_picker/:
packaging/ holds the PyInstaller spec and build script, the launcher's entry points, the bundle check, and the smoke test.
Wallpaper Frame Picker builds on PyAV and FFmpeg, PySide6 (Qt), OpenCV, spandrel and PyTorch. The shot cut rule comes from PySceneDetect. The suggested models are the official Real-ESRGAN releases, under the BSD-3-Clause license.
Wallpaper Frame Picker is free software under the GNU Affero General Public License v3.0 or later. You may use it for anything, including commercial work, and you may study, change and share it. If you distribute it, or a program built from it, you must release that program's source code under the same license. The AGPL also covers running a modified version as a network service: its users must be able to get the source too.
The screenshots in docs/screenshots/ are not covered by the AGPL. They contain frames from Spring by Andy Goralczyk and the Blender Foundation and are shared under CC BY 4.0.
The standalone apps bundle third-party libraries under their own licenses, including Qt and PySide6 (LGPL-3.0), FFmpeg through PyAV (LGPL and GPL), OpenCV (Apache-2.0) and NumPy (BSD-3-Clause). Their license files are included inside each app.
frames real-esrgan sharpness shot detection upscaling video wallpaper
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 3, 2026.




