From e637ade007771e9d4460df97761960f42bf5bd77 Mon Sep 17 00:00:00 2001 From: liberodark Date: Fri, 29 May 2020 16:57:17 +0200 Subject: [PATCH] Update convert.sh --- conf/convert.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/convert.sh b/conf/convert.sh index 08abae7..1d4a64d 100644 --- a/conf/convert.sh +++ b/conf/convert.sh @@ -1,6 +1,6 @@ #! /bin/bash -for file in $(find /home/yunohost.app/streama/ -iname "*.mkv" -o -iname "*.avi") +while IFS= read -r -d '' file do - ffmpeg -i "$file" -vcodec h264 -acodec aac -strict -2 "${file%.*}.mp4" + ffmpeg -nostdin -i "$file" -vcodec h264 -acodec aac -strict -2 "${file%.*}.mp4" rm -f "$file" -done +done < <(find /home/yunohost.app/streama/ -name '*.mkv' '*.avi' -print0)