From df577a485cff270ae849357e8f1385fb42ac22be Mon Sep 17 00:00:00 2001 From: liberodark Date: Fri, 29 May 2020 16:07:43 +0200 Subject: [PATCH] Update convert.sh --- conf/convert.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/conf/convert.sh b/conf/convert.sh index 4beed3d..a8fdf93 100644 --- a/conf/convert.sh +++ b/conf/convert.sh @@ -1,11 +1,5 @@ #! /bin/bash -for file in "$( find ./ -iname "*.mkv")" -do - ffmpeg -i "$file" -vcodec h264 -acodec aac -strict -2 "${file%.*}.mp4" - rm "$file" -done - -for file in "$( find ./ -iname "*.avi")" +for file in $(find ./ -iname "*.mkv" -o -iname "*.avi") do ffmpeg -i "$file" -vcodec h264 -acodec aac -strict -2 "${file%.*}.mp4" rm "$file"