From c33865def5aae20d809ad400a9c63a545962caf6 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 29 Jul 2025 21:13:17 +0200 Subject: modules/lf/ctpv/prev/audio: Use `ffprobe` instead of `ffmpeg` `ffmpeg` fails as it is not run with an output file, and we don't really want to transform the input in any way. We just want the nice metadata format. `ffprobe` provides just that and is thus better suited for our usecase. --- modules/by-name/lf/lf/ctpv/prev/audio/audio.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/by-name') diff --git a/modules/by-name/lf/lf/ctpv/prev/audio/audio.sh b/modules/by-name/lf/lf/ctpv/prev/audio/audio.sh index 324a2170..22894ca2 100644 --- a/modules/by-name/lf/lf/ctpv/prev/audio/audio.sh +++ b/modules/by-name/lf/lf/ctpv/prev/audio/audio.sh @@ -19,7 +19,7 @@ audio() { ffmpegthumbnailer -i "$f" -s 0 -q 5 -t 10 -o "$cache_f" 2>/dev/null } -x="$(ffmpeg -hide_banner -i "$f" 2>&1)" +x="$(ffprobe -hide_banner "$f" 2>&1)" printf '%s\n' "$x" y=$((y + $(printf '%s\n' "$x" | wc -l))) -- cgit 1.4.1