alexeyvasilyev / rtsp-client-android

Lightweight RTSP client library for Android
Apache License 2.0
210 stars 54 forks source link

decode h264/h265 frames to bitmap without using surface #32

Open sam21abc opened 2 years ago

sam21abc commented 2 years ago

Surface is used for decoding raw H264.

 val decoder = MediaCodec.createDecoderByType(mimeType)
        val format = MediaFormat.createVideoFormat(mimeType, width, height)

        decoder.configure(format, surface, null, 0)
        decoder.start()

is there any other way to get bitmap from decoded frames without surface.

Lucaszw commented 2 years ago

+1 Regarding this!

rmcamps commented 1 year ago

Did you get how to get bitmap from decoded frames?

DalalAlmotwaa commented 5 months ago

+1 Regarding this