From 2d2d4ac002471d9e1c9676f01b57729efb321cee Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 23 Dec 2024 13:11:46 +0400 Subject: [PATCH] Reduce video message bitrate so they always fit. --- Telegram/SourceFiles/ui/controls/round_video_recorder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/ui/controls/round_video_recorder.cpp b/Telegram/SourceFiles/ui/controls/round_video_recorder.cpp index 4ba0e7768..73b8817f8 100644 --- a/Telegram/SourceFiles/ui/controls/round_video_recorder.cpp +++ b/Telegram/SourceFiles/ui/controls/round_video_recorder.cpp @@ -26,8 +26,8 @@ namespace { constexpr auto kSide = 400; constexpr auto kUpdateEach = crl::time(100); constexpr auto kAudioFrequency = 48'000; -constexpr auto kAudioBitRate = 32'000; -constexpr auto kVideoBitRate = 3 * 1024 * 1024; +constexpr auto kAudioBitRate = 64 * 1024; +constexpr auto kVideoBitRate = 2 * 1024 * 1024; constexpr auto kMinDuration = crl::time(200); constexpr auto kMaxDuration = 60 * crl::time(1000); constexpr auto kInitTimeout = 5 * crl::time(1000);