diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-11-05 09:39:34 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-11-05 09:39:34 +0100 |
commit | 8e87c01fe7a06d9438dafa5585d940277c70e146 (patch) | |
tree | 9bb912b38e7b44380aafb203e00787086a5bdd7a | |
parent | 8b67f01cf82cc7c51fc2d5b5ec427a610a536f4a (diff) |
Correct bitrate calculation, default bitrate to 15000kbps
-rw-r--r-- | src/gui/SettingsPage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/SettingsPage.cpp b/src/gui/SettingsPage.cpp index 7fa609f..a08bd52 100644 --- a/src/gui/SettingsPage.cpp +++ b/src/gui/SettingsPage.cpp @@ -261,8 +261,8 @@ namespace gsr { } std::unique_ptr<Entry> SettingsPage::create_video_bitrate_entry() { - auto video_bitrate_entry = std::make_unique<Entry>(&get_theme().body_font, "5000", (int)(get_theme().body_font.get_character_size() * 4.0f)); - video_bitrate_entry->validate_handler = create_entry_validator_integer_in_range(1, 100000); + auto video_bitrate_entry = std::make_unique<Entry>(&get_theme().body_font, "15000", (int)(get_theme().body_font.get_character_size() * 4.0f)); + video_bitrate_entry->validate_handler = create_entry_validator_integer_in_range(1, 500000); video_bitrate_entry_ptr = video_bitrate_entry.get(); return video_bitrate_entry; } @@ -556,7 +556,7 @@ namespace gsr { void SettingsPage::update_estimated_file_size() { const int64_t replay_time_seconds = atoi(replay_time_entry_ptr->get_text().c_str()); - const int64_t video_bitrate_bps = atoi(video_bitrate_entry_ptr->get_text().c_str()) * 1000LL; + const int64_t video_bitrate_bps = atoi(video_bitrate_entry_ptr->get_text().c_str()) * 1000LL / 8LL; const double video_filesize_mb = ((double)replay_time_seconds * (double)video_bitrate_bps) / 1024.0 / 1024.0; char buffer[512]; |