Questions tagged [m4a]

M4A stands for MPEG 4 Audio, it is a filename extension used to represent audio files.

M4A stands for MPEG 4 Audio which is an audio-only MPEG-4 file. Audio-only MPEG-4 files generally have a .m4a filename extension. This is especially true of non-protected content (which often uses the file extension .m4p). MPEG-4 files with both audio and video generally use the standard .mp4 extension.

More details about MP4 file format( container format of all .m4a files) is at http://en.wikipedia.org/wiki/MPEG-4_Part_14

235 questions
8
votes
3 answers

How can I export an mp3 file from an iOS device's iPod library?

In my iOS application I'm trying to export an mp3 file from the iPod library to the app's documents directory on the device. Currently I'm trying to use AVAssetExportSession but it's not working for mp3 files. It works well for m4a files. Is…
SundayMonday
  • 19,147
  • 29
  • 100
  • 154
8
votes
2 answers

Looking for open-source library for editing AAC metadata (M4A files)

I'm looking for an open-source library for editing AAC metadata in M4A files (as appearing in iTunes). Specifically, I need to be able to add an album art tag. It should be something similar to id3lib, which works with ID3 tags on MP3 files.
Tim Norman
  • 1,999
  • 1
  • 20
  • 26
7
votes
1 answer

cant get length of m4a audio file on webpage

I am trying to make a nodejs website that will return the length in seconds of any audio file a user chooses. So far I have it working with mp3, wav, and flac files. But it doesn't work for all .m4a or .aif files The code for my HTML page with…
Martin
  • 1,336
  • 4
  • 32
  • 69
7
votes
1 answer

Weird behavior of CrossWalk-based hybrid app when playing m4a web audio

We have problems with an audio reader hybrid application, using fairly large audio m4a files. In short, it takes far too long to start the playback (when using online audio resources). To illustrate the issue, we've created a smaller prototype with…
Alex
  • 79
  • 2
7
votes
0 answers

Swift - Convert MP4/M4A to MP3

I have NSData which contains M4A\AAC audio file and I want to convert it to MP3 stream in iOS Swift. I don't want to use the file system. I have tried a lot of near by examples but didn't succeed to solve this issue. How can I do it?
Noam Maoz
  • 259
  • 4
  • 15
7
votes
1 answer

iOS split stereo mp3 to mono aac

I'm converting an mp3 to m4a on iOS with this code: iOS swift convert mp3 to aac but I need to extract the left and right channel into seperate m4a files. I have this code working which is splitting my audio into nsdata: let leftdata:NSMutableData!…
Castles
  • 897
  • 1
  • 10
  • 29
7
votes
1 answer

How can I convert audio .mp3 to .m4a programmatically in android

I don't want to use ffmpeg. Currently I was able to mux m4a audio with mp4 video. I wish to add mp3 audio also which required mp3 to m4a conversion.I was able to convert wav to m4a but not mp3 to m4a with below code Here is my code. private void…
Nikhil
  • 650
  • 1
  • 11
  • 28
6
votes
2 answers

Packing RAW AAC into m4a container?

I have an Android app using FAAC to convert raw PCM into raw AAC, but now I don't know how it can be packed into m4a container. I've searched on the net and found a lot of info, but none of them solves my question. Most of them referring ffmpeg /…
JiangCat
  • 125
  • 8
6
votes
0 answers

Android: How to play Gapless audio loop in MediaPlayer?

I know this question asked multiple times in this platform but none of them are solving my issue. I was trying to play a sound file in a loop but when a loop is complete first time there is a noticeable gap. I have sound files in .M4A format. I was…
6
votes
0 answers

difference between audio data in .aac and .m4a files at the byte level

This is for trying to understand the aac file structure For simplicity we can assume m4a file with only aac audio (that is, no video) I am comparing an m4a file and an aac file made from the m4a file using the faac library A screenshot of the…
user13267
  • 6,871
  • 28
  • 80
  • 138
6
votes
0 answers

Failed to play m4a audio file in android using Mediaplayer

used mediaplayer code to play audio files, failed to play .m4a extension audio files Error: java.io.IOException: Prepare failed.: status=0x1 01-01 14:54:30.399 8170-8170/com.abc.prjnameW/System.err: at android.media.MediaPlayer.prepare(Native…
Erum
  • 790
  • 3
  • 14
  • 36
6
votes
2 answers

AVAssetExportSession Cannot create file Error -12115

For some reason I am always receiving this error: Error Domain=NSURLErrorDomain Code=-3000 "Cannot create file" UserInfo={NSLocalizedDescription=Cannot create file, NSUnderlyingError=0x1321dd730 {Error Domain=NSOSStatusErrorDomain Code=-12115…
andrewmclean
  • 427
  • 3
  • 15
6
votes
3 answers

AVAudioPlayer initWithContentsOfURL returns nil for AAC/M4A files

I use the following code to play an audio file. It plays fine for MP3 files, but when I try to play an AAC file, the [[AVAudioPlayer alloc] initWithContentsOfURL:] returns nil and I get the following error: Error Domain=NSOSStatusErrorDomain…
RawMean
  • 8,374
  • 6
  • 55
  • 82
6
votes
2 answers

ffmpeg - multiline text in metadata (comment tag)

I use ffmpeg to update metadata tags like this way: ffmpeg -i "in.m4a" -acodec copy -metadata artist="artist text" -metadata comment="comment text" "out.m4a" Well, "artist text" and "comment text" is usual plain text, but comment field allows to…
Yaroslav
  • 651
  • 2
  • 9
  • 17
6
votes
1 answer

Is there a way to get exactly a 1 second clip using ffmpeg with the came codec AAC to AAC

If I have an .mp4 file with a video stream and an audio stream. I f I execute this command: ffmpeg -i input.mp4 -ss 00:00:14.000 -t 00:00:01.000 -vn -c:a libfaac audio.m4a The result is Duration: 00:00:01.02, start: 0.021179. I want to make sure…
1
2
3
15 16