mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 07:23:07 +01:00
14 lines
278 B
Bash
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
|