record: size recordings from the screen, not the quality preset
The quality preset chose the OBS canvas while the capture ran at the game's real size, and the scene item carries no transform, so picking 1080p on a 1440p screen recorded only the top-left 1920x1080 crop of the game. Recordings now always run at the primary monitor's resolution, queried in device pixels so display scaling cannot skew them, and a recording start re-checks the screen so a display change mid-session cannot bring the crop back. Quality presets keep their bitrate meaning and nothing else; they never reached the encoder before, so High, Ultra and friends now actually change what a recording costs on disk.
This commit is contained in:
1 parent
1d7f87f71d
commit
b1cde7e783
5 files changed
+106
-75
No files matched your search
@@ -46,6 +46,13 @@ pub struct VideoSettings {
|
||||
pub hardware_acceleration: bool,
|
||||
}
|
||||
|
||||
impl VideoSettings {
|
||||
/// The bitrate a recording runs at: the quality tier's.
|
||||
pub fn video_bitrate(&self) -> u32 {
|
||||
self.quality.recommended_bitrate()
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for VideoSettings {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
|
||||
Reference in new issue
Block a user