Add FLAC analysis scripts for click detection
- detect_clicks.sh: Batch analysis of all cached FLAC files - analyze_flac.sh: Detailed analysis of a single FLAC file These tools help verify audio quality and detect encoding issues like clicks caused by buffer underruns.
This commit is contained in:
31
analyze_flac.sh
Executable file
31
analyze_flac.sh
Executable file
@@ -0,0 +1,31 @@
|
||||
#!/bin/bash
|
||||
# Affiche toutes les stats d'un fichier FLAC
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Usage: $0 <fichier.flac>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
FILE="$1"
|
||||
|
||||
if [ ! -f "$FILE" ]; then
|
||||
echo "Error: File not found: $FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "=== Analyzing: $(basename "$FILE") ==="
|
||||
echo ""
|
||||
echo "--- SoX Statistics ---"
|
||||
sox "$FILE" -n stat 2>&1
|
||||
|
||||
echo ""
|
||||
echo "--- File Info ---"
|
||||
file "$FILE"
|
||||
|
||||
echo ""
|
||||
echo "--- FLAC Metadata ---"
|
||||
metaflac --list "$FILE" 2>/dev/null || echo "metaflac not installed"
|
||||
|
||||
echo ""
|
||||
echo "--- Audio Integrity Check ---"
|
||||
flac -t "$FILE" 2>&1 || echo "flac not installed"
|
||||
Reference in New Issue
Block a user