1 2 3 4 5 6
#!/bin/sh # extract the duration of a video file using exiftool # 2023 (C) Pablo set -e exiftool -Duration "$1" | cut -d ':' -f2- | tr -d ' '