github.com/gkstretton/dark/services/goo@v0.0.0-20231114224855-2d1a2074d446/scripts/get-duration (about)

     1  #!/bin/bash
     2  # returns duration in seconds of video file to stdout
     3  
     4  ffprobe -i $1 -show_entries format=duration -v quiet -of csv="p=0"