Media capture using capture device sample

This sample demonstrates how to use the MediaCapture API to capture video, audio, and pictures from a capture device, such as a webcam.

 
 
 
 
 
(9)
27,033 times
Add To Favorites
4/9/2013
E-mail Twitter del.icio.us Digg Facebook
Sign in to Ask a Question


  • StopRecord error
    1 Posts | Last Post May 08, 2013
    • When I changed the sample to Release,and used Simulator to open it,in the AudioCapture,I got the exception "HRESULT:0xC00D4A44" first time I clicked the button "StopRecord".Is that a bug?
  • How do I create and use the audio capture device?
    1 Posts | Last Post April 20, 2013
    • I'm trying to build an app that records audio, but allows the user to upload it to their skydrive or website. But I can't seem recreate this code with Windows Phone 8 Dev. Please, give me an example or step by step instructions. This is the only problem that I'm currently having with the app.
  • StartDevice error
    2 Posts | Last Post January 18, 2013
    • The line:
      await m_mediaCaptureMgr.InitializeAsync();
      
      thows an exception:
      the specified device interface or feature level is not supported on this system
      
      Any ideas?
      
      I've tried changing it to:
      await m_mediaCaptureMgr.InitializeAsync(settings);
      
    • Any answers to this?  I have the same problem, this code just doesn't work on my machine.  I made no changes to the code, just downloaded and ran it.  When i click the start button, it gives the error message, "the specified device interface or feature level is not supported on this system".  Other programs (ie Skype) access my webcam without issues.
  • Integrating with external non-WinRT C++ Dlls
    1 Posts | Last Post January 08, 2013
    • Hi All,
      
      Has anyone managed to make use of an external non-WinRT C++ dll? I tried integrating the DirectX Toolkit and I'm having several issues. In short, I used this sample and I added the DirectXTK_Windows8 (http://directxtk.codeplex.com/) project to the solution and referenced it in the C++ project. I added a few methods to make sure the reference work without actually calling them. This is where I started running in problems:
      
      1.The application would not build, complaining about DirectXTK.winmd. To correct this I applied the changes specified in this post (http://directxtk.codeplex.com/discussions/360555) and manually edited the pre-processor and linker properties of the WinRT C++ library. 
      
      2.The next problem I encountered is the following error message: "error LNK2005: DllCanUnloadNow already definied in dllmain.obj". This issue was described in detail here (http://stackoverflow.com/questions/12893355/windowsstorageapplicationdatacurrent-not-found-in-c). It seems it's due to conflicting definitions. I applied the suggested fix in pre-processor and linker. 
      
      3.The application finally build and ran ok initially. When I invoked the modified WinRT dll (which does not call any new logic though) I got a cryptic "Error in the DLL" exception, without any additional detail. At this point I'm stuck trying to find out how to resolve it.
       
      Any suggestions on how to troubleshoot this further or working examples of this sample using an external non-WinRT dll would be most useful.
      
      Many thanks in advance,
      Stefan
      
  • Streams
    1 Posts | Last Post November 28, 2012
    • How can modify the CGrayscale MFT so that it can operate on 3 input streams and 1 output stream? I want to implement HDR kind of functionality.
      
      I modified function CGrayscale::GetStreamLimits(...) and CGrayscale::GetStreamCount(...) but it didn't seem to work.
      
      Am I missing something? 
  • How can I debug MFT?
    3 Posts | Last Post November 26, 2012
    • I'm making my camera program based on this sample program and trying implementing own camera filter.
      Now I'm modifying Grayscale.cpp to make a sepia effect filter. In this process, I put a breakpoint in Grayscale.cpp and start debug run but IDE would not stop at the breakpoint. How can I debug media foundation transform?
    • In your C# project (MediaCapture), go the Debug properties, change Debugger Type to Mixed (Managed and Native)
    • Yan
      It works fine. Thanks.
  • record audio;set sample rate,Bitrate ,ChannelCount and so on
    1 Posts | Last Post November 08, 2012
    • I want to set sample rate,bitrate,channel when record audio,should I do somethings?I see AudioEncodingProperties ,but I did't use it.Thanks.
  • Design view is unavailable for x64 and ARM target platforms.
    1 Posts | Last Post November 05, 2012
    • When I want to see the design view of this sample a message notice me as the title. Anything I can do to solve this question?
  • Some video devices are not showing up in the enumerated list.
    1 Posts | Last Post October 20, 2012
    • I have a non webcam video device in the USB port, Other apps can see it but not this example.
      If I use
      task<DeviceInformationCollection^>(DeviceInformation::FindAllAsync(DeviceClass::All)).then([this](task<DeviceInformationCollection^> findTask)
      
      to sift through all of the devices my video capture device shows up in there, but not if I use DeviceClass::VideoCapture.
      
      DeviceClass::All also reports every other device that has ever been plugged into the pc. It's also peculiar that the device shows up many times in the list with different device IDs, so trying to use any one of them gives me a device is in use error.
      
      Any suggestions i can get to help figure out which device is the one I should be using? or to get VideoCapture to show my avermedia usb device?
  • How to pass data from GrayscaleTransform back to MediaCapture
    1 Posts | Last Post October 18, 2012
    • I am using C#/C++ project. I had done all the image processing in GrayscaleTransform. However, how I can pass back the data structure from GrayscaleTransform, back to C# MediaCapture?
      
      Say, if I use C++ project (Both GrayscaleTransform and MediaCapture project are in C++), will it be easier? If yes, how I can achieve so?
      
      In fact, the problem is similar as described here : http://stackoverflow.com/questions/12907538/how-to-get-feedback-from-mediacapture-api-in-windows-8
1 - 10 of 21 Items