From 4de91fd04e4194e014c77cd9d1956bc5e7cfdab5 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 7 Mar 2025 08:47:50 -0300 Subject: bin/process: Fix combined.webm by using "-f concat" --- bin/process | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) (limited to 'bin') diff --git a/bin/process b/bin/process index fa96ef5..3fbcf81 100755 --- a/bin/process +++ b/bin/process @@ -9,12 +9,18 @@ FFMFLAGS = -y -hide_banner -loglevel warning .SUFFIXES: -.SUFFIXES: .mpd .webmx +.SUFFIXES: .mpd .webmx .txt .mpd.webmx: cd $(?D) && ffmpeg $(FFMFLAGS) -i $( $(@F) EOF } @@ -41,8 +46,8 @@ mpds() { mkdeps() { mpds | varlist 'sources.mpd' - mpds | cut -d/ -f1-2 | sed 's,$,/combined.webmx,' | uniq | - varlist 'combined.webmx' + mpds | cut -d/ -f1-2 | sed 's,$,/combined.txt,' | uniq | + varlist 'combined.txt' printf '\n' mpds | sed 's/^\(.*\)\.mpd$/\1.webmx:\t\1.mpd/' @@ -50,8 +55,11 @@ mkdeps() { printf '\n' mpds | sed 's/\.mpd$/.webm/' | awk -F/ '{ - printf "data/%s/combined.webmx:\t%s\n", $2, $0 + printf "data/%s/combined.txt:\t%s\n", $2, $0 }' + + mpds | xargs dirname | xargs dirname | uniq | + sed 's|^\(.*\)$|\1/combined.webm:\t\1combined.txt|' } -- cgit v1.2.3