ffmpeg ffprobe - get duration in seconds of audio, video file
$ ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 video.mp4 $ ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 audio.m4a