esac; done
if [ -f "$video" -a -r "$video" ]; then
- arg="$(echo; ffprobe -show_entries stream=width,height,duration "$video" 2>&-)"
+ arg="$(echo; ffprobe -show_entries format=duration:stream=width,height "$video" 2>&-)"
resx="${arg#*width=}"; resx="${resx%%${BR}*}"
resy="${arg#*height=}"; resy="${resy%%${BR}*}"
length="${arg#*duration=}"; length="${length%%${BR}*}"