[FFmpeg-devel] configuring the max_packet_size
harrison.declan at gmail.com
Wed Jul 2 23:44:24 CEST 2014
On Wed, Jul 2, 2014 at 4:32 PM, Michael Niedermayer <michaelni at gmx.at>
> On Wed, Jul 02, 2014 at 02:44:25PM +0100, declan harrison wrote:
> > Hi
> > I'm wondering is it possible to configure the max_packet_size, when
> > performing writes of large frames.
> > 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
> > it writes out the packet from the MP4 muxer.
> you can set max_packet_size from youe URLProtocol initialization
> does this not work ?
> or is there some other problem ?
So the open of the custom protocol handler I now see I can set the context
URLContext, which does indeed set the buffer size. So what I was wondering
if it would be possible to set this on/just before each write? Dynamically
change this buffer size to fit each frame.
More information about the ffmpeg-devel