Browse Source

fix resolution

master
VirtuBox 3 months ago
parent
commit
197ee95341
Signed by: virtubox GPG Key ID: 22EB296C97BAD476
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mybashrc

+ 2
- 2
mybashrc View File

@ -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
}


Loading…
Cancel
Save