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
You can use the shell
$ ff=$(ffmpeg -i video.mp4 2>&1) $ d="${ff#*Duration: }" $ echo "${d%%,*}"