summaryrefslogtreecommitdiff
path: root/video/ffconcat
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-12-23 22:20:14 -0600
committerTimmy Keller <tjk@tjkeller.xyz>2021-12-23 22:20:14 -0600
commitf4b77c42ca78c5265c4754caeef5289e3841f5e9 (patch)
treebad69cda55721e2230d909b16d438f4472105db1 /video/ffconcat
parent63505f644d8f2bf8c9d4ca493048081f83532cf8 (diff)
downloadscripts-f4b77c42ca78c5265c4754caeef5289e3841f5e9.tar.xz
scripts-f4b77c42ca78c5265c4754caeef5289e3841f5e9.zip
some youtube dl script and dmenu runapplication and test timmywm and modified other scripts idjlol
Diffstat (limited to 'video/ffconcat')
-rwxr-xr-xvideo/ffconcat17
1 files changed, 6 insertions, 11 deletions
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