diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-07-03 01:57:33 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-03 01:57:33 +0200 |
commit | 5bfbdec58f6ac84e509038c1bd1523e6e04fbbd0 (patch) | |
tree | e7bb6c78517bc3d77780ffba196a45867e96744d /src/main.cpp | |
parent | ed526923240a605694c5bf87e43ed300591b98f6 (diff) |
Change quality, otherwise twitch craps itself
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index eafbc24..102e938 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -377,7 +377,7 @@ static AVStream *add_video_stream(AVFormatContext *av_format_context, AVCodec ** fprintf(stderr, "codec id: %d\n", (*codec)->id); codec_context->width = window_pixmap.texture_width & ~1; codec_context->height = window_pixmap.texture_height & ~1; - codec_context->bit_rate = 5000000 + (codec_context->width * codec_context->height) / 2; //5000000 * ((double)fps / 30.0) + (codec_context->width * codec_context->height) / 2; + codec_context->bit_rate = 3000000 + (codec_context->width * codec_context->height) / 2; //5000000 * ((double)fps / 30.0) + (codec_context->width * codec_context->height) / 2; // Timebase: This is the fundamental unit of time (in seconds) in terms // of which frame timestamps are represented. For fixed-fps content, // timebase should be 1/framerate and timestamp increments should be |