From 0bf4e7433cc57e43f651e9483959f2b86d7dca14 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Mon, 28 Nov 2022 20:00:32 -0500 Subject: fallbacks --- 2022/organizers-notebook.md | 56 +++++++++++++++++++++++++++++++++------------ 1 file changed, 42 insertions(+), 14 deletions(-) (limited to '2022/organizers-notebook.md') diff --git a/2022/organizers-notebook.md b/2022/organizers-notebook.md index 5e13a370..16ca48d7 100644 --- a/2022/organizers-notebook.md +++ b/2022/organizers-notebook.md @@ -433,17 +433,22 @@ interests you! ### STARTED icecast fallback :derisk:sachac: -ffmpeg -y -r 20 -t 3 -i sorry.png -f lavfi -i anullsrc=channel\_layout=stereo:sample\_rate=48000 -shortest -c:v vp8 -color\_primaries 1 -color\_trc 1 -colorspace 1 sorry.webm + +#### Creating the files + +ffmpeg -y -f lavfi -i anullsrc=channel\_layout=stereo:sample\_rate=48000 -loop 1 -r 20 -t 10 -i sorry.png -c:v libvpx -c:a libvorbis -color\_primaries 1 -color\_trc 1 -colorspace 1 -crf 30 -g 120 -minrate 1.5M -b:v 1500 -g 120 -maxrate 1.5M -cluster\_time\_limit 5100 -shortest sorry.webm + +ffmpeg -y -f lavfi -i anullsrc=channel\_layout=stereo:sample\_rate=48000 -loop 1 -r 20 -t 10 -i sorry.png -vf scale=854:480 -c:v libvpx -c:a libvorbis -color\_primaries 1 -color\_trc 1 -colorspace 1 -crf 30 -g 120 -minrate 1.5M -b:v 1500 -g 120 -maxrate 1.5M -cluster\_time\_limit 5100 -shortest sorry-480p.webm icecast 2.4.4 Stream #0:0: Video: vp8, yuv420p(tv, bt709, progressive), 1280x720, SAR 1:1 DAR 16:9, 20 fps, 20 tbr, 1k tbn, 1k tbc (default) Stream #0:1: Audio: vorbis, 48000 Hz, stereo, fltp (default) Okay. I can ffmpeg to /gen-sorry.webm with -orga@live0:/usr/share/icecast2/web$ ffmpeg -r 20 -re -stream\_loop -1 -i gen-fallback.webm -f webm -content\_type video/webm -c:a copy -c:v vp8 icecast://https://emacsconf.org/2022/talks/$PASSWORD@localhost:8001/gen-sorry.webm +orga@live0:/usr/share/icecast2/web$ ffmpeg -r 20 -re -stream\_loop -1 -i gen-fallback.webm -f webm -content\_type video/webm -c:a copy -c:v copy icecast://https://emacsconf.org/2022/talks/$PASSWORD@localhost:8001/gen-sorry.webm + -if I stream to it and not gen, I see sorry using gen’s mount -If I stream to gen, I see gen, but I need to refresh (mpv or Firefox) +##### TODO Add test pattern to part of the screen ##### gen @@ -470,16 +475,39 @@ Input #0, matroska,webm, from ’http://live0.emacsconf.org:8001/gen.webm&rs Stream #0:1: Audio: vorbis, 48000 Hz, stereo, fltp (default) +#### DONE Create fallback for 480p as well + + #### DONE Create fallback video -#### TODO Add more ffmpeg options from the OBS profile to try to get them to match as closely as possible +#### DONE Add more ffmpeg options from the OBS profile to try to get them to match as closely as possible -#### TODO Detect fallback and reload the video player +#### DONE Detect fallback and reload the video player + // @license magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt txt CC0-1.0 + // Copyright (c) 2022 Sacha Chua - CC0 Public Domain + var video = document.querySelector('video.reload'); + if (video) { + var myVar = setInterval(reloadAsNeeded, 1000); + var oldTime = ''; + function reloadAsNeeded() { + if ((video.paused != true && (video.currentTime - oldTime) == 0 && video.currentTime != 0)) { + var source = video.querySelector('source'); + var oldVideo = source.src; + source.src = ''; + source.src = oldVideo; + video.load(); + video.play(); + } + oldTime = video.currentTime; + }; + } + // @license-end + ### TODO Make sure things are okay for me to handle both streams :sachac: @@ -519,7 +547,7 @@ can paste in for tips. ## Caption talks and make chapter headings -### TODO Nudge volunteers to e-mail me captions by Dec 1 :mail:sachac: +### DONE Nudge volunteers to e-mail me captions by Dec 1 :mail:sachac: ### DONE Copy chapter headings for mail talk :emacsconf:captions: @@ -895,7 +923,7 @@ Try them in an Etherpad ### DONE Make a hyperlist for checking people in for easier copying and pasting -### TODO Send FlowyCoder hyperlist for checking people in :mail: +### DONE Send FlowyCoder hyperlist for checking people in :mail: [Use Mumble for backchannel coordination and also on-stage](file:///home/sacha/proj/emacsconf/wiki/2022/organizers-notebook/index.md) @@ -1773,7 +1801,7 @@ AM: 9-12 PM EST, PM: 1-5 PM EST (plus a little extra for setup/transition) Saturday Dec 3 - +
@@ -1853,7 +1881,7 @@ publicvoit - pad until 4pm on Sat, until 2pm on Sun Sunday Dec 4 -
+
@@ -2923,7 +2951,7 @@ Probably focus on grabbing the audio first and seeing what’s worth keeping Make a table of the form -
+
@@ -3233,12 +3261,12 @@ mpv –vf=negate $url export SLUG=the ID of the talk -- [TO\_STREAM -> PLAYING](#org1e12a03):stream: +- [TO\_STREAM -> PLAYING](#org29019ab):stream: - [CLOSED\_Q -> OPEN\_Q](#open) - [OPEN\_Q -> TO\_ARCHIVE](#archive) - + ### TO\_STREAM -> PLAYING :stream: @@ -5671,7 +5699,7 @@ Sacha ### CANCELLED Draft e-mail to send speakers who may need to do it live -### TODO Make sure IRC talks get BBB checkin information if they need to do it live :mail: +### DONE Make sure IRC talks get BBB checkin information if they need to do it live :mail: survey, orgyear, lspbridge, eev, python -- cgit v1.2.3