compare media example (exiftool, ffprobe)
[barcat.git] / barcat
diff --git a/barcat b/barcat
index d8deee4b6834d3893ce71e706feba5e2f522d449..37445908b20682e1d56c06fc962a989c750c78bf 100755 (executable)
--- a/barcat
+++ b/barcat
@@ -609,6 +609,16 @@ Same from formatted results, selecting the first numeric value:
 
     tree -s --noreport | barcat -H -f+
 
+Compare media metadata, like image size or play time:
+
+    exiftool -T -p '$megapixels ($imagesize) $filename' * | barcat
+
+    exiftool -T -p '$duration# $avgbitrate# $filename' * | barcat -H
+
+    find -type f -print0 | xargs -0 -L1 \
+    ffprobe -show_format -of json -v error |
+    jq -r '[.format|.duration,.bit_rate,.filename]|join(" ")' | barcat -H
+
 Memory usage of user processes with long names truncated:
 
     ps xo rss,pid,cmd | barcat -l40