1
0
Fork 0

fix resolution

This commit is contained in:
VirtuBox 2020-09-24 17:16:55 +02:00
parent 9138e41b80
commit 197ee95341
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 2 additions and 2 deletions

View File

@ -788,8 +788,8 @@ _x265_encode() {
_identify_resolution() { _identify_resolution() {
for i in "$PWD"/*.mp4; do for i in "$PWD"/*.mp4; do
width=$(ffprobe -v error -print_format json -show_format -show_streams -show_chapters "$i" | jq .streams[0] | jq -r .width) height=$(ffprobe -v error -print_format json -show_format -show_streams -show_chapters "$i" | jq .streams[0] | jq -r .height)
mv "$i" "${i%.*}-$width.mp4" mv "$i" "${i%.*}-$height.mp4"
done done
} }