From f4b77c42ca78c5265c4754caeef5289e3841f5e9 Mon Sep 17 00:00:00 2001
From: Timmy Keller <tjk@tjkeller.xyz>
Date: Thu, 23 Dec 2021 22:20:14 -0600
Subject: some youtube dl script and dmenu runapplication and test timmywm and
 modified other scripts idjlol

---
 video/ffconcat | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

(limited to 'video/ffconcat')

diff --git a/video/ffconcat b/video/ffconcat
index 7e903f6..06eb066 100755
--- a/video/ffconcat
+++ b/video/ffconcat
@@ -1,17 +1,12 @@
 #!/bin/sh
-#for out; do true; done # get last argument
-filelist=$(mktemp ${TMPDIR:-/tmp}/ffconcat.XXXXXX) || exit
-pwd="$(pwd)"
-for out; do
-	[ -e "$pwd/$out" ] \
-	&& files="$pwd/$out\n$files" \
-	|| ([ -e "$out" ] && files="$out\n$files")
-done
-echo $files | tail +2 | sed -n "s/\(.\+\)/file '\1'/p"# > $filelist
+ffconcat="$(ls | sed "s/^/file '/; s/$/'/")"
+echo "$ffconcat" > ffconcat
 
 ffmpeg \
 	-f concat \
 	-safe 0 \
-	-i $filelist \
+	-i ffconcat \
 	-c copy \
-	$out
+	out.mkv
+
+rm ffconcat
-- 
cgit v1.2.3