Add 4 different video resolutions for bitrate analysis.

PiperOrigin-RevId: 442844189
This commit is contained in:
samrobinson 2022-04-19 18:14:43 +01:00 committed by Ian Baker
parent 6138a0b07f
commit eb72e0aa09
2 changed files with 13 additions and 2 deletions

View File

@ -99,6 +99,15 @@ public final class AndroidTestUtil {
.setFrameRate(57.39f)
.build();
// The 4 HIGHMOTION files are H264 and AAC.
public static final String MP4_REMOTE_1280W_720H_5_SECOND_HIGHMOTION =
"https://storage.googleapis.com/exoplayer-test-media-1/mp4/1280w_720h_highmotion.mp4";
public static final String MP4_REMOTE_1440W_1440H_5_SECOND_HIGHMOTION =
"https://storage.googleapis.com/exoplayer-test-media-1/mp4/1440w_1440h_highmotion.mp4";
public static final String MP4_REMOTE_1920W_1080H_5_SECOND_HIGHMOTION =
"https://storage.googleapis.com/exoplayer-test-media-1/mp4/1920w_1080h_highmotion.mp4";
public static final String MP4_REMOTE_3840W_2160H_5_SECOND_HIGHMOTION =
"https://storage.googleapis.com/exoplayer-test-media-1/mp4/3840w_2160h_highmotion.mp4";
/**
* Log in logcat and in an analysis file that this test was skipped.
*

View File

@ -46,8 +46,10 @@ import org.junit.runners.Parameterized.Parameters;
public class BitrateAnalysisTest {
private static final ImmutableList<String> INPUT_FILES =
ImmutableList.of(
AndroidTestUtil.MP4_ASSET_WITH_INCREASING_TIMESTAMPS_URI_STRING,
AndroidTestUtil.MP4_REMOTE_4K60_PORTRAIT_URI_STRING);
AndroidTestUtil.MP4_REMOTE_1280W_720H_5_SECOND_HIGHMOTION,
AndroidTestUtil.MP4_REMOTE_1440W_1440H_5_SECOND_HIGHMOTION,
AndroidTestUtil.MP4_REMOTE_1920W_1080H_5_SECOND_HIGHMOTION,
AndroidTestUtil.MP4_REMOTE_3840W_2160H_5_SECOND_HIGHMOTION);
private static final ImmutableList<Integer> INPUT_BITRATE_MODES =
ImmutableList.of(BITRATE_MODE_VBR, BITRATE_MODE_CBR);