Hi, does anyone knows if there's a library/class/function to handle .m4a (IPhone sound files)? also, if it allows conversion to other formats, such as .wav?
Thanks in advance,
Leonardo M. Ramé
http://leonardorame.blogspot.com

Mailing lists / fpc-pascal / 2011-03
4 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi, does anyone knows if there's a library/class/function to handle .m4a (IPhone sound files)? also, if it allows conversion to other formats, such as .wav?
Thanks in advance,
Leonardo M. Ramé
http://leonardorame.blogspot.com
Leonardo M. Ramé wroteHi, does anyone knows if there's a library/class/function to handle .m4a (IPhone sound files)?
m4a is a plain mp4 container with an aac-encoded soundtrack (and no video). There is nothing iPhone-specific about it. Any library that can handle mp4 containers and the aac audio codec will do (such as ffmpeg).
Jonas
Hi, does anyone knows if there's a library/class/function to handle .m4a (IPhone sound…
Leonardo M. Ramé wroteHi, does anyone knows if there's a library/class/function to handle .m4a (IPhone sound files)? also, if it allows conversion to other formats, such as .wav?
m4a is basically aac, so I'd look down that route. However, m4a files can be protected by DRM, and those files will be much harder, maybe even impossible, to convert. Though, I believe the extension becomes m4p when protected, and also m4b when an audio book. The format is much richer than MP3 or WAV as it can contain meta data such as notes, images and chapter markers. You'll lose these when converting.
M
Thanks, I tested a sample file sent by my customer, and it was easy to convert with mplayer using this command:
mplayer -ao pcm test.m4a -ao pcm:file="output.wav"
As mplayer uses ffmpeg library I'm sure I can use it from fpc.
Leonardo M. Ramé
http://leonardorame.blogspot.com