Add Matroska Extractor Test Sample For Opus

PiperOrigin-RevId: 429386479
This commit is contained in:
olly 2022-02-17 21:21:32 +00:00 committed by Ian Baker
parent c80d30ebce
commit 9238dc758d
7 changed files with 186 additions and 0 deletions

View File

@ -87,6 +87,12 @@ public final class MatroskaExtractorTest {
MatroskaExtractor::new, "media/mkv/sample_with_vorbis_audio.mkv", simulationConfig);
}
@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(

View File

@ -0,0 +1,36 @@
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

View File

@ -0,0 +1,36 @@
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

View File

@ -0,0 +1,36 @@
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

View File

@ -0,0 +1,36 @@
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

View File

@ -0,0 +1,36 @@
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