Add support for parsing chapters from MKV files#3141
Add support for parsing chapters from MKV files#3141tymmesyde wants to merge 4 commits intoandroidx:mainfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
How many of the chapter features does this support? |
|
The tests seem to fail at the moment with Please can you get them passing? |
They should pass now sorry, i guess i didn't actually run them after setting WRITE_TO_LOCAL |
Only Basic Chapters, and it only expose the title (ChapString) and timeStart/timeEnd for the Chapter interface |
|
@nift4 Since the media3 In particular I'm wondering whether to add a concept of 'disabled/enable' and/or 'hidden/shown' to the It sems like a 'hidden' chapter should still be played, but just not shown to a user in a Table-of-Contents (i.e. this can be implemented "app side"). Whereas a 'disabled' chapter should be skipped during playback. I think we are unlikely to add automatic support for this part in the Player (at least not for a while). It could probably still be implemented app-side using player messages or similar. Do you think it makes sense to add these methods to the 'generic' |
|
@icbaker Yes, I think that's a good idea. |
|
@tymmesyde Would it be possible to open a new PR from an individual-owned fork? We can't push changes to organization-owned forks like this one unless we have collaborator access. If that's not possible then we can still merge this PR but it will result in an 'evil' merge. See more info here: https://github.com/androidx/media/blob/release/CONTRIBUTING.md#push-access-to-pr-branches |
|
sure, here you go: #3144 |
|
Closed in favor of #3144 |
Hi,
this include changes to support parsing MKV chapters using the recent changes to introduce metadata Chapter interface
This is already implemented for MP4: Nero & QuickTime
Used this doc as reference: https://www.matroska.org/technical/elements.html
Added
sample_with_chapters.mkvformkvSample_withChapterstestGenerated with: