]> www.infradead.org Git - pidgin-chime.git/commitdiff
Reduce outbound screenshare bandwidth
authorDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 19 Nov 2019 15:01:35 +0000 (15:01 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Tue, 19 Nov 2019 15:01:35 +0000 (15:01 +0000)
I've been sharing my screen for an hour now, without any dropouts. Not
really sure if this is it; it's never really been reproducible on
demand when I've been trying to debug it anyway...

prpl/chat.c

index 0f284b5aa26200662fdf9b95650fc041db813e4b..0e8c3716d9adfa9d529595f0745d2892024bfff8 100644 (file)
@@ -576,7 +576,7 @@ static void share_screen(gpointer _chat, PurpleMediaElementInfo *info)
        }
 
        gchar *sinkname = g_strdup_printf("chime_screen_sink_%p", chat->call);
-       gchar *sinkpipe = g_strdup_printf("videorate ! video/x-raw,framerate=3/1 ! videoconvert ! vp8enc min-quantizer=15 max-quantizer=25 target-bitrate=256000 deadline=1 ! appsink name=%s async=false", sinkname);
+       gchar *sinkpipe = g_strdup_printf("videorate ! video/x-raw,framerate=2/1 ! videoconvert ! vp8enc min-quantizer=15 max-quantizer=25 target-bitrate=128000 deadline=1 ! appsink name=%s async=false", sinkname);
        PurpleMediaCandidate *cand =
                purple_media_candidate_new(NULL, 1,
                                           PURPLE_MEDIA_CANDIDATE_TYPE_HOST,