Arnolin wrote:
I have read the docs at the website which you listed, but seems that the 26ms for each frame is for MPEG-1 file, not MP3. So are they the same?
hi, I have read the some docs for mp3 and found out that each mp3 frame corresponds to 26ms of audio regardless of bit rate or sample rate(See here: http://oreilly.com/catalog/mp3/chapter/ch02.html the Frames per Second section at the very end of the page). So what you can do is skip the frames till you reach the start time and save the frames from that point till the end time. That is lets say your start time is 20 seconds 150 milliseconds. Convert it to milliseconds: 20150 ms. Now you need to skip: 20150 / 26 frames = 775 frames. So after skipping 775 frames, you reach the start time. Apply the same logic till you reach the end-time, but this time instead of skipping the frames, save them. Hope this helps.hi, Arnolin,
I have read the docs at the website which you listed, but seems that the 26ms for each frame is for MPEG-1 file, not MP3. So are they the same?