From the following ffmpeg -i output, how would I get the length (00:35)--
ffmpeg -i
$ ffmpeg -i 1video.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from \'/Users/d
Duration: (\d\d):(\d\d):(\d\d(\.\d\d)?)
should work. Whatever your language's $1 is will be the hours, $2 will be the minutes, $3 will be the seconds, and $4 will be just the centiseconds if they are exist.
$1
$2
$3
$4