2021-09-20 19:34:00 +00:00
|
|
|
#!/bin/sh
|
2022-01-31 10:16:04 +00:00
|
|
|
# View song metadata using ffprobe
|
|
|
|
# Accepts filenames from args or stdin (one file per line)
|
|
|
|
if test "$#" -eq 0
|
|
|
|
then cat
|
|
|
|
else printf '%s\n' "$@"
|
|
|
|
fi | while read f; do
|
2021-09-20 19:34:00 +00:00
|
|
|
highlight "$f"
|
2022-01-31 10:16:04 +00:00
|
|
|
find "$f" -type f -exec ffprobe -hide_banner {} 2>&1 \; #| grep -A90 'Metadata:'
|
2021-09-20 19:34:00 +00:00
|
|
|
done | less
|