time quality ratio is correct

This commit is contained in:
fred 2023-01-02 00:41:57 +01:00
parent ee6d067e51
commit 09877cdedd
1 changed files with 1 additions and 1 deletions

View File

@ -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)