From e26d166911fccca1a78f129f259916710e8613ab Mon Sep 17 00:00:00 2001 From: liberodark Date: Tue, 27 Nov 2018 14:46:43 +0100 Subject: [PATCH] add auto convert --- conf/convert.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 conf/convert.sh diff --git a/conf/convert.sh b/conf/convert.sh new file mode 100644 index 0000000..4beed3d --- /dev/null +++ b/conf/convert.sh @@ -0,0 +1,12 @@ +#! /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")" +do + ffmpeg -i "$file" -vcodec h264 -acodec aac -strict -2 "${file%.*}.mp4" + rm "$file" +done