no combination of intermediate filters could be found

后端 未结 1 842
清歌不尽
清歌不尽 2021-01-16 06:39

I\'m making a windows form application using Visual Studio. The application allows you to enter the what you want the photo to be named, and then saves that image to a speci

相关标签:
1条回答
  • 2021-01-16 07:17

    When having to convert between media formats, you can programmatically force it to use some specific filter chain and configure it tightly to your needs, but DirectSHOW also has the ability of "guessing" the right tools to use. It knows all the tiny media handlers that are oficially installed in the OS, and tries to match them so that final required "conversion" is built.

    However, DirectShow still needs those tiny converters to be installed. DS is able to analyze and connect them, but will not provide you any support for exotic media types. Often, even non-exotic can be problematic if the OS is "fresh-n-clean".

    If I remember correctly, that error basically means that (on this problematic machine) some "codecs" are missing.

    These things often come with any:

    • drivers for webcams/microphones/soundcards
    • audio-processing software (sound editors, media recorders, media players, ..)
    • "codec packs" like CCCP (really, don't get confused by their logo)
    • specific codec/filter packages
    • (...)

    First thing I'd now do would be:

    • recall what I tried to convert
    • try to read all error messages and logs and find out if there's some faulty filter mentioned, maybe it needs reinstalling
    • compare what audio-related software is installed on machines where the program WORKS versus the problematic machine
    • basing on the above, try to deduce what codec is missing
    • find it, download, install

    Also, you may read the code of SetupGraph() function. I bet there's a clear reference to the format that is being used, and this may point out what codec is missing.

    Codecs also sometimes get damaged (actually not themselves, but their configuration and registration entries may get damaged). If you are sure that the correct codecs are available on the machine, reinstalling or "repairing" (if they have such option) them can help.

    0 讨论(0)
提交回复
热议问题