Getting the name and duration of the videos in a folder

mplayer -vo dummy -ao dummy -identify *.mp4 2>/dev/null|grep -E "ID_LENGTH|ID_FILENAME"\
  |sed 's/.*=//g'|awk '!(NR%2){printf "%s (%s)\n",p,$0}{p=$0}'
!(NR%2)
when even line number (TRUE: negation of if the rest of NR/2 is 0 )
printf
print in the specified ...
more ...