Created
          July 28, 2025 07:28 
        
      - 
      
- 
        Save hendriks73/b257d2b05b9ae52d80116659e4341e0a to your computer and use it in GitHub Desktop. 
    Total Duration of Audio Files
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| find . \( -iname \*.wav -o -iname \*.mp3 -o -iname \*.flac \) | xargs -I {} ffprobe -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "{}" 2>/dev/null | awk 'BEGIN { s = 0 }; { s = s + $1 }; END { print s / 60 }' | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment