Skip to content

Instantly share code, notes, and snippets.

@simlated
Last active August 8, 2022 15:31
Show Gist options
  • Save simlated/ea8cf7230f551b0e88e10d4656370753 to your computer and use it in GitHub Desktop.
Save simlated/ea8cf7230f551b0e88e10d4656370753 to your computer and use it in GitHub Desktop.
Print csv with name of mp4 files recursively found in folder and their duration calculated with ffprobe (you need it installed)
find . -type f -name "*.mp4" -exec printf "%s," {} \; -exec ffprobe -v quiet -of csv=p=0 -show_entries format=duration {} \;
@simlated
Copy link
Author

simlated commented Aug 8, 2022

Thanks to Mr. @Ostico

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment