Sign in to follow this  

VMR9 - "filter in wrong state" ?

Recommended Posts

Hello I managed, not without any hurt ^^, to capture live video incoming from my camera with DirectShow and VMR9. Now, I'm willing to add and overlay onto this video a bitmap. Thanks to DirectX SDK, there is Watermark9 application which do what I need. Just to verify I were right, I copy-paste the code of the function BlendApplicationImage(HWND hwndApp) in my class and call it when my graph is running (I also called it before ->Run). Of course, that doesn't work. There is a problem when calling SetAlphaBitmap function which returns :0x80040227 error, that is to say VFW_E_WRONG_STATE, in other words "The operation could not be performed because the filter is in the wrong state". ... ... ? o_O I don't undestand why... Where am I doing wrong ? I don't think I need a filter for doing any overlaying bitmap. Thank you Fenrhyr

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this