update identify resolution
This commit is contained in:
parent
380b9f8ebf
commit
3e8cff8569
6
mybashrc
6
mybashrc
|
@ -812,8 +812,10 @@ _strip_audio() {
|
||||||
_identify_resolution() {
|
_identify_resolution() {
|
||||||
|
|
||||||
for i in "$PWD"/*.mp4; do
|
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)
|
if ! echo "$i" | grep -qE "240|480|720|1080|1440|2160"; then
|
||||||
mv "$i" "${i%.*}-$height.mp4"
|
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
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue