From dc67462a459bed6e798fe835471b7f467e4ded8a Mon Sep 17 00:00:00 2001 From: liberodark Date: Sat, 30 May 2020 09:29:20 +0200 Subject: [PATCH] Update convert.sh --- conf/convert.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/convert.sh b/conf/convert.sh index 4a13905..3b5c128 100644 --- a/conf/convert.sh +++ b/conf/convert.sh @@ -30,8 +30,8 @@ while IFS= read -r -d '' file do ffmpeg -nostdin -i "$file" -vcodec h264 -acodec aac -strict -2 "${file%.*}.mp4" rm -f "$file" -done < <(find /home/yunohost.app/streama/ -name '*.mkv' -print0 -o -name '*.avi' -print0) -chown -R streama:users /home/yunohost.app/streama/ +done < <(find /home/yunohost.app/streama/upload/ -name '*.mkv' -print0 -o -name '*.avi' -print0) +chown -R streama:users /home/yunohost.app/streama/upload/ } avidemux_convert(){ @@ -41,8 +41,8 @@ while IFS= read -r -d '' file do avidemux3_cli --video-codec $VIDEOCODEC --audio-codec $AUDIOCODEC --force-alt-h264 --load "$file" --save "${file%.*}.mp4" --quit rm -f "$file" -done < <(find /home/yunohost.app/streama/ -name '*.mkv' -print0 -o -name '*.avi' -print0) -chown -R streama:users /home/yunohost.app/streama/ +done < <(find /home/yunohost.app/streama/upload/ -name '*.mkv' -print0 -o -name '*.avi' -print0) +chown -R streama:users /home/yunohost.app/streama/upload/ } parse_args ()