Added clipJoiner.sh

This commit is contained in:
Carlos Sousa
2021-06-15 19:54:43 +02:00
parent 015110d603
commit 213d731fa6
2 changed files with 9 additions and 0 deletions

View File

@@ -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

6
xubuntuDaily/clipJoiner.sh Executable file
View File

@@ -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