Determine the length of mp4 file
Determine the length of mp4 file
1
2
3
4
for i in file1.mp4 file2.mp4 file3.mp4 ; do
t=$(ffmpeg -i $i 2>&1 | grep Duration | awk '{print $2}' | tr -d ,);
echo " $t: $i";
done
This post is licensed under CC BY 4.0 by the author.
