Commit | Line | Data |
---|---|---|
64fc685a SK |
1 | #! /bin/sh |
2 | ||
3 | video-find $@ \ | |
4 | | xargs \ | |
5 | -0 \ | |
6 | -P "$(nproc)" \ | |
7 | -I {} \ | |
8 | sh -c ' | |
9 | duration=$(ffprobe \ | |
10 | -i "{}" \ | |
11 | -show_entries \ | |
12 | format=duration \ | |
13 | -v quiet \ | |
14 | -of csv="p=0" \ | |
15 | -sexagesimal) | |
16 | printf "%s\t%s\n" "$duration" "{}" | |
17 | ' |