Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: PCM audio in MP4 (Read 8397 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

PCM audio in MP4

Hi,

I'm experimenting with MP4 files. I can already include video into my MP4 file, but now I also want to include audio. I know that MP4 supports AAC audio.
My question is: is it also possible to store raw audio, say PCM audio 16 bit into the MP4 file?
The goal is to create a MP4 file that contains PCM audio and that can be played with a normal player.

Thanks

PCM audio in MP4

Reply #1
Sure, from a technical point of view, MP4 can hold PCM audio, no doubt. The MP4 Pro's here may answer if the MP4 spec creators have included this in the specs or not, i honestly dont know ....

PCM audio in MP4

Reply #2
threoretically its possible to place any stream in mp4, but practically the specs afaik dont define how to place pcm (or lossless audio) in mp4

specified are for example aac, mp3, mp2
I know, that I know nothing (Socrates)

PCM audio in MP4

Reply #3
Thanks for the responses!

I know that you can indeed include any stream you want in an MP4 file (in theory).
The problem is indeed that MP4 doesn't have and ObjectType and streamType to deal with PCM audio.

Greetz,

nickske

PCM audio in MP4

Reply #4
MP4 files will have a great future for content distribution, and therefore its creators will aim at the highest possible compatibility and playability. I dont understand why PCM was not included as an option, because basically any device on the market should be able to support it with very little extra programming effort, but i fully understand that MP4 will be restricted to only a number of specific audio and video codecs, bearing in mind what was said above.

I dont know what your plans are and what you need these files for, but to combine MPEG4 video with PCM audio even good old AVI should do fine ?

PCM audio in MP4

Reply #5
Hi Guys,
I have to correct some assumptions here: There IS an AudioObjectType and StreamType for PCM.
streamType (audio) and aot=0! The problem is, that the audio specific config for aot 0 is not completely defined. What you can define is aot, nofChannels, samplingFreq.
The problem is, that there is no way to define the type of pcm audio you are using. e.g.:
16bit / 24bit / float, etc. but i am still investigating and will post if I found someth.

Greetings,

iss

 

PCM audio in MP4

Reply #6
hi, me again,
raw pcm must be in 16 bit signed integer format in the range from -32768 to 32767

Greetings,

iss