Repository navigation
Conversation
TsExtractor only took the audio type from the ISO 639 language descriptor, so audio description tracks that are marked only by a DVB supplementary_audio_descriptor (extension tag 0x06, ETSI EN 300 468) had no role flags and could be selected by default. Map its editorial_classification to the audio type (1 and 3: visual impaired commentary, 2: hearing impaired) and use its language code when present. Both take precedence over the ISO 639 descriptor, whatever the order of the descriptors. Issue: androidx#3574
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.
Fixes #3574.
TsExtractor.readEsInfoonly took the audio type from the ISO 639 language descriptor. Broadcasters like ORF mark audio description only with the DVB supplementary_audio_descriptor (extension tag 0x06, ETSI EN 300 468), so those tracks had no role flags and could be picked by default.This reads that descriptor and maps
editorial_classificationto the audio type (1 and 3 to visual impaired commentary, 2 to hearing impaired), the same way Tvheadend does. When the descriptor has a language code, it is used too. Both win over the ISO 639 descriptor, whatever the order.Testing
sample_mpeg_audio_with_supplementary_audio_descriptor.ts, made fromsample_mpeg_audio_with_audio_type.tsby rewriting the PMT: the supplementary descriptor (audio description,eng) comes first, then an ISO 639 descriptor withqksand audio type 0. ffprobe shows the track asvisual_impaired+descriptions.TsExtractorTestfails without the fix. All 916 tests inandroidx.media3.extractor.tspass with it.