From 197ee9534152a5bf210c701a04abc38305657966 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Thu, 24 Sep 2020 17:16:55 +0200 Subject: [PATCH] fix resolution --- mybashrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mybashrc b/mybashrc index c09d501..cdb963a 100644 --- a/mybashrc +++ b/mybashrc @@ -788,8 +788,8 @@ _x265_encode() { _identify_resolution() { 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) - mv "$i" "${i%.*}-$width.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" done }