calculate length of some audio or video files

this script uses mediainfo program