Improve encoding rate steps for PC native resolutions
This commit is contained in:
parent
884b8d0a95
commit
8743ce5d08
1 changed files with 13 additions and 2 deletions
|
|
@ -201,7 +201,7 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
||||||
if (AppVersionQuad[0] >= 5) {
|
if (AppVersionQuad[0] >= 5) {
|
||||||
int maxEncodingBitrate;
|
int maxEncodingBitrate;
|
||||||
|
|
||||||
if (StreamConfig.width <= 1280 || StreamConfig.height <= 720) {
|
if (StreamConfig.width * StreamConfig.height <= 1366 * 768) {
|
||||||
// 720p
|
// 720p
|
||||||
if (StreamConfig.fps <= 30) {
|
if (StreamConfig.fps <= 30) {
|
||||||
// 30 FPS
|
// 30 FPS
|
||||||
|
|
@ -212,7 +212,7 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
||||||
maxEncodingBitrate = 12000;
|
maxEncodingBitrate = 12000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (StreamConfig.width <= 1920 || StreamConfig.height <= 1080) {
|
else if (StreamConfig.width * StreamConfig.height <= 1920 * 1200) {
|
||||||
// 1080p
|
// 1080p
|
||||||
if (StreamConfig.fps <= 30) {
|
if (StreamConfig.fps <= 30) {
|
||||||
// 30 FPS
|
// 30 FPS
|
||||||
|
|
@ -223,6 +223,17 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
||||||
maxEncodingBitrate = 25000;
|
maxEncodingBitrate = 25000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (StreamConfig.width * StreamConfig.height <= 2560 * 1600) {
|
||||||
|
// 1440p
|
||||||
|
if (StreamConfig.fps <= 30) {
|
||||||
|
// 30 FPS
|
||||||
|
maxEncodingBitrate = 20000;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// 60 FPS
|
||||||
|
maxEncodingBitrate = 35000;
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
// 4K
|
// 4K
|
||||||
if (StreamConfig.fps <= 30) {
|
if (StreamConfig.fps <= 30) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue