<div dir="ltr">Hi<div><br></div><div>I'm wondering is it possible to configure the max_packet_size, when performing writes of large frames.</div><div><br></div><div>So I have defined ffmpeg to use a custom protocol handler in my application, so the write method of my handler gets called by the API when it writes out the packet from the MP4 muxer.</div>
<div><br></div><div>What I'm seeing is that if I write a h264 encoded frame say of 70K+ bytes, then, I see 3 writes to my the custom write handler I have defined.</div><div><br></div><div>So I can see in libavformat/aviobuf.c IO_BUFFER_SIZE=32768 defined, which is then used to define the max size which is then used by the write method in the same file.</div>
<div><br></div><div>I'm wondering is there a way to configure this max_packet_size easily and is there issues I should be aware of in doing so. So i suspect the memory footprint would increase.</div><div><br></div><div>
Thanks</div><div>Declan</div><div><br></div></div>