调整rtmp推流帧率

调整rtmp推流帧率
pull/107/head
xufulong 5 years ago
parent 18c948ad63
commit a1002eac69
  1. 3
      app/src/main/java/com/frank/ffmpeg/activity/LiveActivity.java

@ -71,7 +71,7 @@ public class LiveActivity extends BaseActivity implements CompoundButton.OnCheck
int width = 640;//分辨率设置
int height = 480;
int videoBitRate = 400;//kb/s
int videoFrameRate = 20;//fps
int videoFrameRate = 10;//fps
VideoParam videoParam = new VideoParam(width, height,
Integer.valueOf(Camera2Helper.CAMERA_ID_BACK), videoBitRate, videoFrameRate);
int sampleRate = 44100;//采样率:Hz
@ -82,7 +82,6 @@ public class LiveActivity extends BaseActivity implements CompoundButton.OnCheck
livePusher = new LivePusher(textureView, videoParam, audioParam, this);
//TODO:暂时去掉音频推流
livePusher.setMute(true);
findViewById(R.id.btn_mute).setVisibility(View.INVISIBLE);
}
@Override

Loading…
Cancel
Save