Repository navigation
Join an ExoPlayer DASH stream's segments from its cached manifest - #207
Merged
Merged
Conversation
ExoPlayer caches each DASH segment as its own item and the manifest the app played from beside them. Where that manifest is cached, each stream it lists as a SegmentList is joined: the initialization segment, then the media segments in the manifest's order up to the first missing or incomplete one, into one file. Items are matched by exact key, resolved the way DashUtil.resolveCacheKey does, never by look-alike addresses. Segments a stream holds are not registered again on their own. An audio-only stream is recognised from its init segment's hdlr box, registered only when the source includes other files, and left as audio by processing. A video and its audio name each other, and a stream stored as one file names the manifest that lists it and the other cached streams it lists. An MP4 whose only track is sound is now kept as audio rather than as a video with no frames. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Joins DASH streams from an app's ExoPlayer cache into playable files, using the manifest the app cached.
DashUtil.resolveCacheKeydoes, never by look-alike addresses.hdlr, kept only with other files, and not relabelled as video by processing. Video and audio name each other. Whole-file streams (SegmentBase) name their manifest and the other cached streams it lists.tests/fixtures/dash/is ffmpeg's test pattern and a tone as a SegmentList stream (command in the test).On three Android images: 19 DASH streams joined, all decoding; joined videos that decode on one image went from 152 of 234 to 158 of 167.
🤖 Generated with Claude Code