Get the duration of an audio or video file with ffprobe
0
11
ffprobe -show_streams -select_streams v -v quiet video.mp4 | grep "duration=" | cut -d '=' -f 2ffprobe -show_streams -select_streams v -v quiet video.mp4 | grep "duration=" | cut -d '=' -f 2