From 29687c30adba8cf7955fa597d9f791921c09d89f Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Thu, 3 Nov 2022 15:34:13 -0400 Subject: Update --- 2022/organizers-notebook.md | 178 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 146 insertions(+), 32 deletions(-) (limited to '2022/organizers-notebook.md') diff --git a/2022/organizers-notebook.md b/2022/organizers-notebook.md index 3ff1dfe3..ef5303fe 100644 --- a/2022/organizers-notebook.md +++ b/2022/organizers-notebook.md @@ -792,6 +792,24 @@ zaeph is available on 2022-11-06 - [ ] Wind everything down +### Create test + +gst-launch-1.0 compositor name=mix sink\_1::xpos=1180 sink\_1::ypos=470 ! videoconvert ! autovideosink filesrc location=community-title.svg ! rsvgdec ! imagefreeze num\_buffers=100 ! mix. videotestsrc ! video/x-raw,width=400,height=300 ! mix. audiotestsrc freq ! autoaudiosink + +gst-launch-1.0 compositor name=mix sink\_1::xpos=1200 sink\_1::ypos=600 ! videoconvert ! autovideosink \\ +filesrc location=community-title.svg ! rsvgdec ! imagefreeze num\_buffers=100 ! mix. \\ +filesrc location=background.opus ! oggdemux ! opusdec ! audioconvert ! audioresample ! mix. +videotestsrc ! video/x-raw,width=400,height=300,framerate=25/1 num\_buffers=(25 \* (4 \* 60 + 5)) ! mix. + +gst-launch-1.0 webmmux name=mux ! filesink location=community.webm \\ +compositor name=mix sink\_1::xpos=1200 sink\_1::ypos=600 ! videoconvert ! vp8enc ! queue ! mux.video\_0 \\ +filesrc location=community-title.svg ! rsvgdec ! imagefreeze num\_buffers=2450 ! mix. \\ +filesrc location=background.opus ! oggdemux ! opusdec ! audioconvert ! audioresample ! vorbisenc ! queue ! mux.audio\_0 \\ +videotestsrc num\_buffers=2450 ! video/x-raw,width=400,height=300,framerate=10/1 ! mix. + +1251,/home/sacha/proj/emacsconf/private/assets/titles% find -name community-title.svg -exec inkscape –export-type=png –export-width=1280 –export-height=720 –export-background-opacity=0 {} \\; + + ## TODO Smoothen captioning workflow :sachac: @@ -1174,37 +1192,137 @@ Goals: - [X] Be able to start a VNC server with OBS, MPV, and Firefox, connect to it, and stream - [X] Have another session with the sound isolated -- [ ] Share the window instead of the desktop? - [X] Split the audio so that we can join the Q&A room before the MPV ends - handled by automatic scene switcher detecting mpv - [X] Control MPV from the commandline: track-mpv appears in the correct display, and it can also be controlled via the socket like this: echo ’{ “command”: [“loadfile”, “test2.webm”] }’ | socat - ~/mpv-socket-emacsconf-dev +- [ ] Share the window instead of the desktop? + + +### Set up connection to the track + +1. Set up your local environment + + gen: export TRACK=gen; export TRACK\_PORT=5905 + dev: export TRACK=dev; export TRACK\_PORT=5906 + +2. Copy the vnc password file + + scp emacsconf-$TRACK@res:~/.vnc/passwd vnc-passwd-$TRACK + +3. Start up the VNC server if it’s not already running + + ssh emacsconf-$TRACK@res.emacsconf.org -L $TRACK\_PORT:127.0.0.1:$TRACK\_PORT “~/bin/track-vnc; sleep infinity” + +4. Connect via VNC viewer to the appropriate forwarded port from your laptop + + xvncviewer 127.0.0.1:$TRACK\_PORT -shared -geometry 1280x720 -passwd vnc-passwd-$TRACK + +5. Set up a viewer so that you can monitor the stream + + mpv + + +### Connect to the conf file on res.emacsconf.org + +ssh orga@res.emacsconf.org +emacsclient -a -c -nw -Process on res: -1. Copy the vnc password file - - scp emacsconf-gen@res:~/.vnc/passwd vnc-passwd-gen - - scp emacsconf-dev@res:~/.vnc/passwd vnc-passwd-dev -2. Start up the VNC server if it’s not already running - - Gen: ssh emacsconf-gen@res.emacsconf.org -L 5905:127.0.0.1:5905 -L 6005:127.0.0.1:6005 “~/bin/track-vnc; sleep infinity” - - Dev: ssh emacsconf-dev@res.emacsconf.org -L 5906:127.0.0.1:5906 -L 6006:127.0.0.1:6006 “~/bin/track-vnc; sleep infinity” -3. Connect via VNC viewer to the appropriate forwarded port from your laptop - - Gen: xvncviewer 127.0.0.1:5905 -shared -geometry 1280x720 -passwd vnc-passwd-gen - - Dev: xvncviewer 127.0.0.1:5906 -shared -geometry 1280x720 -passwd vnc-passwd-dev -4. Load something with audio in Firefox, and start playing it. -5. Use pavucontrol to make sure the Firefox process is going into the $track-qa sink. +### Play a talk -To play an MPV file, ssh to the appropriate account and: +Shortcuts for navigating to a talk + +- **C-c e a a:** agenda +- **C-c e a g:** gen agenda +- **C-c e a d:** dev agenda +- **C-c e t:** emacsconf-go-to-talk + +From the agenda, you can use `C-c C-t` to set the talk status: + + -~/bin/track-mpv files -To change the displayed text, echo text to ~/url.txt, ~/news.txt, or ~/bottom.txt like this: ++-ssh emacsconf-dev@res.emacsconf.org “echo emacsconf.org/2021/talks/project > ~/url.txt” +-or use `emacsconf-stream-set-talk-info` or `emacsconf-stream-write-news`, -or use the TODO state change hook set up with `emacsconf-add-org-after-todo-state-change-hook`. ++ + + + + + + -To kill the VNC server: + + + + + + + + + + + + + + +
m (mpv)PLAYINGemacsconf-stream-play-video, emacsconf-stream-set-talk-info
qCLOSED_Q 
oOPEN_Qupdate the BBB redirect URLs to let people into the room
+ +If the video doesn’t play automatically when the talk changes to PLAYING, you can play it manually with: + + ssh emacsconf-$TRACK@res.emacsconf.org + cd /data/emacsconf/2022/stream + ~/bin/track-mpv file + + +### Do Q&A + +From the emacsclient on orga@res.emacsconf.org, you can open various talk-related things: + +- emacsconf-stream-open-pad +- emacsconf-stream-join-qa +- emacsconf-stream-join-chat + +Alternatively, you can switch to the VNC viewer and use the links in + or + . + +i3 cheat sheet: + +- Alt-e toggles horizontal/vertical split +- Alt-f toggles full-screen +- Alt-w switches to tabbed view +- Alt-1 switches to workspace 1, Alt-2 switches to workspace 2 +- Alt-Shift-2 moves things to workspace 2 +- Alt-Shift-Left moves the current window to the left +- Alt-Shift-Right moves the current window to the right +- Alt-Enter creates a terminal + +For Q&A, you may want to have the Etherpad on the left, the BBB Q&A or +IRC chat on the right, and the terminal and OBS windows on +workspace 2. + + +### Other tasks as needed + + +#### Display emergency news / announcements + +M-x emacsconf-stream-broadcast to send a message to both streams +or M-x emacsconf-stream-set-news to send a message to one stream. + +If that doesn’t work, edit the news file directly with: +`ssh emacsconf-$TRACK@res.emacsconf.org > ~/news.txt` + +If that doesn’t work, use the VNC session to switch to an Emacs window +and type your message in. + + +#### Kill the VNC server: ssh emacsconf-gen@res.emacsconf.org “vncserver -kill” ssh emacsconf-dev@res.emacsconf.org “vncserver -kill” @@ -1231,26 +1349,22 @@ ssh emacsconf-dev@res.emacsconf.org “vncserver -kill” + +### Other notes + There are sockets in the home directory for MPV control if you want to keep that process. echo ’{ “command”: [“loadfile”, “test2.webm”] }’ | socat - ~/mpv-socket-emacsconf-dev -After you start recording in OBS, -watch at or -i3 cheat sheet: +### DONE Move my conf.org setup to res so that we can control everything from there -- M-RET: terminal -- M-f: toggle full-screen -- M-w: switch to tabbed view -- M-j: go to next window -- M-shift-SPC: toggle floating -- to resize a window, right-click-drag on its title bar +### TODO Set timers for echoing text into the appropriate places and starting videos -### TODO Move my conf.org setup to res so that we can control everything from there +### TODO Figure out how to work with the layout -### TODO Set timers for echoing text into the appropriate places and starting videos + ### TODO Use xdotool to automate joining BBB in Firefox (signing in, clicking on listen only) @@ -2717,7 +2831,7 @@ Probably focus on grabbing the audio first and seeing what’s worth keeping Make a table of the form - +
-- cgit v1.2.3