aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-03-07 16:13:56 -0300
committerEuAndreh <eu@euandre.org>2025-03-07 16:13:56 -0300
commitd699d164980cdbc0943b76677c2f28cd8ab88143 (patch)
treecb69829a0d373288926a6e303d5bc56e7d1e7d63
parentetc/sh/rc: Add -F to "tree" alias (diff)
downloaddotfiles-d699d164980cdbc0943b76677c2f28cd8ab88143.tar.gz
dotfiles-d699d164980cdbc0943b76677c2f28cd8ab88143.tar.xz
bin/{live,process,video,webcam}: Move to "clive" directory
-rwxr-xr-xbin/live8
-rwxr-xr-xbin/process70
-rwxr-xr-xbin/video16
-rwxr-xr-xbin/webcam12
4 files changed, 0 insertions, 106 deletions
diff --git a/bin/live b/bin/live
deleted file mode 100755
index ba21fe7..0000000
--- a/bin/live
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-set -eu
-
-DIR="data/$(timestamp)"/"$(now)"
-mkdir -p "$DIR"
-cd "$DIR"
-
-exec video -f dash live.mpd
diff --git a/bin/process b/bin/process
deleted file mode 100755
index 3fbcf81..0000000
--- a/bin/process
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/sh
-set -eu
-
-makefile_pre() {
- cat <<'EOF'
-.POSIX:
-FFMFLAGS = -y -hide_banner -loglevel warning
-
-
-
-.SUFFIXES:
-.SUFFIXES: .mpd .webmx .txt
-
-.mpd.webmx:
- cd $(?D) && ffmpeg $(FFMFLAGS) -i $(<F) $(*F).webm
- touch $@
-
-.txt.webmx:
- ffmpeg $(FFMFLAGS) -f concat -i $< -c copy $*.webm
- mkdir -p processed/"`basename $(*D)`"
- ln -f $*.webm processed/"`basename $(*D)`"/
- touch $@
-
-
-all:
-EOF
-}
-
-makefile_post() {
- cat <<'EOF'
-
-sources.webmx = $(sources.mpd:.mpd=.webmx)
-combined.webmx = $(combined.txt:.txt=.webmx)
-
-all: $(sources.webmx) $(combined.txt) $(combined.webmx)
-
-$(combined.txt):
- cd $(@D) && find */live.webm | LANG=POSIX.UTF-8 sort | \
- sed 's|^|file |' > $(@F)
-EOF
-}
-
-mpds() {
- find data/*/*/live.mpd | LANG=POSIX.UTF-8 sort
-}
-
-mkdeps() {
- mpds | varlist 'sources.mpd'
- mpds | cut -d/ -f1-2 | sed 's,$,/combined.txt,' | uniq |
- varlist 'combined.txt'
- printf '\n'
-
- mpds | sed 's/^\(.*\)\.mpd$/\1.webmx:\t\1.mpd/'
- mpds | sed 's/^\(.*\)\.mpd$/\1.webm:\t\1.webmx/'
- printf '\n'
-
- mpds | sed 's/\.mpd$/.webm/' | awk -F/ '{
- printf "data/%s/combined.txt:\t%s\n", $2, $0
- }'
-
- mpds | xargs dirname | xargs dirname | uniq |
- sed 's|^\(.*\)$|\1/combined.webm:\t\1combined.txt|'
-}
-
-
-{
- makefile_pre
- mkdeps
- makefile_post
-} | make -f-
diff --git a/bin/video b/bin/video
deleted file mode 100755
index bf1de92..0000000
--- a/bin/video
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/bin/sh
-set -eu
-
-BT="$(pacmd ls | awk '/^Default sink name: / && $0 = $4')"
-
-COMPATOPTS='-codec:v libx264 -profile:v baseline -level 4 -pix_fmt yuv420p -preset veryfast -codec:a aac'
-QUIETOPTS='-hide_banner -loglevel warning'
-
-exec ffmpeg \
- -f x11grab -probesize 10M -i "$DISPLAY" \
- -f pulse -guess_layout_max 0 -i "$BT".monitor \
- -f pulse -guess_layout_max 0 -i default \
- -filter_complex '[1][2]amix' -ac 2 \
- $QUIETOPTS \
- $COMPATOPTS \
- "$@"
diff --git a/bin/webcam b/bin/webcam
deleted file mode 100755
index 12edf91..0000000
--- a/bin/webcam
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-set -eu
-
-exec mpv \
- --msg-level=all=warn \
- --profile=low-latency \
- --untimed \
- --framedrop=no \
- --speed=1.01 \
- --osc=no \
- --no-input-default-bindings \
- /dev/video0