Solved

DirectShow, audio, and a webcam

Posted on 2004-10-20
7
2,276 Views
Last Modified: 2013-12-08
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.
0
Comment
Question by:rwinkler
  • 4
7 Comments
 
LVL 27

Expert Comment

by:Asta Cu
ID: 12478482
Have you tested your whole multimedia environment using the DirectX diagnostics?  Which version of DirectX installed and Operating System version?
0
 
LVL 1

Author Comment

by:rwinkler
ID: 12478513
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 :)
0
 
LVL 27

Expert Comment

by:Asta Cu
ID: 12478515
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
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 27

Expert Comment

by:Asta Cu
ID: 12478526
0
 
LVL 27

Expert Comment

by:Asta Cu
ID: 12478543
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
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 12807952
PAQed with points refunded (500)

modulo
Community Support Moderator
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, in one of the tech-blogs I usually read, I saw a post about the best-selling video games through history. The first place in the list is for the classic, extremely addictive Tetris. Well, a long time ago, in a galaxy far far away, I was…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question