From d699d164980cdbc0943b76677c2f28cd8ab88143 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 7 Mar 2025 16:13:56 -0300 Subject: bin/{live,process,video,webcam}: Move to "clive" directory --- bin/process | 70 ------------------------------------------------------------- 1 file changed, 70 deletions(-) delete mode 100755 bin/process (limited to 'bin/process') 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) -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- -- cgit v1.2.3