1
0
Bifurcation 0

update identify resolution

Cette révision appartient à :
VirtuBox 2020-10-08 18:23:23 +02:00
Parent 380b9f8ebf
révision 3e8cff8569
Signé par: virtubox
ID de la clé GPG: 22EB296C97BAD476
1 fichiers modifiés avec 4 ajouts et 2 suppressions

Voir le fichier

@ -812,8 +812,10 @@ _strip_audio() {
_identify_resolution() {
for i in "$PWD"/*.mp4; do
height=$(ffprobe -v error -print_format json -show_format -show_streams -show_chapters "$i" | jq .streams[0] | jq -r .height)
mv "$i" "${i%.*}-$height.mp4"
if ! echo "$i" | grep -qE "240|480|720|1080|1440|2160"; then
height=$(ffprobe -v error -print_format json -show_format -show_streams -show_chapters "$i" | jq .streams[0] | jq -r .height)
mv "$i" "${i%.*}-$height.mp4"
fi
done
}