Unnamed
public shellscript v1 · immutableoutput=$(/usr/local/bin/ffmpeg -i $file 2>&1 | awk '/Stream/ && /fps/ && /kb\/s/ {for (i=1;i<=NF;i++) if ($i ~ /[0-9]+x[0-9]+/) print $i}'); if [ "$output"=1440x810 ]; then echo "it is 1440x810"else if [ "$output"=1280x720 ]; then echo "it is 1280x720"else touch $file"-convert_failed.txt";fi