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