Home Forums Sparkfun MP3 Shield Library Support Forum TotalLenght of a Mp3 file ? Reply To: TotalLenght of a Mp3 file ?


That is tough, to do in the perfect sense.

The VS1053 can do so many different formats and each has different header formats. I have avoided getting specific format issues.

Recently we addressed BitRate and there is a way to read the average Bit Rate. (Noting Constant versus Variable, hence average.) BR read directly from VSdsp or from the File. Noting that it may actually be Variable Bit Rate. And that the VSdsp is actually slightly skewed from what the file states in the case of CBR.

Note the datasheet address’s JumpPoints inthe Extra Parameters. Which are sometimes available. This sounds similar to the cue points. After reading about this, it became obvious the skipto() function is not perfectly clean. Hence several formats have the jumpPoints. But the SkipTo works nice and mutes 50ms assuming the corrupted initial packet is passed.