I need to get the sample rate and number of samples in a flac file.
I think the number of samples is stored in bytes 22-25 but I cannot locate the sample rate, usually 44100 or AC 44.
Anyone know ? I expect it's in METADATA_BLOCK_STREAMINFO but just where or what format I can't figure.
+ Reply to Thread
Results 1 to 4 of 4
-
-
https://xiph.org/flac/format.html#architecture
It's in STREAMINFO, but as the link says, it is also in EACH frame/block header, using lookup tables.
Scott -
Cornucopia
I've been reading that link for a few hours but not getting quite what I need from it!
The sample rate doesn't change afaik. If I can locate/read it from STREAMINFO I can run some tests and see how reliable my results are.
Johns I want to use VBA from inside Access, I'm already running an external program and getting what's needed but every time a DOS window opens. I'm trying to avoid that. If I can read the bytes in the file myself I won't need to shell to anything. Or, do you know if mpc-hc would let me somehow?
Similar Threads
-
ISO file to Flac or WAV
By efiste2 in forum AudioReplies: 1Last Post: 16th Nov 2019, 23:22 -
Converting video file with FLAC sound
By GiesbertsN in forum Video ConversionReplies: 7Last Post: 15th Mar 2018, 12:50 -
Question about 384khz sample rate devices
By Videogamer555 in forum AudioReplies: 3Last Post: 10th May 2017, 18:10 -
Is FLAC file actually DTS-HD MA?
By PhilJW in forum AudioReplies: 7Last Post: 9th Dec 2016, 22:59 -
MKVToolNix merging with different audio sample rate
By ge0rg in forum Video ConversionReplies: 9Last Post: 9th Sep 2016, 17:31