4 ms·
What about ffprobe (requires ffmpeg)? For a FLAC file, I get: Metadata: Comment : Processed by SoX Duration: 00:00:26.20, start: 0.000000, bit
by johnisgood 6y ago
What 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.