ctpv/sh/prev/audio.sh
2022-11-27 02:55:09 +01:00

14 lines
278 B
Bash

# audio: ffmpegthumbnailer ffmpeg
audio() {
ffmpegthumbnailer -i "$f" -s 0 -q 50% -t 10 -o "$cache_f" 2>/dev/null
}
if exists ffmpeg; then
x="$(ffmpeg -hide_banner -i "$f" 2>&1)"
printf '%s\n' "$x"
y=$((y + $(printf '%s\n' "$x" | wc -l)))
fi
convert_and_show_image audio