Created
June 25, 2017 05:41
-
-
Save spvkgn/76af48a6c3064876956c2705a03ea564 to your computer and use it in GitHub Desktop.
Show bitrate of audio files in current dir with mediainfo
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/sh | |
FILETYPES="*.mp3 *.m4a *.mpc *.ogg *.flac *.ape *.wav" | |
MEDIAINFO_PARAMS=--inform="Audio;%BitRate/String% %BitRate_Mode% %Format%\n" | |
if [ ! -z "$1" ] | |
then mediainfo "$MEDIAINFO_PARAMS" "$@" | sed '${/^$/d}' | |
else mediainfo "$MEDIAINFO_PARAMS" $FILETYPES | sed '${/^$/d}' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment