Link to home
Start Free TrialLog in
Avatar of rwinkler
rwinkler

asked on

DirectShow, audio, and a webcam

I'm trying to capture data from a webcam.  The video capture works fine, but no audio is coming through.  The webcam does have audio support, as is evidenced when I enumerate the AudioInputDevices (and with the software that came with the camera).  When I call RenderStream (using a capture pin and an audio media type), I get an HRESULT of 0x80070057.  Do I need to do something special with the capture filter?  Keep in mind that I'm pretty new at DirectShow, so I ~could~ be missing something obvious.
Avatar of Asta Cu
Asta Cu
Flag of United States of America image

Have you tested your whole multimedia environment using the DirectX diagnostics?  Which version of DirectX installed and Operating System version?
Avatar of rwinkler
rwinkler

ASKER

Oh, gee, I forgot I still had this question open.  The issue was a bad codec installed.  The intelligent connect was using this bad codec, so even graphedit was crashing.  After uninstalling the codec, it worked better.  Thanks for taking an interest in my question, though :)
0x80070057 - error query result from the Microsoft Knowledge Base 'may' be of some help or add some insight.
http://search.microsoft.com/search/results.aspx?view=en-us&st=b&na=82&qu=0x80070057

Microsoft DirectX 9.0 SDK Update (October 2004)  - Introduction to DirectShow
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directshow/htm/introductiontodirectshow.asp
Oh my goodness, was here all alone and no comments, about to add two more links and see your comment, LOL.  That'll teach me to refresh my screen.  

Happy you found the culprit and it was, indeed, a codec issue.

":0)  Oh well, learned something along the way, so a win/win scenario.

Best wishes,
Asta
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial