[FFmpeg-devel] configuring the max_packet_size
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
> > URLContext, which does indeed set the buffer size. So what I was
> > if it would be possible to set this on/just before each write?
> > 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