forked from google/ExoPlayer
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add AC-4 MIME type definition * Add AC-4 format support in Mp4Extractor and TsExtractor * Add AC-4 Extractor * Add AC-4 playback support in MPEG-4, MPEG-DASH, TS and HLS
- Loading branch information
Showing
8 changed files
with
167 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
seekMap: | ||
isSeekable = false | ||
duration = UNSET TIME | ||
getPosition(0) = [[timeUs=0, position=0]] | ||
numberOfTracks = 1 | ||
track 0: | ||
format: | ||
bitrate = -1 | ||
id = 0 | ||
containerMimeType = null | ||
sampleMimeType = audio/ac4 | ||
maxInputSize = -1 | ||
width = -1 | ||
height = -1 | ||
frameRate = -1.0 | ||
rotationDegrees = 0 | ||
pixelWidthHeightRatio = 1.0 | ||
channelCount = 2 | ||
sampleRate = 48000 | ||
pcmEncoding = -1 | ||
encoderDelay = 0 | ||
encoderPadding = 0 | ||
subsampleOffsetUs = 9223372036854775807 | ||
selectionFlags = 0 | ||
language = null | ||
drmInitData = - | ||
initializationData: | ||
total output bytes = 7594 | ||
sample count = 19 | ||
sample 0: | ||
time = 0 | ||
flags = 1 | ||
data = length 366, hash B4277F9E | ||
sample 1: | ||
time = 40000 | ||
flags = 1 | ||
data = length 366, hash E8E0A142 | ||
sample 2: | ||
time = 80000 | ||
flags = 1 | ||
data = length 366, hash 2E5073D0 | ||
sample 3: | ||
time = 120000 | ||
flags = 1 | ||
data = length 366, hash 850E71D8 | ||
sample 4: | ||
time = 160000 | ||
flags = 1 | ||
data = length 366, hash 69CD444E | ||
sample 5: | ||
time = 200000 | ||
flags = 1 | ||
data = length 366, hash BD24F36D | ||
sample 6: | ||
time = 240000 | ||
flags = 1 | ||
data = length 366, hash E24F2490 | ||
sample 7: | ||
time = 280000 | ||
flags = 1 | ||
data = length 366, hash EE6F1F06 | ||
sample 8: | ||
time = 320000 | ||
flags = 1 | ||
data = length 366, hash 2DAB000F | ||
sample 9: | ||
time = 360000 | ||
flags = 1 | ||
data = length 366, hash 8102B7EC | ||
sample 10: | ||
time = 400000 | ||
flags = 1 | ||
data = length 366, hash 55BF59AC | ||
sample 11: | ||
time = 440000 | ||
flags = 1 | ||
data = length 494, hash CBC2E09F | ||
sample 12: | ||
time = 480000 | ||
flags = 1 | ||
data = length 519, hash 9DAF56E9 | ||
sample 13: | ||
time = 520000 | ||
flags = 1 | ||
data = length 598, hash 8169EE2 | ||
sample 14: | ||
time = 560000 | ||
flags = 1 | ||
data = length 435, hash 28C21246 | ||
sample 15: | ||
time = 600000 | ||
flags = 1 | ||
data = length 365, hash FF14716D | ||
sample 16: | ||
time = 640000 | ||
flags = 1 | ||
data = length 392, hash 4CC96B29 | ||
sample 17: | ||
time = 680000 | ||
flags = 1 | ||
data = length 373, hash D7AC6D4E | ||
sample 18: | ||
time = 720000 | ||
flags = 1 | ||
data = length 392, hash 99F2511F | ||
tracksEnded = true |
This file contains 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
32 changes: 32 additions & 0 deletions
32
library/core/src/test/java/com/google/android/exoplayer2/extractor/ts/Ac4ExtractorTest.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright (C) 2019 The Android Open Source Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.android.exoplayer2.extractor.ts; | ||
|
||
import com.google.android.exoplayer2.testutil.ExtractorAsserts; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.robolectric.RobolectricTestRunner; | ||
|
||
/** Unit test for {@link Ac4Extractor}. */ | ||
@RunWith(RobolectricTestRunner.class) | ||
public final class Ac4ExtractorTest { | ||
|
||
@Test | ||
public void testAc4Sample() throws Exception { | ||
ExtractorAsserts.assertBehavior(Ac4Extractor::new, "ts/sample.ac4"); | ||
} | ||
} | ||
|