I’m using NVENC in FFmpeg and have created a filter. When a frame enters this filter, it processes the frame and stores it in a frame queue. After every N intervals, we output N frames from the queue using ff_filter_frame(outlink, frame).
The issue is that when the number N exceeds 14 or 15, the time spent waiting increases significantly at p_nvenc->nvEncLockBitstream(ctx->nvencoder, &lock_params)
during encoding with the NVENC encoder. Could you help me understand why this happens?
(I’m working on linux and I know that the synchronous mode is only supported on linux.)