adamsgaard.dk

my academic webpage
git clone git://src.adamsgaard.dk/adamsgaard.dk
Log | Files | Refs | README | LICENSE Back to index

commit 97fc9a5cdc066f4e1d68d7df612ac3b3c1047937
parent 8885fa09e3ab8c00a106b1ead75652f56799ddf0
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 17 Mar 2020 11:30:44 +0100

Reflow text on gopher and minor grammar improvement

Diffstat:
Mpages/004-screencasts.html | 4++--
Mpages/004-screencasts.txt | 59+++++++++++++++++++++++++++++++----------------------------
2 files changed, 33 insertions(+), 30 deletions(-)

diff --git a/pages/004-screencasts.html b/pages/004-screencasts.html @@ -8,7 +8,7 @@ for those of us who do not use Microsoft and Apple products.</p> <p>I needed a way to record my pdf slideshows while talking over the presentation. Ideally, I also wanted the ability to show the video of my webcam as an overlay in an attempt to make the presentation -a bit more engaging when explaining more complex parts.</p> +a bit more engaging when explaining complex parts.</p> <p>Fortunately, <a href="https://ffmpeg.org">ffmpeg(1)</a> makes it easy to record the screen and laptop audio. I want to keep the @@ -97,7 +97,7 @@ done </code></pre> <figure class="pagefigure"> - <video poster="video/screencast.jpg" + <video poster="video/screencast.jpg" style="object-fit:fill;" controls preload="none" class="mediaframe"> <source src="video/screencast.webm" type="video/webm"> <source src="video/screencast.ogv" type="video/ogg"> diff --git a/pages/004-screencasts.txt b/pages/004-screencasts.txt @@ -1,18 +1,19 @@ -On Monday 2020-03-16 the buildings of the danish public sector were closed as -an emergency response to COVID-19. This includes Aarhus University where I -teach two undergraduate courses. The university asks lecturers to move their -teaching to digital platforms. As many times before, this requires creative -thinking for those of us who do not use Microsoft and Apple products. - -I needed a way to record my pdf slideshows while talking over the presentation. -Ideally, I also wanted the ability to show the video of my webcam as an overlay -in an attempt to make the presentation a bit more engaging when explaining more -complex parts. - -Fortunately, [1]ffmpeg(1) makes it easy to record the screen and laptop audio. -I want to keep the fan noise low during recording by applying minimal -compression and encoding. The following shell script serves the purpose of -starting and stopping recording: +On Monday 2020-03-16 the buildings of the danish public sector were +closed as an emergency response to COVID-19. This includes Aarhus +University where I teach two undergraduate courses. The university +asks lecturers to move their teaching to digital platforms. As many +times before, this requires creative thinking for those of us who +do not use Microsoft and Apple products. + +I needed a way to record my pdf slideshows while talking over the +presentation. Ideally, I also wanted the ability to show the video +of my webcam as an overlay in an attempt to make the presentation +a bit more engaging when explaining complex parts. + +Fortunately, [1]ffmpeg(1) makes it easy to record the screen and +laptop audio. I want to keep the fan noise low during recording +by applying minimal compression and encoding. The following shell +script serves the purpose of starting and stopping recording: #!/bin/sh lockfile=/tmp/screenrecord.pid @@ -51,12 +52,13 @@ else startrecording fi -On Linux systems, the sound driver sndio should be replaced by alsa in the -above ffmpeg(1) command. I have bound the above script to the key binding Alt+r -which makes it easy to start and stop recording in my X session. +On Linux systems, the sound driver sndio should be replaced by alsa +in the above ffmpeg(1) command. I have bound the above script to +the key binding Alt+r which makes it easy to start and stop recording +in my X session. -On OpenBSD I can show the webcam video feed with the [2]video(1) command. The -following script toggles the video feed: +On OpenBSD I can show the webcam video feed with the [2]video(1) +command. The following script toggles the video feed: #!/bin/sh # remember to `chown $USER /dev/video0` @@ -66,13 +68,14 @@ else nohup video -s 320 >/dev/null 2>&1 & fi -On Linux, the command mpv /dev/video0 can take place of the video(1) command -above. I have the above script bound to the keybinding Alt+v so I can quickly -show and hide my face while recording. +On Linux, the command mpv /dev/video0 can take place of the video(1) +command above. I have the above script bound to the keybinding Alt+v +so I can quickly show and hide my face while recording. -When I am done recording a lecture, I encode and compress the video file to -save bandwidth during upload. The following script encodes all input files and -reduces file size to roughly 15% without concievable loss in quality: +When I am done recording a lecture, I encode and compress the video +file to save bandwidth during upload. The following script encodes +all input files and reduces file size to roughly 15% without +concievable loss in quality: #!/bin/sh @@ -87,8 +90,8 @@ for f in "$@"; do encode "$f" done -[3]Example screen recording using ffmpeg(1) and video(1) with the above -scripts. +[3]Example screen recording using ffmpeg(1) and video(1) with the +above scripts. References: