You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the above basically dumps all the samples into a single chunk. the resulting file seems to be fine, I tested with FFmpeg, MPC-HC, and Firefox. maybe this is off topic, but I was just wondering if using a single chunk has some drawback. I checked the standard, and this is literally all it says:
Samples within the media data are grouped into chunks. Chunks can be of different sizes, and the samples within a chunk can have different sizes. This table can be used to find the chunk that contains a sample, its position, and the associated sample description.
The table is compactly coded. Each entry gives the index of the first chunk of a run of chunks with the same characteristics. By subtracting one entry here from the previous one, it is possible to compute how many chunks are in this run. This can be converted to a sample count by multiplying by the appropriate samples-per-chunk.
samples_per_chunk is an integer that gives the number of samples in each of these chunks
The text was updated successfully, but these errors were encountered:
Yeah, if you have a file with a single media, you should be able to make a big chunk instead of having a lot of consecutive small chunks. As you have done, you need to adjust the offset of that single chunk. All the other values like sample sizes, and durations are not influenced.
The only reason to have multiple chunks is for interleaving audio and video so that you can have a progressively playable file where you can start playing after you have received, e.g. 1s of audio and video.
If you only have video, the file is progressively playable anyway provided that the moov box is at the start.
closing this, as it seems with a fragmented file, you can just leave the file fragmented, and have one big fragment, which should involve less code than converting a file to progressive
some code like this seems to work fine:
where the above basically dumps all the samples into a single chunk. the resulting file seems to be fine, I tested with FFmpeg, MPC-HC, and Firefox. maybe this is off topic, but I was just wondering if using a single chunk has some drawback. I checked the standard, and this is literally all it says:
The text was updated successfully, but these errors were encountered: