diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-07-29 21:13:17 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-07-29 21:13:17 +0200 |
commit | c33865def5aae20d809ad400a9c63a545962caf6 (patch) | |
tree | f4d6ad5e877edc5950adf705ee7dc1ec619f48f8 /modules | |
parent | modules/legacy/beets: Use correct escape sequence for `\` (diff) | |
download | nixos-config-c33865def5aae20d809ad400a9c63a545962caf6.zip |
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.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/by-name/lf/lf/ctpv/prev/audio/audio.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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))) |