Opened 3 years ago

Last modified 20 months ago

#4486 open enhancement

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

Description

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 (3)

comment:1 Changed 3 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 3 years ago by thilo.borgmann

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

Is this ticket still valid?

comment:3 Changed 20 months ago by thilo.borgmann

  • Priority changed from normal to wish
  • Type changed from defect to enhancement
Note: See TracTickets for help on using tickets.