From 213d731fa682c80bdec85b70ba5c930abd388711 Mon Sep 17 00:00:00 2001 From: Carlos Sousa Date: Tue, 15 Jun 2021 19:54:43 +0200 Subject: [PATCH] Added clipJoiner.sh --- xubuntuDaily/README.md | 3 +++ xubuntuDaily/clipJoiner.sh | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100755 xubuntuDaily/clipJoiner.sh diff --git a/xubuntuDaily/README.md b/xubuntuDaily/README.md index fb4d6e7b..721ddcba 100644 --- a/xubuntuDaily/README.md +++ b/xubuntuDaily/README.md @@ -7,9 +7,12 @@ Scripts used to create, maintain or update my daily xubuntu OS. ### Task + ### Action +004 - ./clipJoiner.sh ### Result +004 - Indexes all files in a directory - and sub-directories - and joins them in a single clip ### Note diff --git a/xubuntuDaily/clipJoiner.sh b/xubuntuDaily/clipJoiner.sh new file mode 100755 index 00000000..92a6d7d1 --- /dev/null +++ b/xubuntuDaily/clipJoiner.sh @@ -0,0 +1,6 @@ +#!/bin/bash +find /mnt/hdd/DL/DL/Clips/ ! -type d > /mnt/hdd/DL/DL/Scripts/files.txt +sed -i -e "s/mnt/file '\/mnt/gi" /mnt/hdd/DL/DL/Scripts/files.txt +sed -i -e "s/\/file/file/gi" /mnt/hdd/DL/DL/Scripts/files.txt +sed -i -e "s/.mkv/.mkv'/gi" /mnt/hdd/DL/DL/Scripts/files.txt +ffmpeg -f concat -safe 0 -i /mnt/hdd/DL/DL/Scripts/files.txt -c copy /mnt/hdd/DL/DL/Scripts/output.mkv