[FFmpeg-devel] [PATCH][DISCUSS] nvenc: Add encoder flush API.

Philip Langdale philipl at overt.org
Sat Dec 21 01:36:11 EET 2019


On 2019-11-18 17:13, Josh Allmann wrote:
> This patch is meant to be an entry point for discussion around an
> issue we are having with flushing the nvenc encoder while doing
> segmented transcoding. Hopefully there will be a less kludgey
> workaround than this.

Hi Josh,

I happened to see your email recently, and took a quick look into
this. It seems that encoders are allowed to implement .flush() and
then avcodec_flush_buffers() can be called on them like on a
decoder. So I've posted a patch that does this (with the same impl
that you had). If that works for you, then that's all it takes -
no need for a new API call because there's already one you can use.

Let us know,

--phil


More information about the ffmpeg-devel mailing list