4 ms·
Didn't work for me. I just get "Audio file with ID3 version 2.4.0, contains: ". I think that `file` will only pick it up if the bitrate is actually present in t
by krackers 6y ago
Didn't work for me. I just get "Audio file with ID3 version 2.4.0, contains: ". I think that `file` will only pick it up if the bitrate is actually present in the ID3 info?
- johnisgood 6y agoWhat about ffprobe (requires ffmpeg)? For a FLAC file, I get: Metadata: Comment : Processed by SoX Duration: 00:00:26.20, start: 0.000000, bitrate: 527 kb/s Stream #0:0: Audio: flac, 48000 Hz, stereo, s16 You could extract 527 kb/s easily from this, too, and it should not be based on metadata. I edited my previous comment.
- minimaul 6y agoffprobe even handily has a -print_format json option, for machine readable output :)
- johnisgood 6y agoOh right! Completely forgot about that. ffprobe -print_format json -show_format -show_streams foo.flac This should be easy to parse.