Commit d6225982 by olly Committed by Ian Baker

Add Matroska Extractor Test Sample For Opus

PiperOrigin-RevId: 429386479
parent e32809cf
...@@ -88,6 +88,12 @@ public final class MatroskaExtractorTest { ...@@ -88,6 +88,12 @@ public final class MatroskaExtractorTest {
} }
@Test @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 { public void mkvSample_withHtcRotationInfoInTrackName() throws Exception {
ExtractorAsserts.assertBehavior( ExtractorAsserts.assertBehavior(
MatroskaExtractor::new, MatroskaExtractor::new,
......
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
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
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
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
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment