Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d6225982
authored
Feb 17, 2022
by
olly
Committed by
Ian Baker
Feb 18, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add Matroska Extractor Test Sample For Opus
PiperOrigin-RevId: 429386479
parent
e32809cf
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
186 additions
and
0 deletions
library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractorTest.java
testdata/src/test/assets/extractordumps/mkv/sample_with_opus_audio.mkv.0.dump
testdata/src/test/assets/extractordumps/mkv/sample_with_opus_audio.mkv.1.dump
testdata/src/test/assets/extractordumps/mkv/sample_with_opus_audio.mkv.2.dump
testdata/src/test/assets/extractordumps/mkv/sample_with_opus_audio.mkv.3.dump
testdata/src/test/assets/extractordumps/mkv/sample_with_opus_audio.mkv.unknown_length.dump
testdata/src/test/assets/media/mkv/sample_with_opus_audio.mkv
library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mkv/MatroskaExtractorTest.java
View file @
d6225982
...
...
@@ -88,6 +88,12 @@ public final class MatroskaExtractorTest {
}
@Test
public
void
mkvSample_withOpusAudio
()
throws
Exception
{
ExtractorAsserts
.
assertBehavior
(
MatroskaExtractor:
:
new
,
"media/mkv/sample_with_opus_audio.mkv"
,
simulationConfig
);
}
@Test
public
void
mkvSample_withHtcRotationInfoInTrackName
()
throws
Exception
{
ExtractorAsserts
.
assertBehavior
(
MatroskaExtractor:
:
new
,
...
...
testdata/src/test/assets/extractordumps/mkv/sample_with_opus_audio.mkv.0.dump
0 → 100644
View file @
d6225982
seekMap:
isSeekable = true
duration = 58000
getPosition(0) = [[timeUs=0, position=569]]
getPosition(1) = [[timeUs=0, position=569]]
getPosition(29000) = [[timeUs=0, position=569]]
getPosition(58000) = [[timeUs=0, position=569]]
numberOfTracks = 1
track 1:
total output bytes = 828
sample count = 3
format 0:
id = 1
sampleMimeType = audio/opus
maxInputSize = 5760
channelCount = 1
sampleRate = 48000
selectionFlags = 1
language = und
initializationData:
data = length 19, hash CB9E23BC
data = length 8, hash CA22068C
data = length 8, hash 79C07075
sample 0:
time = 0
flags = 1
data = length 283, hash 686EA90
sample 1:
time = 21000
flags = 1
data = length 217, hash 7D03A2A6
sample 2:
time = 41000
flags = 268435457
data = length 328, hash BB4A36F0
tracksEnded = true
testdata/src/test/assets/extractordumps/mkv/sample_with_opus_audio.mkv.1.dump
0 → 100644
View file @
d6225982
seekMap:
isSeekable = true
duration = 58000
getPosition(0) = [[timeUs=0, position=569]]
getPosition(1) = [[timeUs=0, position=569]]
getPosition(29000) = [[timeUs=0, position=569]]
getPosition(58000) = [[timeUs=0, position=569]]
numberOfTracks = 1
track 1:
total output bytes = 828
sample count = 3
format 0:
id = 1
sampleMimeType = audio/opus
maxInputSize = 5760
channelCount = 1
sampleRate = 48000
selectionFlags = 1
language = und
initializationData:
data = length 19, hash CB9E23BC
data = length 8, hash CA22068C
data = length 8, hash 79C07075
sample 0:
time = 0
flags = 1
data = length 283, hash 686EA90
sample 1:
time = 21000
flags = 1
data = length 217, hash 7D03A2A6
sample 2:
time = 41000
flags = 268435457
data = length 328, hash BB4A36F0
tracksEnded = true
testdata/src/test/assets/extractordumps/mkv/sample_with_opus_audio.mkv.2.dump
0 → 100644
View file @
d6225982
seekMap:
isSeekable = true
duration = 58000
getPosition(0) = [[timeUs=0, position=569]]
getPosition(1) = [[timeUs=0, position=569]]
getPosition(29000) = [[timeUs=0, position=569]]
getPosition(58000) = [[timeUs=0, position=569]]
numberOfTracks = 1
track 1:
total output bytes = 828
sample count = 3
format 0:
id = 1
sampleMimeType = audio/opus
maxInputSize = 5760
channelCount = 1
sampleRate = 48000
selectionFlags = 1
language = und
initializationData:
data = length 19, hash CB9E23BC
data = length 8, hash CA22068C
data = length 8, hash 79C07075
sample 0:
time = 0
flags = 1
data = length 283, hash 686EA90
sample 1:
time = 21000
flags = 1
data = length 217, hash 7D03A2A6
sample 2:
time = 41000
flags = 268435457
data = length 328, hash BB4A36F0
tracksEnded = true
testdata/src/test/assets/extractordumps/mkv/sample_with_opus_audio.mkv.3.dump
0 → 100644
View file @
d6225982
seekMap:
isSeekable = true
duration = 58000
getPosition(0) = [[timeUs=0, position=569]]
getPosition(1) = [[timeUs=0, position=569]]
getPosition(29000) = [[timeUs=0, position=569]]
getPosition(58000) = [[timeUs=0, position=569]]
numberOfTracks = 1
track 1:
total output bytes = 828
sample count = 3
format 0:
id = 1
sampleMimeType = audio/opus
maxInputSize = 5760
channelCount = 1
sampleRate = 48000
selectionFlags = 1
language = und
initializationData:
data = length 19, hash CB9E23BC
data = length 8, hash CA22068C
data = length 8, hash 79C07075
sample 0:
time = 0
flags = 1
data = length 283, hash 686EA90
sample 1:
time = 21000
flags = 1
data = length 217, hash 7D03A2A6
sample 2:
time = 41000
flags = 268435457
data = length 328, hash BB4A36F0
tracksEnded = true
testdata/src/test/assets/extractordumps/mkv/sample_with_opus_audio.mkv.unknown_length.dump
0 → 100644
View file @
d6225982
seekMap:
isSeekable = true
duration = 58000
getPosition(0) = [[timeUs=0, position=569]]
getPosition(1) = [[timeUs=0, position=569]]
getPosition(29000) = [[timeUs=0, position=569]]
getPosition(58000) = [[timeUs=0, position=569]]
numberOfTracks = 1
track 1:
total output bytes = 828
sample count = 3
format 0:
id = 1
sampleMimeType = audio/opus
maxInputSize = 5760
channelCount = 1
sampleRate = 48000
selectionFlags = 1
language = und
initializationData:
data = length 19, hash CB9E23BC
data = length 8, hash CA22068C
data = length 8, hash 79C07075
sample 0:
time = 0
flags = 1
data = length 283, hash 686EA90
sample 1:
time = 21000
flags = 1
data = length 217, hash 7D03A2A6
sample 2:
time = 41000
flags = 268435457
data = length 328, hash BB4A36F0
tracksEnded = true
testdata/src/test/assets/media/mkv/sample_with_opus_audio.mkv
0 → 100644
View file @
d6225982
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment