slavavdovichenko / MediaLibDemos

98 stars 25 forks source link

Low frame per second for VGA resolution #33

Closed bhuvanbalasubramanian closed 4 years ago

bhuvanbalasubramanian commented 10 years ago

Hi Slavavdovichenko,

Thanks for your wonderful libraries.

Currently I'm facing an issue, the playback video has lower frame rate i.e. 12 fps when I stream the live video with VGA resolution.

Question

  1. How to increase the fps to make it as 24/30 fps in code?
  2. Is there any option to change variable fps to constant fps?If so how to config that

Thanks in advance. --Bhuvan

bhuvanbalasubramanian commented 10 years ago

Please reply. I'm waiting for your comment

slavavdovichenko commented 10 years ago

Hi,

RTMPStreamPublisher demo sample shows the mean fps below the stream preview. If the fps value is less then 15 - it is mean the your device performance is low (or network bandwidth is not enough), and you should use the less frame resolution for stream publishing. And on player you can see the stream fps as it is on the publisher, not more.

Answers

  1. Now lib uses max fps = 15, and this option is constant;
  2. If the publishing device performance (or network bandwidth) is not enough (for example, with high resolutions or big bitrate) - fps will be less then 15.
bhuvanbalasubramanian commented 10 years ago

Thanks for your quick response.

I will try to reduce the video resolution to CIF/ MEDIUM. What would be the correct bitrate value for CIF and MEDIUM resolution?

For VGA, I have used 7200000 like below [m_pUpStream setVideoBitrate:7200000];