Listening Wrapped for Rockbox

A Spotify Wrapped–style year in review, built from Rockbox’s own playback log.
Install
-
Check your Rockbox version on the player: System → Rockbox Info.
-
Open the latest release and find your player in
its table. There are builds for every Rockbox player that has a clock (iPods,
Sansas, iriver, Creative Zen, Sony NWZ, AIGO Eros Q, FiiO M3K and many more),
for Rockbox 4.0 and for the development version. Files are named
wrapped-<Rockbox version>-<player>.rock, for example
wrapped-4.0-ipodvideo.rock.
If you can’t find your player, download the zip for your Rockbox version
(rockbox-wrapped-4.0-all-players.zip or
rockbox-wrapped-dev-all-players.zip). Its PLAYERS.txt lists every player
with its file.
A plugin only loads on the player and Rockbox version it was built for.
With the wrong one, the player says “Incompatible model” or “Incompatible
version”.
-
Rename it to wrapped.rock and copy it to /.rockbox/rocks/apps/ on the player.
-
On the player: Plugins → Applications → wrapped.
On small screens like the iPod Mini’s, long slides continue on a second page.
Players without a clock (such as the original iPod 1G/2G and the HiFi E.T.
players) can’t run Wrapped, because it needs dates to count by. For a Rockbox
version that isn’t built here, build it yourself from the patch (see
Building from source).
For any other Rockbox version, build it yourself from the patch (see
Building from source).
Headline fonts (optional)
Wrapped shows its big numbers in 27-Adobe-Helvetica-Bold (Video/Classic) or
21-Adobe-Helvetica-Bold (Nano) if one is in /.rockbox/fonts/. Both come
with the Rockbox font pack. If you installed Rockbox with Rockbox Utility and
ticked “Fonts”, you already have them. Otherwise download the font pack from
rockbox.org/download and extract it to the
root of the iPod. Without these fonts, Wrapped uses your normal UI font.
Usage notes
- First run offers to switch on Settings → Playback Settings → Logging if it is off.
- Each run copies new entries from
playback.log (and rotated playback_NNNN.log
files) into /.rockbox/wrapped_history.log. That file is the permanent history,
so it survives the LastFm Scrobbler deleting the playback log. If you use the
scrobbler, open Wrapped first: its “Delete playback log” option is on by
default and also removes the rotated playback_NNNN.log files, so plays
Wrapped hasn’t saved yet would be lost. (Plugins can’t run in the background,
so Wrapped can’t do this on its own.)
- While copying, it reads each new track’s tags once and saves them on the same
line, after the path, separated by tabs:
timestamp:elapsed_ms:length_ms:/path<TAB>artist<TAB>album artist<TAB>album<TAB>title<TAB>genre.
Each tag is capped at 120 bytes, and tabs or newlines inside tags become spaces.
Lines from older versions have no tags and still work.
- Menu: this year, last year, all time, and Save summary, which writes
/.rockbox/wrapped_<year>.txt.
- On the slides: Select or scroll forward = next, Left or scroll back = previous,
Menu = back to the menu.
Tracking plays
- A play is 30 seconds or more. Shorter starts on longer tracks count as skips.
- Stopping mid-track and resuming later logs two entries; they are merged into one play.
- Minutes are real elapsed listening time.
- Audiobooks and podcasts aren’t counted. That covers anything with a genre
containing “audiobook”, “audio book”, “spoken” or “podcast”; anything inside a
folder named
Audiobooks, Audiobook, Audio Books, Podcasts or Podcast;
and any .m4b file. They stay in the history file; they’re just skipped.
- Artist, album and title come from the tags saved in the history. If a song’s
tags change, its newest saved tags win. Lines without tags are looked up from
the database (if loaded in RAM) or the file itself, falling back to
/Artist/Album/NN Title.ext folder names.
- Songs with several artists separated by
; (like Lana Del Rey; Bleachers)
count in full for each artist. A name like “AC/DC” or “Simon & Garfunkel” is
never split.
- Dates come from the iPod’s clock. If the clock resets (an iPod’s clock can go
back to an old date when the battery runs flat), plays are still saved, but
they count under the date the iPod thought it was.
Web version
michaelmeixner.com/rockbox_wrapped
Open it on a computer and drop in wrapped_history.log from your iPod’s
.rockbox folder. It shows the same stats, plus charts and a daily heatmap.
Your log is read in the browser and never uploaded. It opens with sample data
until you load your own log.
It uses the tags the plugin saves in wrapped_history.log. A raw
playback.log has only file paths, so plays from it are named from their
folders. The page’s source is docs/index.html.
Building from source
You only need this for a Rockbox version without a ready-made download.
The repo has the plugin in two forms:
wrapped.c is the plugin’s source code, for reading.
rockbox-wrapped.patch adds the plugin to a copy of the Rockbox source in
one step. It adds wrapped.c to apps/plugins/ and makes two one-line
edits: in SOURCES it builds the plugin (only for players with a clock),
and in CATEGORIES it lists the plugin under Applications. The patch was
made against Rockbox commit acb44be and also applies cleanly to the 4.0
release (v4.0-final).
Rockbox builds on Linux (or WSL on Windows) and needs its ARM cross-compiler.
To install the cross-compiler, run tools/rockboxdev.sh once from the Rockbox
folder and pick the toolchain for your player: ARM for iPods, MIPS for the
Eros Q. See the
Rockbox build guide for details.
git clone https://github.com/Rockbox/rockbox.git && cd rockbox
git checkout v4.0-final # the Rockbox version your player runs
git apply /path/to/rockbox-wrapped.patch
mkdir build && cd build
../tools/configure --target=ipodvideo --type=n # or ipod6g, ipodnano2g, ipodnano1g,
# ipodmini2g, ipodmini1g, erosqnative, ...
make -j8 # result: apps/plugins/wrapped.rock
To rebuild only the plugin after changing wrapped.c, run
make "$PWD/apps/plugins/wrapped.rock" in the build folder.
How releases are built
Releases are built by GitHub Actions
(.github/workflows/build.yml) with Rockbox’s
official toolchains. Every player in Rockbox’s list of usable builds
(tools/builds.pm) gets a build, for Rockbox 4.0 and the development version.
Pushing a v* tag builds everything and creates a draft release, with a table
of players generated from the results.
The scripts in ci/ also run locally. For example, to build every ARM
player for Rockbox 4.0 into out/:
ci/build-all.sh /path/to/rockbox-v4.0 4.0 a out
ci/list-targets.sh /path/to/rockbox shows which players exist and which
toolchain each one needs.
Support
Rockbox Wrapped is free. If you enjoy it, you can
buy me a coffee.
License
Copyright © 2026 Michael Meixner
Licensed under the GNU General Public License, version 2 or (at your option)
any later version, the same terms as Rockbox itself. See LICENSE.
评论