mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[fix] reset openh264 target bitrate
This commit is contained in:
@@ -98,7 +98,7 @@ int OpenH264Encoder::InitEncoderParams(int width, int height) {
|
||||
// 0: auto (dynamic imp. internal encoder)
|
||||
// 1: single thread (default value)
|
||||
// >1: number of threads
|
||||
encoder_params_.iMultipleThreadIdc = 1;
|
||||
encoder_params_.iMultipleThreadIdc = 8;
|
||||
// The base spatial layer 0 is the only one we use.
|
||||
encoder_params_.sSpatialLayers[0].iVideoWidth = encoder_params_.iPicWidth;
|
||||
encoder_params_.sSpatialLayers[0].iVideoHeight = encoder_params_.iPicHeight;
|
||||
|
||||
@@ -49,8 +49,8 @@ class OpenH264Encoder : public VideoEncoder {
|
||||
int frame_width_ = 1280;
|
||||
int frame_height_ = 720;
|
||||
int key_frame_interval_ = 300;
|
||||
int target_bitrate_ = 1000;
|
||||
int max_bitrate_ = 2500000;
|
||||
int target_bitrate_ = 10000000;
|
||||
int max_bitrate_ = 10000000;
|
||||
int max_payload_size_ = 1400;
|
||||
int max_frame_rate_ = 30;
|
||||
std::vector<std::vector<uint8_t>> encoded_packets_;
|
||||
|
||||
Reference in New Issue
Block a user