Open Toussaic opened 4 years ago
I've the same problem. Did you found a solution for this?
I'm using the grabber for capturing images of generic UVC devices and I'm getting the exact same error.
For me, this error was showing when I tried to add a device using the below statement when no device was connected to the system.
FilterGraph().add_video_input_device(index)
I handled it using
from comtypes import COMError
try:
FilterGraph().add_video_input_device(index)
except (COMError):
# your statements
Update: ComError shows when a device shows in the list computed using FilterGraph().get_devices() but isn't actually connected to the system. I found this when I observed that add_video_input_device(another_index) throws an "Assertion error" for same for other indices after successfully adding the first index successfully.
Hi,
I tried to use the "set_format" function (of the class "VideoInput" in "graph_dshow.py") when the grabber is running and a COMError is raised.
When calling FilterGraph.stop() before "set_format", I have another Error.
package_list.txt