#11670(undetermined:new): Allow partial matching for audio input device names in DirectShow
#11670: Allow partial matching for audio input device names in DirectShow -------------------------------------+------------------------------------- Reporter: guest | Type: | enhancement Status: new | Priority: wish Component: | Version: undetermined | unspecified Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- Currently, FFmpeg requires an exact match of the audio input device name when specifying an input device (e.g., with -f dshow -i audio="Device Name" on Windows). This can be inconvenient when device names are long or change slightly between systems. Proposed Enhancement: Introduce support for partial matching of device names, so users can provide a substring instead of the full, exact name. For example: ffmpeg -f dshow -i audio="microphone" ... Implementation Suggestion: In the code that matches input device names, the comparison currently uses strcmp in dshow.c {{{ if (pfilter) { if (strcmp(device_name, friendly_name) && strcmp(device_name, unique_name)) goto fail; }}} This could be replaced with a substring match using strstr: {{{ if (pfilter) { if (!strstr(friendly_name, device_name) && !strstr(unique_name, device_name)) goto fail; } }}} It might be worth considering implementing some form of case-insensitive comparison. Thank you. -- Ticket URL: <https://trac.ffmpeg.org/ticket/11670> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker
participants (1)
-
FFmpeg