Skip to content

HDR to SDR fails when using media3/transformer demo app for release 1.0.0 #304

@harini113

Description

@harini113

Media3 Version

Media3 1.0.0

Devices that reproduce the issue

Internal device

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

convert HDR10 clip to SDR with all other options set to false in the demo apk except Request SDR tone mapping

Expected result

transformer demo app output clip should be generated

Actual result

clip generated is 0 bytes and the logs have the following error

04-04 21:27:26.118 7504 7504 E TransformerActivity: Transformation error
04-04 21:27:26.118 7504 7504 E TransformerActivity: androidx.media3.transformer.TransformationException: VideoDecoder, mediaFormat={color-transfer=3, allow-frame-drop=0, mime=video/hevc, profile=2, width=1920, color-range=2, rotation-degrees=0, max-input-size=234138, color-standard=1, height=1080, csd-0=java.nio.HeapByteBuffer[pos=0 lim=84 cap=84]}, mediaCodecName=c2.qti.hevc.decoder
04-04 21:27:26.118 7504 7504 E TransformerActivity: at androidx.media3.transformer.DefaultCodec.createTransformationException(DefaultCodec.java:372)
04-04 21:27:26.118 7504 7504 E TransformerActivity: at androidx.media3.transformer.DefaultCodec.maybeDequeueOutputBuffer(DefaultCodec.java:321)
04-04 21:27:26.118 7504 7504 E TransformerActivity: at androidx.media3.transformer.DefaultCodec.getOutputBufferInfo(DefaultCodec.java:249)
04-04 21:27:26.118 7504 7504 E TransformerActivity: at androidx.media3.transformer.VideoTranscodingSamplePipeline.maybeProcessDecoderOutput(VideoTranscodingSamplePipeline.java:330)
04-04 21:27:26.118 7504 7504 E TransformerActivity: at androidx.media3.transformer.VideoTranscodingSamplePipeline.processDataUpToMuxer(VideoTranscodingSamplePipeline.java:235)
04-04 21:27:26.118 7504 7504 E TransformerActivity: at androidx.media3.transformer.BaseSamplePipeline.processData(BaseSamplePipeline.java:77)
04-04 21:27:26.118 7504 7504 E TransformerActivity: at androidx.media3.transformer.TransformerBaseRenderer.render(TransformerBaseRenderer.java:97)
04-04 21:27:26.118 7504 7504 E TransformerActivity: at androidx.media3.exoplayer.ExoPlayerImplInternal.doSomeWork(ExoPlayerImplInternal.java:1015)
04-04 21:27:26.118 7504 7504 E TransformerActivity: at androidx.media3.exoplayer.ExoPlayerImplInternal.handleMessage(ExoPlayerImplInternal.java:510)

Media

Any HDR10 clip can be used

Bug Report

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions