RootEncoder icon indicating copy to clipboard operation
RootEncoder copied to clipboard

RtmpDisplay stream screen only has 3 fps

Open supr3me opened this issue 2 years ago • 1 comments

Hi @pedroSG94 I use RtmpDisplay and videoDecoder set fps 30 , but result is only 3 or 4 fps ,when I do not move my screen. And when I move my screen , it may have 30-40 fps How can I set fps at least 30? Thank you very much!

supr3me avatar Nov 10 '22 11:11 supr3me

Hello,

This is the way that MediaProjection API works. I can't do anything about it. I have a method to force glthread to render (basically repeat frame) but sometimes it is not working in all devices: https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/blob/master/app/src/main/java/com/pedro/rtpstreamer/displayexample/DisplayService.kt#L71 If it is not working. One solution could be create a way to render the screen continually like an animated notification

pedroSG94 avatar Nov 14 '22 09:11 pedroSG94