commit 6c090341127b6db310b470b345ce1004c327203b
parent 91becc9eefc8a4a2c1dfb203c9a51e5c3cc6b9de
Author: Jacki <jacki@thejackimonster.de>
Date: Thu, 22 Aug 2024 18:06:52 +0200
Support multiple aspect ratios with video streaming
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/discourse.c b/src/discourse.c
@@ -651,8 +651,10 @@ _setup_video_gst_pipelines(MESSENGER_DiscourseInfo *info)
g_assert(info);
info->video_record_pipeline = gst_parse_launch(
- "pipewiresrc name=source ! video/x-raw,framerate={ [ 0/1, 30/1 ] } ! videoscale ! "
- "video/x-raw,width=1280,height=720 ! videoconvert ! video/x-raw,format=I420 ! "
+ "pipewiresrc name=source ! "
+ "video/x-raw,framerate={ [ 0/1, 30/1 ] } ! "
+ "videoscale ! video/x-raw,height=[1,1280],width=[1,1280] ! "
+ "videoconvert ! video/x-raw,format=I420 ! "
"x264enc bitrate=1000 speed-preset=fast bframes=0 key-int-max=30 tune=zerolatency byte-stream=true ! "
"video/x-h264,profile=baseline ! rtph264pay aggregate-mode=zero-latency mtu=45000 ! "
"tee ! queue ! rtpmux name=mux ! capsfilter name=filter ! fdsink name=sink",