> -----Original Message----- > From: ffmpeg-devel <ffmpeg-devel-boun...@ffmpeg.org> On Behalf Of > Timo Rothenpieler > Sent: Thursday, July 2, 2020 3:51 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH] avcodec/nvenc: Video Codec SDK 10 > features support > > On 01.07.2020 06:03, Soft Works wrote: > >> From: Roman Arzumanyan <rarzuman...@nvidia.com> > >> Sent: Tuesday, June 30, 2020 10:23 PM > >> To: Soft Works <softwo...@hotmail.com>; FFmpeg development > >> discussions and patches <ffmpeg-devel@ffmpeg.org> > >> Cc: Yogender Gupta <ygu...@nvidia.com> > >> Subject: RE: [FFmpeg-devel] [PATCH] avcodec/nvenc: Video Codec SDK 10 > >> features support > >> > >> Hello, nice to meet you. > >> > >>> Wouldn't it make sense to transition from compile time version checks to > runtime checking? > >> > >> Video Codec SDK headers are not included into ffmpeg 'as is' but using the > nvcodec-headers project instead. > > I have looked into full runtime loading before, but given that every single > struct carries a version info, that will make older drivers refuse it, it's > very > much not straight forward to do, and would require major changes in both > the nvEncodeApi.h header and ffmpeg nvenc implementation.
It's been a while that I've worked with their API, so please bear with me when this question doesn't make sense: Could this perhaps be addressed by partitioning into just two cases? I mean something like: - Compatible - Latest This is essentially what I would have to do soon when there's no better solution available: Create two different ffmpeg versions. I would create only two versions - not one per each Nvidia SDK version. Wouldn't it be possible to do this in a similar way at runtime? Having to dynamically choose between two implementations only might be a lot easier than trying to handle all possible versions. What do you think? softworkz _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".