[FFmpeg-devel] [PATCH v2] avcodec: add realtime bitstream filter

Moritz Barsnick barsnick at gmx.net
Sat May 4 18:06:04 EEST 2019


On Fri, May 03, 2019 at 23:47:47 -0300, James Almer wrote:
> The flush() callback exists to reset the bsf into its initial state
> without the need to destroy and recreate the context.
> For example, some decoders auto-insert certain bitstream filters that
[...]
> avcodec_flush_buffers(), which must be called every time seeking needs
> to be done in a decoding scenario, flushes both the decoder and said
> bitstream filters.

Thanks for the explanation!

> I guess the simplest way would be to auto insert this bsf into some
> decoder (AVCodec.bsfs string), then seek using some libavcodec based
> application that doesn't already decodes at realtime.

It doesn't sound simple, but I'll try to construct a test and fix the
code. Meanwhile, this version of the patch is withdrawn.

Thanks,
Moritz


More information about the ffmpeg-devel mailing list