Skip to content

Combine every cached audio track, and read ExoPlayer caches through exoprobe - #209

Merged
abrignoni merged 5 commits into
mainfrom
feat/exoplayer-multiaudio
Sep 27, 2026
Merged

abrignoni merged 5 commits into
mainfrom
feat/exoplayer-multiaudio

Conversation

@abrignoni

@abrignoni abrignoni commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

Two changes to the ExoPlayer work.

  • Every cached audio track goes in. When a DASH manifest lists more than one cached audio stream (two languages, say), the video used to be left uncombined. Now each one goes into the combined file as its own track, in the manifest's order, marked as alternatives with only the first enabled, the way ffmpeg marks alternative languages. App cache lists each track with the language the manifest declares, its bitrate and its segments. A whole-file audio cut short at a gap is left out and counted in the audit log.
  • The reading moved to exoprobe, a new stdlib-only file vendored under gleapp/vendor/ like qnxprobe, so ALEAPP can use the same code. gleapp/mp4mux.py and its tests moved there.
  • Instagram's and Facebook's numbered subfolders join as one cache. Their videocache spreads one item's pieces over subfolders 0 to 28, and each subfolder used to be read as its own cache, so those items stopped at a gap. On three images, items now join whole (8 of 8 and 50 of 50 pieces, for example) and the multi-piece videos decode.
  • The App cache time says what it is. It is the latest time in the piece names, and it used to be called the last write or read. A cache with an ExoPlayerCacheFileMetadata table (Reddit's) records later reads there and leaves the name alone.

On russell_a14, russell_pixel6a_a13 and pixel7a_a14 the 101 combined files match their inputs frame for frame, and on russell_a14 the 473 files GLEAPP registers are byte-identical before and after the move. None of those images caches a second audio stream, so the multi-track path is exercised by the tests only.

🤖 Generated with Claude Code

abrignoni and others added 5 commits September 26, 2026 17:56
A DASH manifest with two cached audio streams (two languages, say) used to
leave the video uncombined, because picking one would be a guess. Now every
cached audio stream goes into the combined file as its own track, in the
manifest's order. Several audio tracks share alternate group 1 and only the
first is enabled, which is how ffmpeg marks alternative languages. App cache
lists each track with the language the manifest declares, its bitrate and
its segments. For whole-file streams, an audio cut short at a gap is left out
and counted in the audit log.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The index readers, piece joining, DASH planning and muxer now live in
abrignoni/exoprobe, one stdlib-only file vendored at gleapp/vendor/ like
qnxprobe, ewfprobe and mediacarve, so ALEAPP can use the same code.
gleapp/exocache.py keeps what is GLEAPP's own: reading case rows through
local copies, registering what exoprobe produces, and the App cache wording.
gleapp/mp4mux.py and its tests moved to exoprobe.

On russell_a14 the files GLEAPP registers are byte-identical before and
after (473 of 473 by SHA-256).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Its docstrings now say when ExoPlayer rewrites a piece's name on a touch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
It is the latest time in the names of the pieces used. A cache with an
ExoPlayerCacheFileMetadata table records later reads there and leaves the
name alone, so the line no longer calls it the last write or read.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pieces that Instagram and Facebook spread over numbered subfolders of their
videocache now join as one item, and a raw userdata partition's
data/<package> path names the app.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@abrignoni
abrignoni merged commit ef39609 into main Sep 27, 2026
8 checks passed
@abrignoni
abrignoni deleted the feat/exoplayer-multiaudio branch September 27, 2026 00:50
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