From 09877cdedd9acce0cd64d61253cb1d245310b159 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 2 Jan 2023 00:41:57 +0100 Subject: [PATCH] time quality ratio is correct --- tools/make_video_gifanim_ipfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/make_video_gifanim_ipfs.sh b/tools/make_video_gifanim_ipfs.sh index 36e764db..358d3e5f 100755 --- a/tools/make_video_gifanim_ipfs.sh +++ b/tools/make_video_gifanim_ipfs.sh @@ -15,7 +15,7 @@ MIME=$(file --mime-type -b "${path}${file}") ############# CONVERT NOT MP4 [[ ! $MIME == "video/mp4" ]] \ && echo "MP4 CONVERT... WAIT" \ - && ffmpeg -loglevel error -i "${path}${file}" -vf scale=-1:720 -preset slow -crf 18 -c:v libx264 -c:a aac "${path}4${file}" \ + && ffmpeg -loglevel error -i "${path}${file}" -c:v libx264 -c:a aac "${path}4${file}" \ && [[ -s "${path}4${file}" ]] && rm "${path}${file}" && mv "${path}4${file}" "${path}${file}.mp4" && file="${file}.mp4" && extension="mp4" && MIME=$(file --mime-type -b "${path}${file}") FILE_RES=$(ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "${path}${file}" | cut -d "x" -f 2)