fix resolution
This commit is contained in:
parent
9138e41b80
commit
197ee95341
4
mybashrc
4
mybashrc
|
@ -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
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue