[FFmpeg-user] Error: Impossible to convert between the formats...(Nvidia codecs)
dmngaie at gmail.com
Sat Jul 9 14:28:51 EEST 2022
On Sat, 9 Jul 2022 at 14:25, Ben Parham <behfarteam at gmail.com> wrote:
> Thanks, Dennis. I added it in -preset p4 and the same error appeared:
> hevc @ 000001ac32f034c0] hardware accelerator failed to decode picture
> Error while decoding stream #0:0: Generic error in an external library
> [hevc @ 000001ac41cd1180] Could not find ref with POC 5
> [hevc @ 000001ac41d82640] No decoder surfaces left38 bitrate=N/A
> [hevc @ 000001ac41d82640]
> decoder->cvdl->cuvidDecodePicture(decoder->decoder, &ctx->pic_params)
> failed -> CUDA_ERROR_INVALID_VALUE: invalid argument
How many encoder sessions are you running simultaneously?
Try bumping up the number of extra_hw_frames, say 6 to 10, and retest.
More information about the ffmpeg-user