PDA

View Full Version : About MP4 muxing


Lupus_aka_Den
20th October 2004, 08:33
Are there any standards of muxing audio and video samples to a file?
Files that I saw give the following phisical location:
file1.mp4
Video - 27
Audio - 100
Video - 75
Audio - 100
...
file2.mp4
Video - 17
Audio - 26
Video - 15
Audio - 22
...
file3.3gp
Audio - 300
Video - 100
Audio - 300
Video - 100
Audio - 400
...

gotaserena
20th October 2004, 14:07
These must be Track IDs, no? Like the ones you'll see by running MP4Box -info?

If yes, no, there isn't any "standard location" for MP4 tracks. People here will surely give a better explanation, but AFAIK mp4 files have an InitalObjectDescriptor which tells the demuxer where to get the individual tracks, and what they consist of.

Drachir
20th October 2004, 14:30
I thought too it could be TrackIDs but twice the same ID in a MP4 file ?

Lupus_aka_Den
20th October 2004, 14:41
Originally posted by gotaserena
These must be Track IDs, no? Like the ones you'll see by running MP4Box -info?

If yes, no, there isn't any "standard location" for MP4 tracks. People here will surely give a better explanation, but AFAIK mp4 files have an InitalObjectDescriptor which tells the demuxer where to get the individual tracks, and what they consist of.
Two tracks for example, without ObjectStreamDescription and SceneDescription. Chunk size about 100 samples.
Well, I understand what samples phisical location depend only on programmer solution 8)

Lupus_aka_Den
20th October 2004, 14:42
Originally posted by Drachir
I thought too it could be TrackIDs but twice the same ID in a MP4 file ?
IDs for all tracks is unique

gotaserena
20th October 2004, 14:44
I'm not following you... What do you mean by "physical location" then?

Lupus_aka_Den
20th October 2004, 14:47
Originally posted by gotaserena
I'm not following you... What do you mean by "physical location" then?
Real offsets for each sample in muxing file. Offset sample in "mdat" atom + "mdat" offset

Drachir
20th October 2004, 16:06
I think your question is better placed here:

http://sourceforge.net/forum/?group_id=84101
or here:
http://sourceforge.net/forum/?group_id=18676

Here is a short discussion to MP4 conformance files:
http://sourceforge.net/forum/forum.php?thread_id=1144961&forum_id=287546

Lupus_aka_Den
20th October 2004, 16:21
Originally posted by Drachir
I think your question is better placed here:

http://sourceforge.net/forum/?group_id=84101
or here:
http://sourceforge.net/forum/?group_id=18676

Here is a short discussion to MP4 conformance files:
http://sourceforge.net/forum/forum.php?thread_id=1144961&forum_id=287546
Thanks, i'll try 8)