Click here to Skip to main content
15,889,200 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I using following code : https://www.codeproject.com/Articles/13848/Video-File-Saving-in-Windows-Media-Video-Format-fo In surface 3 windows 10 pro , application throw exception "video device is in use or cannot be rendered".


What I have tried:

Please explain DeviceInUseException exception to me.And please tell me any solution for resolve this problem.Thanks
Posted
Updated 9-Sep-17 22:08pm
Comments
Patrice T 9-Sep-17 22:42pm    
There is a forum on bottom of the article page.
It is a better place to contact the author.

1 solution

Maybe you are missing the correct CODEC, see: How to Play WMV Files[^]

As the article is quite old (2009) it might not work anymore on Windows 10.
Quote:
I did not test this example with VS 2008 yet. DirectShowLib V2.0 is ok, I think you should also use option VS2005 (also needed for VS 2005). Probably you have to correct the Direct.Capture directory and the directory/filename of theDirectShowLib file. That is system dependent.

It could be that the example program needs an older DirectX version, probably DirectX 9. See: Download DirectX 9, 10, 11 Offline Installers[^]
 
Share this answer
 
v3
Comments
Member 13338759 10-Sep-17 6:11am    
Thank you for the advice .But I still play a avi video normal

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900