HydrogenAudio

Lossy Audio Compression => AAC => AAC - Tech => Topic started by: gimgim on 2011-08-22 18:47:32

Title: I want to generate AAC in MP4 on-the-fly; can't, due to MOOV atom?
Post by: gimgim on 2011-08-22 18:47:32
In order to stream some PCM content, I would like to generate on-the-fly (without seek access to
the output file, one frame at the time) an aac payload in a mp4 container. I know I can do that with the
aac payload, but my problem is the mp4 container. Ffmpeg won't allow me to use stdin/stdout to
generate the mp4.

My understanding is that, the moov atom is the problem since it won't be available unless I've encoded
the whole file.

1) Is this an intrinsic limitation of the mp4 container?
2) Is there any way to "fake" the info in the moov atom?

Thanks!
Title: I want to generate AAC in MP4 on-the-fly; can't, due to MOOV atom?
Post by: gimgim on 2011-08-22 19:00:54
Sorry about the confusing title, I can't edit it.
Title: I want to generate AAC in MP4 on-the-fly; can't, due to MOOV atom?
Post by: db1989 on 2011-08-23 09:03:08
Quote
Sorry about the confusing title, I can't edit it.
You can always request this type of amendment via the Report button. I’ve changed the title according to my understanding of your questions; contact me by PM if you have an alternative one you’d prefer.
Title: I want to generate AAC in MP4 on-the-fly; can't, due to MOOV atom?
Post by: benski on 2011-08-23 14:39:33
MP4 is not meant to be an "on-the-wire" streaming format.  There are other specs to stream AAC content, including ADTS and RTP.