我们通过sdk获取标准H264,然后用国标协议推流。推流效果很差,msdk有方法可以设置码率吗?
Completed我们通过sdk获取标准H264,然后用国标协议推流。推流效果很差,msdk有方法可以设置码率吗?
-
DJISDKManager.getInstance().getLiveStreamManager().setLiveVideoBitRateMode(LiveVideoBitRateMode.MANUAL);
DJISDKManager.getInstance().getLiveStreamManager().setLiveVideoResolution(LiveVideoResolution.VIDEO_RESOLUTION_1280_720);
// DJISDKManager.getInstance().getLiveStreamManager().setLiveVideoResolution(new LiveVideoResolution(2048, 1080));
DJISDKManager.getInstance().getLiveStreamManager().setLiveVideoBitRate((float) (2 * 1024));// 1Mbps -
Please sign in to leave a comment.
Comments
18 comments