Cam alone o.k., with audio:
IMFSourceReader_SetCurrentMediaType error: -1072875852
ErrorLevel: 0
Webcam capture with Microsoft Media Foundation
Re: Webcam capture with Microsoft Media Foundation (Win10)
one messagebox with 0x3 for me
running the latest code in the top post, now i get:
IMFSourceReader_SetCurrentMediaType error: -1072875852
ErrorLevel: 0
on a Lenovo Thinkpad
Re: Webcam capture with Microsoft Media Foundation (Win10)
I updated source code.
Now it enumerates all streams from camcorder, enumerates each type of each stream and choose the best for h.264 and aac encoding (not 100% shure about this).
Now it enumerates all streams from camcorder, enumerates each type of each stream and choose the best for h.264 and aac encoding (not 100% shure about this).
Re: Webcam capture with Microsoft Media Foundation (Win10)
On Lenovo IdeaPad Y580 works flawless! Great work!
Re: Webcam capture with Microsoft Media Foundation (Win10)
now it works for me too, both audio and video. great work
Re: Webcam capture with Microsoft Media Foundation
Add support for Windows 7.
Re: Webcam capture with Microsoft Media Foundation
Add support for preview window with Direct2D help.
Re: Webcam capture with Microsoft Media Foundation
Couple of tests for version from 08. Feb. 2020: Recordings of 5, 10 and 60 sec with preview width 400 and full (commented), all were correct on Win10.
Great job continues!!!
Great job continues!!!
Re: Webcam capture with Microsoft Media Foundation
Thanks for test.
I update code
1) add quotes when show all devices, because it can be devices with space at the end of name.
2) add support for enumerating devices with the same name.
3) add support for different Video Input Types with Color Converter DSP help.
https://docs.microsoft.com/en-us/windows/win32/medfound/colorconverter
I update code
1) add quotes when show all devices, because it can be devices with space at the end of name.
2) add support for enumerating devices with the same name.
3) add support for different Video Input Types with Color Converter DSP help.
https://docs.microsoft.com/en-us/windows/win32/medfound/colorconverter
-
- Posts: 934
- Joined: 30 Sep 2017, 03:59
- Location: Romania
- Contact:
Re: Webcam capture with Microsoft Media Foundation
This is lovely.
Can this be adapted to acquire images from a scanner?
Best regards, Marius
Can this be adapted to acquire images from a scanner?
Best regards, Marius
-------------------------
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
KeyPress OSD v4: GitHub or forum. (presentation video)
Quick Picto Viewer: GitHub or forum.
AHK GDI+ expanded / compilation library (on GitHub)
My home page.
Re: Webcam capture with Microsoft Media Foundation
Take a look in this thread!
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: No registered users and 112 guests