Opened 9 years ago

Closed 5 years ago

#4486 closed enhancement (wontfix)

Missing AVInputFormat.get_device_list() for dshow and avfoundation

Reported by: Daniel Ly 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 (4)

comment:1 by Carl Eugen Hoyos, 9 years ago

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 by Thilo Borgmann, 8 years ago

Owner: set to Thilo Borgmann
Status: newopen

Is this ticket still valid?

comment:3 by Thilo Borgmann, 7 years ago

Priority: normalwish
Type: defectenhancement

comment:4 by Elon Musk, 5 years ago

Resolution: wontfix
Status: openclosed

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.