Re: Starting in the middle of an mp4 file
Re: Starting in the middle of an mp4 file
- Subject: Re: Starting in the middle of an mp4 file
- From: William Stewart <email@hidden>
- Date: Tue, 2 Dec 2008 18:27:16 -0800
On Dec 2, 2008, at 5:59 PM, Neil Mix wrote:
Let's say you have an mp4 file containing AAC-HE audio, and you're
delivering it over the Internet to an iPhone, and you want to start
playing in the middle of the file. Is it possible to do this
without downloading the entire first half of the file?
I've tried parsing the non-audio beginning portion of the file and
then skipping to the middle of the file, but that doesn't seem to
work: if the discontinuity flag is passed to
AudioFileStreamParseBytes at the jump, the filestream fails to parse
any packets from the file. OTOH if the discontinuity flag isn't set
at the jump, packets are parsed but AudioQueue doesn't generate any
music from them.
yes, because you are stripping out the meta-data (packet boundaries,
etc) from the data they are describing - because you've stripped the
data, the meta-data no longer matches.
You'd have to do some careful surgery on the file... and it would
probably be easier to just create a new temporary file on the server
and have that contain just the bits you need from the original file
Bill
I know that ADTS is a better format for this use-case, but let's
assume that's not possible for arcane reasons. Is it somehow
possible to coax mp4 into doing this?
That was going to be my next comment :)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden