mirror of
https://github.com/zebrajr/HomeLab.git
synced 2026-01-15 12:15:06 +00:00
Added clipJoiner.sh
This commit is contained in:
@@ -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
6
xubuntuDaily/clipJoiner.sh
Executable 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
|
||||
Reference in New Issue
Block a user