[FFmpeg-devel] [PATCH] max_chunk_size from format context in build_chunks

Sander Cox sander at resolume.com
Wed Aug 18 09:40:27 EEST 2021


Maximum size of a MOV chunk should be taken from the configurable
max_chunk_size option in AVFormatContext. If it is not defined revert to
the previously set limit of 1mb.

This patch was made in order to control the size of chunks in a MOV format
writer. I noticed that there was already an option on the AVFormatContext
that was configurable through a setting and figured it was a small fix to
actually get this value when determining chunk sizes.

Would have preferred to be able to set it per Track/Stream but could not
figure out how to get settings on a specific stream and get access to them
from the MOV track so this will do for now.

Regards,
Sander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-max_chunk_size-from-format-context-in-build_chunks.patch
Type: application/octet-stream
Size: 1786 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210818/db927b57/attachment.obj>


More information about the ffmpeg-devel mailing list