Skip to content Skip to sidebar Skip to footer

Mediacodec Returns Null For Getoutputimage On Real Devices - Emulator Works

I'm trying to grab the Image of a Video via the MediaCodec using the getOutputImage method (Framework used: Exoplayer). I'm NOT using a SurfaceView and every thing else seems fine

Solution 1:

I believe the Exoplayer (v.7) uses the MediaCodec with a DummySurface inside MediaCodecVideoRenderer when configuring the MediaCodec when you don't pass a own Surface to the Exoplayer. In other words, its probably not a good idea to extract the Image from the MediaCodec when using the Exoplayer because it actually should never work... (but strangely does on Android 8).


Post a Comment for "Mediacodec Returns Null For Getoutputimage On Real Devices - Emulator Works"