Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
cut and join mp3-files with known bitrate
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Oliver Wong, post: 1603189"] See [URL]http://mpgedit.org/mpgedit/mpeg_format/mpeghdr.htm[/URL] While a "frame size" is constant, the frame size is the number of samples within a frame, not its size in bytes. The encoding of the samples varies from frame to frame to ensure a constant bit rate. 128kbps 44.1Khz layer II uses mostly 418 byte frames, but occasionally will use a 417 byte frame. You can cut a mp3 file at any frame boundary, but I'm not sure you can, for an arbitrary mp3 file, determine what byte offset to jump to to arrive at exactly the "1 minute" point. You may have to decode, at the very least, calculate how many samples are in 1 minute, and then jump through the file looking for frame-synchronization markers. - Oliver [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
cut and join mp3-files with known bitrate
Top