From 24a346bb505668426aa710b950c11980b17d62e2 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Wed, 12 Oct 2022 20:52:02 -0400 Subject: Update organizer notebook md --- 2022/organizers-notebook.md | 58 ++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 55 insertions(+), 3 deletions(-) (limited to '2022/organizers-notebook.md') diff --git a/2022/organizers-notebook.md b/2022/organizers-notebook.md index b397ce01..630104dc 100644 --- a/2022/organizers-notebook.md +++ b/2022/organizers-notebook.md @@ -561,14 +561,26 @@ Where should we host this? [Ansible notes](#ansible) +Consider if we need extra scaling beyond being on a beefy live0? + + + +etherpad-load-test: 1GB nanode, 42 clients connected (11 authors, 31 lurkers) +Will need to try this again with a bigger node + ### DONE Use the API to create pages based on all the slugs -### TODO Figure out monitoring; maybe get everything daily and commit to git repo? +### CANCELLED Figure out monitoring; maybe get everything daily and commit to git repo? + +History or regeneration will be fine. We'll probably link to it shortly before the event, and we can also turn off the service until we're ready. -### TODO Generate talk-specific pad content +### DONE Generate talk-specific pad content + + +### TODO Set up nginx reverse proxy ### TODO Link to pad from talk page @@ -1454,6 +1466,46 @@ Usage: `compress-video.sh original-file output-file`: We tried using q56 before, but it was a little too aggressive. Q=32 is the default and is probably a reasonable space vs. quality compromise. +2020 version used with parallel + + Q=$1 + WIDTH=1280 + HEIGHT=720 + AUDIO_RATE=48000 + VIDEO_FILTER="scale=w=${WIDTH}:h=${HEIGHT}:force_original_aspect_ratio=1,pad=${WIDTH}:${HEIGHT}:(ow-iw)/2:(oh-ih)/2,fps=25,colorspace=all=bt709:iall=bt601-6-625:fast=1" + FILE=$2 + SUFFIX=$Q + shift + shift + if [ ! -f $FILE ]; then + wget https://mirror.csclub.uwaterloo.ca/emacsconf/2020/$FILE + fi + ffmpeg -y -i "$FILE" -pixel_format yuv420p -vf $VIDEO_FILTER -colorspace 1 -color_primaries 1 -color_trc 1 -c:v libvpx-vp9 -b:v 0 -crf $Q -aq-mode 2 -tile-columns 0 -tile-rows 0 -frame-parallel 0 -cpu-used 8 -auto-alt-ref 1 -lag-in-frames 25 -g 240 -pass 1 -f webm -an -threads 8 /dev/null && + if [[ $FILE =~ "webm" ]]; then + ffmpeg -y -i "$FILE" $* -pixel_format yuv420p -vf $VIDEO_FILTER -colorspace 1 -color_primaries 1 -color_trc 1 -c:v libvpx-vp9 -b:v 0 -crf $Q -tile-columns 2 -tile-rows 2 -frame-parallel 0 -cpu-used -5 -auto-alt-ref 1 -lag-in-frames 25 -pass 2 -g 240 -ac 2 -threads 8 -c:a copy "${FILE%.*}--compressed$SUFFIX.webm" + else + ffmpeg -y -i "$FILE" $* -pixel_format yuv420p -vf $VIDEO_FILTER -colorspace 1 -color_primaries 1 -color_trc 1 -c:v libvpx-vp9 -b:v 0 -crf $Q -tile-columns 2 -tile-rows 2 -frame-parallel 0 -cpu-used -5 -auto-alt-ref 1 -lag-in-frames 25 -pass 2 -g 240 -ac 2 -threads 8 -c:a libvorbis "${FILE%.*}--compressed$SUFFIX.webm" + fi + rm $FILE + +2022 version used with parallel to compress low version + + Q=$1 + WIDTH=1280 + HEIGHT=720 + AUDIO_RATE=48000 + VIDEO_FILTER="scale=w=${WIDTH}:h=${HEIGHT}:force_original_aspect_ratio=1,pad=${WIDTH}:${HEIGHT}:(ow-iw)/2:(oh-ih)/2,fps=25,colorspace=all=bt709:iall=bt601-6-625:fast=1" + FILE=$2 + SUFFIX=$Q + shift + shift + ffmpeg -y -i "$FILE" -pixel_format yuv420p -vf $VIDEO_FILTER -colorspace 1 -color_primaries 1 -color_trc 1 -c:v libvpx-vp9 -b:v 0 -crf $Q -aq-mode 2 -tile-columns 0 -tile-rows 0 -frame-parallel 0 -cpu-used 8 -auto-alt-ref 1 -lag-in-frames 25 -g 240 -pass 1 -f webm -an -threads 8 /dev/null && + if [[ $FILE =~ "webm" ]]; then + ffmpeg -y -i "$FILE" $* -pixel_format yuv420p -vf $VIDEO_FILTER -colorspace 1 -color_primaries 1 -color_trc 1 -c:v libvpx-vp9 -b:v 0 -crf $Q -tile-columns 2 -tile-rows 2 -frame-parallel 0 -cpu-used -5 -auto-alt-ref 1 -lag-in-frames 25 -pass 2 -g 240 -ac 2 -threads 8 -c:a copy "${FILE%.*}--compressed$SUFFIX.webm" + else + ffmpeg -y -i "$FILE" $* -pixel_format yuv420p -vf $VIDEO_FILTER -colorspace 1 -color_primaries 1 -color_trc 1 -c:v libvpx-vp9 -b:v 0 -crf $Q -tile-columns 2 -tile-rows 2 -frame-parallel 0 -cpu-used -5 -auto-alt-ref 1 -lag-in-frames 25 -pass 2 -g 240 -ac 2 -threads 8 -c:a libvorbis "${FILE%.*}--compressed$SUFFIX.webm" + fi + @@ -1945,7 +1997,7 @@ Probably focus on grabbing the audio first and seeing what's worth keeping Make a table of the form - +
-- cgit v1.2.3