It depends on how confident you are.
Just check the extension: You can easily check only the extension of the file provided in Bash with
if [ ${file: -4} == ".mp3" ]
Which essentially takes the last four characters of the string fileand claims to be equal.mp3
:
, . Mime- file Bash. , , Mime-Type.
, , . , , . , Bash Script.
:
FFMpeg FFProbe . , FFProbe, . , script , .