Opened 5 years ago

Closed 20 months ago

#4486 closed enhancement (wontfix)

Missing AVInputFormat.get_device_list() for dshow and avfoundation

Reported by: nalply Owned by: thilo.borgmann
Priority: wish Component: avdevice
Version: git-master Keywords: dshow avfoundation
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Rationale: We are writing a C library to enumerate devices programmatically.

Currently one can pass the option -list_devices to the ffmpeg executable and this is handled in libavdevice/dshow.c:dshow_read_header() and libavdevice/avfoundation.m:avf_read_header(), but this is not accessible by API (we get "function not implemented" when invoking avdevice_list_devices()).

Would it make sense to separate this code out to a separate function dshow_get_device_list() and assign it to ff_dshow_demuxer.get_device_list? Similarly for avfoundation?

Should we go ahead and then mail a patch or a git merge proposal to ffmpeg-devel?

Change History (4)

comment:1 Changed 5 years ago by cehoyos

  • Keywords dshow avfoundation added

Sorry for ignoring this ticket so long!

You should be able to use an av_option to get the same output as the ffmpeg executable. If you feel that your solution is superior please feel free to send a patch to the development mailing list.

comment:2 Changed 5 years ago by thilo.borgmann

  • Owner set to thilo.borgmann
  • Status changed from new to open

Is this ticket still valid?

comment:3 Changed 4 years ago by thilo.borgmann

  • Priority changed from normal to wish
  • Type changed from defect to enhancement

comment:4 Changed 20 months ago by richardpl

  • Resolution set to wontfix
  • Status changed from open to closed

API already provides way to access this information.
If you need something new feel free to send patch to our mailing-list.

Note: See TracTickets for help on using tickets.