res=$(ffprobe -show_entries stream=width "$attpath" 2>&-)
res="${res#*width=}" res="${res%%${BR}*}"
if [ "$res" -gt 1280 ]; then
res=$(ffprobe -show_entries stream=width "$attpath" 2>&-)
res="${res#*width=}" res="${res%%${BR}*}"
if [ "$res" -gt 1280 ]; then