Skip to content

Join the pieces of an Android app's ExoPlayer media cache - #204

Merged
abrignoni merged 2 commits into
mainfrom
feat/exoplayer-cache
Sep 26, 2026
Merged

abrignoni merged 2 commits into
mainfrom
feat/exoplayer-cache

Conversation

@abrignoni

Copy link
Copy Markdown
Owner

Joins the pieces of an Android app's ExoPlayer media cache back into one file per cached item.

  • Every ingest path (folder, zip, tar, disk-image walk, nested archive) keeps .exo pieces, cached_content_index.exi, exoplayer_internal.db and the cache's .uid file by name, as container rows. The first piece of an MP4 is no longer registered as a truncated video.
  • gleapp/exocache.py joins each item in order from position 0 to the first gap into extracted/exoplayer/, linked to its first piece, and processed like any other video.
  • A new cache_info column records the app folder, the key the index recorded, which index named it, pieces and bytes joined against the recorded length, and whether it is complete, partial or stops at a gap. Shown in the details pane, search, the HTML report, CSV/JSON and LAVA.
  • The index database is read from a copy. Format sourced from androidx/media 1.11.1, cited in the module.

On four registered Android images: 401 items joined, 1 to 3 seconds per image. Joined files that do not decode are DASH segments cached as separate items, which the existing messages describe.

🤖 Generated with Claude Code

abrignoni and others added 2 commits September 26, 2026 15:38
An app that plays video through ExoPlayer caches it split into
<id>.<position>.<timestamp>.v3.exo pieces, with the address each item
came from in cached_content_index.exi or an ExoPlayerCacheIndex table
in exoplayer_internal.db (older caches put the key in the piece's name).
GLEAPP dropped the later pieces and registered each first piece as a
truncated video.

Every ingest path now keeps these files by name as container rows, and
gleapp/exocache.py joins each item in order from position 0 to the first
gap into one file under extracted/exoplayer/, linked to its first piece.
A new cache_info column records the app folder, the key, which index
named it, the pieces and bytes joined against the recorded length, and
whether the result is complete, partial or stops at a gap. The details
pane, search, the HTML report, the CSV and JSON exports and LAVA show it.
The index database is read from a copy. Format sourced from
androidx/media 1.11.1.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni
abrignoni enabled auto-merge September 26, 2026 19:46
@abrignoni
abrignoni merged commit 3dd0d35 into main Sep 26, 2026
8 checks passed
@abrignoni
abrignoni deleted the feat/exoplayer-cache branch September 26, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant