|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 |
Junior Member
Join Date: Mar 2002
Location: ZhuHai,China
Posts: 7
|
how to calculate the VBR bitrate mp3 file playback time ?
how to calculate the VBR bitrate mp3 file playback time ?
![]() |
![]() |
![]() |
![]() |
#2 |
Frenchoderator
Join Date: May 2000
Location: Lavabo, fond du couloir, 3è porte à droite
Posts: 6,311
|
VBR changes the bitrate and thus the size of a file, not the song length.
|
![]() |
![]() |
![]() |
#3 |
Backpacking
Moderator |
Assuming your file contains MPEG audio, there are three ways to calculate the
total playing time: 1. If the file has a constant bitrate, you can divide the file size by the bitrate. 2. If the file has a variable bitrate and a Xing VBR header, you can multiply the playing time of one frame (calculated from the layer and sample rate) by the number of frames (obtained from the VBR header). 3. In any case, you can sum the playing time of every frame by scanning the frame headers of the entire file. At the very least you will have to decode the bitrate, layer, and/or sample rate from at least one frame header. Like my photography? Buy some here.... |
![]() |
![]() |
![]() |
#4 |
Junior Member
Join Date: Mar 2002
Location: ZhuHai,China
Posts: 7
|
where can i find the Xing TAG format?
where can i find the Xing TAG format?
![]() |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|