time quality ratio is correct
This commit is contained in:
parent
ee6d067e51
commit
09877cdedd
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue