diff options
author | Sacha Chua <sacha@sachachua.com> | 2025-09-19 18:53:18 -0400 |
---|---|---|
committer | Sacha Chua <sacha@sachachua.com> | 2025-09-19 18:53:38 -0400 |
commit | 8f272a96965fb15be36ce3666e1f7533353759b0 (patch) | |
tree | 71072d651204f37e254acde07edd6b3378caef03 /roles/prerec/templates/process-prerec.sh | |
parent | 37a7046cd6d2cf95a36c4f251cca6506d1069315 (diff) | |
download | emacsconf-ansible-8f272a96965fb15be36ce3666e1f7533353759b0.tar.xz emacsconf-ansible-8f272a96965fb15be36ce3666e1f7533353759b0.zip |
add mpv, captions
Diffstat (limited to '')
-rwxr-xr-x | roles/prerec/templates/process-prerec.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/prerec/templates/process-prerec.sh b/roles/prerec/templates/process-prerec.sh index d98337f..d0f5fa7 100755 --- a/roles/prerec/templates/process-prerec.sh +++ b/roles/prerec/templates/process-prerec.sh @@ -5,9 +5,10 @@ ORIGINAL=$1 REENCODED=$(echo "$ORIGINAL" | perl -pe 's/^(emacsconf-[0-9]*-.*?--.*?--.*?--).*/$1reencoded.webm/') SLUG=$(echo "$ORIGINAL" | perl -ne '/^emacsconf-[0-9]*-(.*?)--/ && print $1') MAIN=$(echo "$ORIGINAL" | perl -pe 's/^(emacsconf-[0-9]*-.*?--.*?--.*?--).*/$1main.webm/') +VTT=$(echo "$ORIGINAL" | perl -pe 's/^(emacsconf-[0-9]*-.*?--.*?--.*?--).*/$1main.vtt/') # ( cd /data/emacsconf/cache; ./update-cache ) # /data/emacsconf/admin/{{ emacsconf_year }}/scripts/talk $SLUG "WAITING_FOR_PREREC" "PROCESSING" if [[ ! -f "$REENCODED" ]]; then screen -dmS reencode-$SLUG /bin/bash -c "reencode.sh \"$ORIGINAL\" \"$REENCODED\" && upload.sh $REENCODED $MAIN && thumbnail.sh \"$MAIN\" && upload.sh $(echo "$MAIN" | sed s/webm$/png/); echo $(date -Iminutes) $SLUG reencoded >> ~/emacsconf.log && exec /bin/bash" & fi -screen -dmS captions-$SLUG /bin/bash -c "/data/emacsconf/admin/{{ emacsconf_year }}/scripts/process-captions.py $(dirname $ORIGINAL); echo $(date -Iminutes) $SLUG captioned >> ~/emacsconf.log; exec /bin/bash" +screen -dmS captions-$SLUG /bin/bash -c "make $VTT; echo $(date -Iminutes) $SLUG captioned >> ~/emacsconf.log; exec /bin/bash" |