[FFmpeg-devel] configuring the max_packet_size

declan harrison harrison.declan at gmail.com
Thu Jul 3 08:38:51 CEST 2014


>
>
> >
> > 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.
>
> why do you want to do that ?
>
> So. Im streaming this content back to the client over HTTP-PD using MP4
container, so Ive predicted in advance the sample size. Sometimes the frame
is too small and I need to add a Filler nal and other times its too large
and I need to truncate or rewrite the frame, so I normally need to cache
these segements till I have the complete frame.


More information about the ffmpeg-devel mailing list