mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2025-06-20 18:08:02 +02: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
|
ffmpegthumbnailer -i "$f" -s 0 -q 50% -t 10 -o "$cache_f" 2>/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
x="$(ffmpeg -hide_banner -i "$f" 2>&1)"
|
if exists ffmpeg; then
|
||||||
|
x="$(ffmpeg -hide_banner -i "$f" 2>&1)"
|
||||||
printf '%s\n' "$x"
|
printf '%s\n' "$x"
|
||||||
y=$((y + $(printf '%s\n' "$x" | wc -l)))
|
y=$((y + $(printf '%s\n' "$x" | wc -l)))
|
||||||
|
fi
|
||||||
|
|
||||||
convert_and_show_image audio
|
convert_and_show_image audio
|
||||||
|
Loading…
x
Reference in New Issue
Block a user