X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=home%2Fbin%2Fvideo-list;fp=home%2Fbin%2Fvideo-list;h=89bd76e032c715c1c8defdeb74226f4d08f2be0c;hb=64fc685a6c5216bc4f5fb06d2dd743dae66683ab;hp=0000000000000000000000000000000000000000;hpb=e415783fdf0ad1d6d83a98914df312b933de00ea;p=khome.git diff --git a/home/bin/video-list b/home/bin/video-list new file mode 100755 index 0000000..89bd76e --- /dev/null +++ b/home/bin/video-list @@ -0,0 +1,17 @@ +#! /bin/sh + +video-find $@ \ +| xargs \ + -0 \ + -P "$(nproc)" \ + -I {} \ + sh -c ' + duration=$(ffprobe \ + -i "{}" \ + -show_entries \ + format=duration \ + -v quiet \ + -of csv="p=0" \ + -sexagesimal) + printf "%s\t%s\n" "$duration" "{}" + '