i need to find a way to either save as a variable or display the audio format/codec used by a file
The reason is so i can modify my Mplayer audio output based on whether its
ac3 or mp3/etc
AC3 works best on pass through
but mp3 doesnt work with the above.
output=$("-ao alsa -ac hwac3")
"Disover what audio codec is- choose output" ; mplayer -fs $output /media/Movie