mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-02-17 19:10:46 +01:00
Make ffmpeg for optional for audio preview
This commit is contained in:
parent
9417ecb426
commit
dc41738b32
@ -4,9 +4,10 @@ audio() {
|
||||
ffmpegthumbnailer -i "$f" -s 0 -q 50% -t 10 -o "$cache_f" 2>/dev/null
|
||||
}
|
||||
|
||||
x="$(ffmpeg -hide_banner -i "$f" 2>&1)"
|
||||
|
||||
printf '%s\n' "$x"
|
||||
y=$((y + $(printf '%s\n' "$x" | wc -l)))
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user