[FFmpeg-devel] [PATCH] avdevice/avdevice: Deprecate AVDevice Capabilities API
Diederick C. Niehorster
dcnieho at gmail.com
Wed Jun 2 16:15:12 EEST 2021
On Wed, Jun 2, 2021 at 2:37 PM Nicolas George <george at nsup.org> wrote:
>
> dcnieho at gmail.com (12021-06-02):
> > I (new contributor) have been making a push to get avdevice/dshow to where
> > it is great to use programmatically (see recent patches, more coming). One
> > thing on my list is to be able to through the API query the capabilities of
> > my device, as right now I'd have to ask users to run a command like ffmpeg
> > -list_options true -f dshow -i video="Camera" to get that info and manually
> > enter it into my program, let alone that I am unable to make a nicer GUI. I
> > see that this capability has just been deprecated. Instead of waiting for a
> > new avdevice interface that may or may not come (I personally like that they
> > are just formats like anything else, super easy to use), would it be
> > possible to undeprecate when I provide an implementation of
> > create_device_capabilities for the dshow avdevice?
>
> Excellent. Applications that use the advanced features of libavdevice
> and serve as test beds for these features are sorely needed.
>
> The project has no real system to make engagements about something like
> this, but I can say that if you propose a patch series that de-deprecate
> the API and implements it in dshow, I would personally support it.
Great to hear! What should i do to de-deprecate?
1. bump LIBAVDEVICE_VERSION_MINOR
2. remove FF_API_DEVICE_CAPABILITIES define
3. remove the #if LIBAVFORMAT_VERSION_MAJOR < 59 in avformat.h
around
int (*create_device_capabilities)(struct AVFormatContext *s, struct
AVDeviceCapabilitiesQuery *caps);
and
int (*free_device_capabilities)(struct AVFormatContext *s, struct
AVDeviceCapabilitiesQuery *caps);
?
All the best,
Dee
More information about the ffmpeg-devel
mailing list