Starting with version 1.0.7 ffprobe you can even get output in formatted JSON:
ffprobe -v quiet -print_format json -show_format Ramp \ - \ Apathy.mp3
Which produces the output:
{ "format": { "filename": "Ramp - Apathy.mp3", "nb_streams": 2, "format_name": "mp3", "format_long_name": "MP2/3 (MPEG audio layer 2/3)", "start_time": "0.000000", "duration": "203.638856", "size": "4072777", "bit_rate": "159999", "tags": { "title": "Apathy", "artist": "Ramp", "album": "Evolution Devolution Revolution", "date": "1999", "genre": "Metal" } } }
I think you can get the probe with cat, do you have any requirements for the contents of the file? If not just use ffprobe without cat.
source share