PDA

View Full Version : Sample-to-Chunk Box


tokeiro
30th January 2006, 14:08
Hi all,
Can i build an mp4 file with only one entrie on sample-to-chunk box??Whats the difference between one entrie and more than one entrie on sample-to-chunk box?
Best regards

Haali
30th January 2006, 16:14
It is used for interleaving different tracks.

Lupus_aka_Den
1st February 2006, 05:46
Hi all,
Can i build an mp4 file with only one entrie on sample-to-chunk box??Whats the difference between one entrie and more than one entrie on sample-to-chunk box?
Best regards
If sample-to-chunk contain only one entry it mean what all chunks for this track have a simular samples count.

For example for video track it can be:
stsc
entryCount = 1
firstChunk = 1
samplesPerChunk = 10 (only one entry)

For audio:
stsc
entryCount = 318
firstChunk = 1
samplesPerChunk = 20

firstChunk = 4 (previous three chunks have a samples count equal 20)
samplesPerChunk = 19
etc.

tokeiro
1st February 2006, 23:47
Thanks all,
But my idea its a little different.My file has for example 190 video samples and my idea its create one entrie on stsc box with:
number of entries=1
first chunk=1
samplesPerChunk=190
It is possible??
Regards

Lupus_aka_Den
2nd February 2006, 06:32
Thanks all,
But my idea its a little different.My file has for example 190 video samples and my idea its create one entrie on stsc box with:
number of entries=1
first chunk=1
samplesPerChunk=190
It is possible??
Regards
Hi. Yes it's possible if your file contain only video track. If you have audio too you must interlived them with video. It's will be more correct