mp3read and mp3write
by Dan Ellis
04 Feb 2007
(Updated 21 Apr 2010)
Improved reading and writing of mp3 files
|
Watch this File
|
| File Information |
| Description |
These versions of mp3read and mp3write are direct drop-in replacements for wavread and wavwrite to access MPEG audio mp3 files. Features include:
- aims to duplicate complete syntax of wavread and wavwrite
- also supports on-the-fly downsampling and channel merging of mpg123
- optimized for very long mp3 files - only decodes the needed portion
- uses popen for encoding to avoid a large temporary file (when available - see my popenw mex)
- attempts to preserve time alignment of files through read/write loop by removing "warm up" samples
- package includes helper binaries for Linux, Windows, Mac-PPC, Mac-Intel, and Mac-Intel-64bit |
| Acknowledgements |
Mp3 Write And Mp3 Read
inspired this file.
This file inspired
M4awrite Write M4a Format Audio File, Mi Rtoolbox, Mp3 Player (Gui), and Audioread Unified Audio File Input Function.
|
| MATLAB release |
MATLAB 7.10 (R2010a)
|
| Other requirements |
Relies on external binaries mpg123, mp3info, and lame. Package includes binaries that should work, but YMMV. Documentation includes links to the sources of these programs. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 27 Jul 2007 |
- fix to writing stereo files on Windows
- mp3read(...,'size') now more accurate (but not perfect owing to limitations in mp3info)
- various cleanups to reduce mlint errors |
| 30 Jul 2007 |
- updated interaction of sample limits and predelay compensation in mp3read to make it more consistent
- increased buffer to provide more tolerance of bad blocks in stream |
| 15 Mar 2009 |
This version enables the ability of mpg123 to read mp3 files from URLs. |
| 09 Apr 2010 |
Updated to use and include more recent versions of mpg123 and lame. I've done my best to fix inconsistencies with the 'size' return, but for some MP3s this relies on header info I can't probe. |
| 21 Apr 2010 |
- updated binaries for maci64 (static link) and windows (http works)
- expands '~' in file names
- returns correct SR when reading over http: |
|
Contact us