### end bitcoin
+### begin live streaming ###
+
+# comparing nginx rtmp to icecast
+# `mpv --cache=no` had about 2.5 sec latency vs 4 seconds.
+# Then I discovered this command which had about .5 sec latency:
+#ffplay -f live_flv -fast -x 1280 -y 720 -fflags nobuffer -flags low_delay -strict experimental -vf "setpts=N/60/TB" -af "asetpts=N/60/TB" -noframedrop -i rtmp://url_here
+#
+pi nginx libnginx-mod-rtmp
+
+
+### end live streaming ###
+
### begin gh ####
# from https://raw.githubusercontent.com/cli/cli/trunk/docs/install_linux.md
--- /dev/null
+# based on https://opensource.com/article/19/1/basic-live-video-streaming-server#comments
+# and https://github.com/arut/nginx-rtmp-module/wiki/Directives
+rtmp {
+ allow publish 127.0.0.1;
+ deny publish all;
+ server {
+ listen 1935;
+ application live {
+ live on;
+ record off;
+ }
+ }
+}
prof-backup
prof-tail
prof-notify
+ /a/bin/newns/newns
)
for f in /b/log-quiet/*; do
# leave it up to epanic-clean to send email notification
fi
+ mprom=/var/lib/prometheus/node-exporter/mailtest-check.prom
+ if grep -qE 'mailtest_check_(unexpected|missing).*[^ ][^0]$' $mprom; then
+ chars+=("MTEST_SPAM")
+ fi
+ mtest_found=false
+ for t in $(grep -E ^mailtest_check_last_usec $mprom | awk '{print $NF}'); do
+ if (( t + 60 * 20 < EPOCHSECONDS )); then
+ mtest_found=true
+ fi
+ done
+ if $mtest_found; then
+ chars+=("MTEST_AGE")
+ fi
+
if [[ ! -e $status_file || -w $status_file ]]; then
if [[ -e /a/bin/bash_unpublished/source-state ]]; then
cat /a/bin/bash_unpublished/source-state >$status_file
f=/run/user/1000/ziva-tmp.jpg
-mkdir -p $dest_dir
+install -g 1000 -o 1000 -m 700 $dest_dir
cd $dest_dir
shopt -s nullglob
jpgs=( 20*jpg )