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
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