From dea969ae49a6b1c6a574e679b36a67cec20d4c7c Mon Sep 17 00:00:00 2001 From: Samuel Mimram Date: Mon, 24 Jan 2022 12:06:23 +0100 Subject: [PATCH 1/2] Add fullscreen option. This changes the layout so that slides take the full space and webcam is over the slides. --- make-xges.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make-xges.py b/make-xges.py index 977d639..2570ddb 100755 --- a/make-xges.py +++ b/make-xges.py @@ -33,7 +33,7 @@ class Presentation: def __init__(self, opts): self.opts = opts self.cam_width = round(opts.width * opts.webcam_size / 100) - self.slides_width = opts.width - self.cam_width + self.slides_width = opts.width if self.opts.fullscreen else opts.width - self.cam_width self.timeline = GES.Timeline.new_audio_video() @@ -454,6 +454,8 @@ def main(argv): help='File to use as closing credits (may be repeated)') parser.add_argument('--annotations', action='store_true', default=False, help='Add annotations to slides (requires inkscape)') + parser.add_argument('--fullscreen', action='store_true', default=False, + help='Show slides/screenshare in fullscreen and webcam over it') parser.add_argument('basedir', metavar='PRESENTATION-DIR', type=str, help='directory containing BBB presentation assets') parser.add_argument('project', metavar='OUTPUT', type=str, From 1df8ecc2a4a01f41095220cba2ec0f9206b2dfa9 Mon Sep 17 00:00:00 2001 From: Samuel Mimram Date: Wed, 31 May 2023 10:13:11 +0200 Subject: [PATCH 2/2] Add README entry. --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 421d6e7..e9fcbe3 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,7 @@ It takes the following optional parameters to influence the project: * `--backdrop=FILE` sets a still image to place behind other elements. This can be used to fill in the empty space in the frame. * `--opening-credits=FILE[:DURATION]` and `--closing-credits=FILE[:DURATION]` will add credits to project. These can either be videos or still images (which will default to 3 seconds duration). These options can be repeated to add multiple credits. * `--annotations` will include whiteboard annotations and red dot cursor to slides. +* `--fullscreen` shows slides or screenshare in fullscreen and webcam over it. Some accepted `TIME` formats: