mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Change SSIM transcode MIME type to H264.
The MIME type was set to H265 to force transcoding. Now that we have an encoder factory that forces encoding, switching back to H264 ensures the quality test is conducted on more devices (those don't support H265 can be tested now). However, H265 should be part of the quality test after we have proper mechanism to skip test based on device capability. PiperOrigin-RevId: 440132471
This commit is contained in:
parent
43709c6211
commit
1ca80741e5
1 changed files with 4 additions and 2 deletions
|
|
@ -33,13 +33,15 @@ import org.junit.runner.RunWith;
|
|||
/** Checks transcoding quality. */
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public final class TranscodeQualityTest {
|
||||
// TODO(b/228455984) Add test that calculates SSIM for transcoding to H265.
|
||||
@Test
|
||||
public void singleTranscode_ssimIsGreaterThan90Percent() throws Exception {
|
||||
public void transformWithDecodeEncode_ssimIsGreaterThan90Percent() throws Exception {
|
||||
Context context = ApplicationProvider.getApplicationContext();
|
||||
Transformer transformer =
|
||||
new Transformer.Builder(context)
|
||||
.setTransformationRequest(
|
||||
new TransformationRequest.Builder().setVideoMimeType(MimeTypes.VIDEO_H265).build())
|
||||
new TransformationRequest.Builder().setVideoMimeType(MimeTypes.VIDEO_H264).build())
|
||||
.setEncoderFactory(AndroidTestUtil.FORCE_ENCODE_ENCODER_FACTORY)
|
||||
.setRemoveAudio(true)
|
||||
.build();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue