Opened 10 years ago
Closed 6 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 , 9 years ago
Keywords: | dshow avfoundation added |
---|
comment:3 by , 8 years ago
Priority: | normal → wish |
---|---|
Type: | defect → enhancement |
comment:4 by , 6 years ago
Resolution: | → wontfix |
---|---|
Status: | open → closed |
API already provides way to access this information.
If you need something new feel free to send patch to our mailing-list.
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.