Last active
November 12, 2023 10:27
-
-
Save twinsant/1dbc495559cef0737a117a53247ac912 to your computer and use it in GitHub Desktop.
Sum videos length in current dir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# alias vlen='f(){ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$@"};f' | |
find . -type f|grep mp4 | xargs -L 1 ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1|awk '{s+=$1} END {print s}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment