Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
media
danimation.controls
danimation.programming
devices
drm
dshow.programming
dtransform
encoder
encoder.optimization
hometheaterpc
media
media.beta
media.beta.encoder
mediacenter
mediacenter.portable
mediaplayer
music.products
musicproducer
player
player.plugins
player.skins
player.solaris
player.visualizations
player.web
sdk
server
tools
  
 
date: Tue, 19 Aug 2008 21:20:49 -0700 (PDT),    group: microsoft.public.windowsmedia.sdk        back       


How to access Webcam using Window media SDK 9   
Hi all
I'm totally new to Window media SDK. What i want to do is, get a live
video stream through my Webcam (Which is inbuilt web cam of my laptop,
Hp pavilion). I was able to get audio stream successfully. I think(not
sure), the problem with Video is program can't start the web cam.
This is the code segment which set the video and Audio, input sources.

    if ( SUCCEEDED( hr ) )
    {
        hr = pSrcAud->SetInput(CComBSTR("Device://
Default_Audio_Device"));
    }
    if ( SUCCEEDED( hr ) )
    {
        hr = pSrcVid->SetInput(CComBSTR("Device://
Default_Video_Device"));
    }

can any help me to fix this.
thanks.

regards
wijitha
date: Tue, 19 Aug 2008 21:20:49 -0700 (PDT)   author:   wijitha

Re: How to access Webcam using Window media SDK 9   
HI,
I faced the same problem when I use the code example from the Windows
Media Encoder 9 Series SDK programming guide. The examples use
"Windows Media Video 8 for Local Area Network (384 Kbps)" profile. If
you used this profile, you might not get video from the Webcam of Hp
pavilion laptop. What you have to do is changing your profile to
"Windows Media Video 8 for Local Area Network (100 Kbps)" profile.
Then it should be worked.

Regards,

Kelum.

wijitha wrote:
> Hi all
> I'm totally new to Window media SDK. What i want to do is, get a live
> video stream through my Webcam (Which is inbuilt web cam of my laptop,
> Hp pavilion). I was able to get audio stream successfully. I think(not
> sure), the problem with Video is program can't start the web cam.
> This is the code segment which set the video and Audio, input sources.
>
>     if ( SUCCEEDED( hr ) )
>     {
>         hr = pSrcAud->SetInput(CComBSTR("Device://
> Default_Audio_Device"));
>     }
>     if ( SUCCEEDED( hr ) )
>     {
>         hr = pSrcVid->SetInput(CComBSTR("Device://
> Default_Video_Device"));
>     }
>
> can any help me to fix this.
> thanks.
>
> regards
> wijitha
date: Fri, 22 Aug 2008 00:59:17 -0700 (PDT)   author:   Kelum

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us