aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacki <jacki@thejackimonster.de>2024-08-22 18:06:52 +0200
committerJacki <jacki@thejackimonster.de>2024-08-22 18:06:52 +0200
commit6c090341127b6db310b470b345ce1004c327203b (patch)
tree3fe43f563f25d01695ed68635eb8b8290ea39320
parent91becc9eefc8a4a2c1dfb203c9a51e5c3cc6b9de (diff)
downloadmessenger-gtk-6c090341127b6db310b470b345ce1004c327203b.tar.gz
messenger-gtk-6c090341127b6db310b470b345ce1004c327203b.zip
Support multiple aspect ratios with video streaming
-rw-r--r--src/discourse.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/discourse.c b/src/discourse.c
index 3ba1776..b69f401 100644
--- a/src/discourse.c
+++ b/src/discourse.c
@@ -651,8 +651,10 @@ _setup_video_gst_pipelines(MESSENGER_DiscourseInfo *info)
651 g_assert(info); 651 g_assert(info);
652 652
653 info->video_record_pipeline = gst_parse_launch( 653 info->video_record_pipeline = gst_parse_launch(
654 "pipewiresrc name=source ! video/x-raw,framerate={ [ 0/1, 30/1 ] } ! videoscale ! " 654 "pipewiresrc name=source ! "
655 "video/x-raw,width=1280,height=720 ! videoconvert ! video/x-raw,format=I420 ! " 655 "video/x-raw,framerate={ [ 0/1, 30/1 ] } ! "
656 "videoscale ! video/x-raw,height=[1,1280],width=[1,1280] ! "
657 "videoconvert ! video/x-raw,format=I420 ! "
656 "x264enc bitrate=1000 speed-preset=fast bframes=0 key-int-max=30 tune=zerolatency byte-stream=true ! " 658 "x264enc bitrate=1000 speed-preset=fast bframes=0 key-int-max=30 tune=zerolatency byte-stream=true ! "
657 "video/x-h264,profile=baseline ! rtph264pay aggregate-mode=zero-latency mtu=45000 ! " 659 "video/x-h264,profile=baseline ! rtph264pay aggregate-mode=zero-latency mtu=45000 ! "
658 "tee ! queue ! rtpmux name=mux ! capsfilter name=filter ! fdsink name=sink", 660 "tee ! queue ! rtpmux name=mux ! capsfilter name=filter ! fdsink name=sink",