1
0
Fork 0

fix ffmpeg-merge

This commit is contained in:
VirtuBox 2020-07-24 14:46:28 +02:00
parent ba48c2d3cd
commit f60bd6f7b1
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 7 additions and 5 deletions

View File

@ -728,15 +728,17 @@ _YOUTUBE_ENCODE() {
} }
_MERGE_VIDEO() { _MERGE_VIDEO() {
rm -f mylist
if [ "$#" -eq 0 ]; then if [ "$#" -eq 0 ]; then
videos=$(echo ./*) for i in "$PWD"/*; do
echo "file '$i'" >>mylist.txt
done
else else
videos="$*" videos="$*"
for video in $videos; do
echo "file '$video'" >>mylist.txt
done
fi fi
for video in $videos; do
rm -f mylist
echo "file '$video'" >> mylist.txt
done
ffmpeg -f concat -safe 0 -i mylist.txt -c copy "output-merged.mp4" ffmpeg -f concat -safe 0 -i mylist.txt -c copy "output-merged.mp4"
} }