Webcam simultaneous preview and recording

Apr 1, 2010 at 9:03 AM

Hello,

I have successfully displayed web cam in my WPF app but it is not complete without the ability to record the video. I have searched the library for this functionality and couldn't find anything. I have also read http://wpfmediakit.codeplex.com/Thread/View.aspx?ThreadId=71535 and http://learnwpf.com/Posts/PostsByCategory.aspx?categoryId=72d8bc82-6537-429a-b771-0e365a36d82e and now I am seriously starting to scratch my head.

It appears the functionality is missing at this point. Second URL's author proposed a way to easily achieve this but it requires library modification. His post is 3 months old and it appears as if his effort to talk you into including his work has not yielded any results. Yet, your comments from the first URL seem to indicate one needs to be a DirectShow guru to make recording happen.

Basically, is there any chance to have at least basic functionality included or are we on our own?

Can you at least comment on the second URL? Would you advise this?

Thanks a lot!

Apr 1, 2010 at 9:30 AM
Try downloading and compiling the source code.  You can see the "OutputFilename" property is in there:  http://wpfmediakit.codeplex.com/SourceControl/changeset/view/41623#25936
Apr 1, 2010 at 10:21 AM

You are so right. I previously worked with October stable release.

One other question. Is there an easy way to start/stop file capture at will? I think I might have a workaround but it would be nice to know if this is officially possible.

Thanks a lot!

Apr 1, 2010 at 10:27 AM
You have to start and stop the graph, meaning the camera feed will start and stop.  There are ways around this, but it would require  advanced knowledge of DirectShow.
Apr 1, 2010 at 10:45 AM

Ok, as I said I think I have a simple and ugly workaround so not all is lost.

One last comment please... I have now managed to successfully capture video into ASF but despite the preview being in max resolution (720x756 PAL), the video is only captured in 320x240. I have tried various combinations of DesiredPixelWidth/Height and nothing helped.

Can you tell/guess what could be the cause of this low resolution?

NOTE: Instead of a real webcam, I am using a mini-DV camera with a DVDriver (http://www.trackercam.com/TCamWeb/dvdriver.htm) which makes Fireware cameras behave like regular webcam capture devices. Could this be a DVDriver issue or a WPF MediaKit issue?

Thanks a lot!

Oct 25, 2010 at 2:39 PM

Hello,

Is there any way found to record wpf video and audio?

Actually i am new in wpf and silverlight, and not much idea about mediakit and directshow :(

Can anybody help me out, Actually i need to do this ASAP, but did not find much help for me [ as new in this platform]

Please help me.

thanks and regards

Tanmay