Closed sam21abc closed 2 years ago
It is not possible. Surface is used for decoding raw H264.
so how can i get the image from rtspsurface?
@yxdragon Use Android's PixelCopy class
val pixelCopyListener = PixelCopy.OnPixelCopyFinishedListener {
....
}
PixelCopy.request(
surface,
surfaceBitmap,
pixelCopyListener,
handler
)
I want generate bitmap/image from raw(h264/h265) frames. without using surface.