VideoHelp Forum


Try DVD-Fab Video Downloader and rip Netflix video! Or Try DVD-Fab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Member
    Join Date
    Jun 2012
    Location
    New Zealand
    Search Comp PM
    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.
    Quote Quote  
  2. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    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
    Quote Quote  
  3. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    You can use mpc-hc to find the sample rate in a flac file.
    I think,therefore i am a hamster.
    Quote Quote  
  4. Member
    Join Date
    Jun 2012
    Location
    New Zealand
    Search Comp PM
    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?
    Quote Quote  



Similar Threads