#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
_______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org https://ffmpeg.org/mailman/listinfo/ffmpeg-trac To unsubscribe, visit link above, or email ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".