mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
fixing bitrate selection
This commit is contained in:
parent
09649c3f3e
commit
fcc2e3c537
@ -68,7 +68,7 @@
|
||||
description="The height of the output video will be scaled down to this, while keeping the aspect ratio."
|
||||
i18n-name i18n-description
|
||||
[ngModel]="states.server.transcoding.resolution"
|
||||
(ngModelChange)="updateBitRate()"
|
||||
(change)="updateBitRate()"
|
||||
[options]="resolutions"
|
||||
required="true">
|
||||
</app-settings-entry>
|
||||
@ -79,7 +79,7 @@
|
||||
description="Target frame per second (fps) of the output video will be scaled down this this."
|
||||
i18n-name i18n-description
|
||||
[ngModel]="states.server.transcoding.fps"
|
||||
(ngModelChange)="updateBitRate()"
|
||||
(change)="updateBitRate()"
|
||||
[options]="fps"
|
||||
[simplifiedMode]="simplifiedMode"
|
||||
required="true">
|
||||
|
@ -78,7 +78,7 @@ export class VideoSettingsComponent extends SettingsComponent<{ server: ServerCo
|
||||
bitRate = 8 * 1024 * 1024;
|
||||
} else if (resolution <= 1440) {
|
||||
bitRate = 16 * 1024 * 1024;
|
||||
} else if (resolution <= 2016) {
|
||||
} else {
|
||||
bitRate = 40 * 1024 * 1024;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user