473,734 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Image Capture Control for Windows Mobile using DirectShow

ink
Hi All,

I am trying to build an image capture user control using DirectShow to be
used in an existing C# application.

It needs to have a view finder/ preview window and be able to take still
images.

My problem is that I am a C# developer and I understand very little C++. It
seems that you really do need C++ to develop DirectShow on Windows Mobile.

So fare the best solution I have found to using direct show in C# is
DirectShowNet.

http://directshownet.sourceforge.net/

But this is for desktop and not windows mobile.

I have tried the CameraCapture example in the Windows mobile SDK, it records
the video fine but when it takes pictures all the images come out Black and
there is no preview for the image it is going to take.

I have looked through loads of different examples like hear is just 2 of the
5 I have found:

http://www.wimobot.com/SourceCode.aspx#WimoII

http://www.codeproject.com/useritems...91&tid=1720891

But the only one I have managed to get to work consistently is on the
desktop in the SampleGrabberNE T sample:

http://www.codeproject.com/cs/media/directshownet.asp

But I cant seem to port this to windows mobile.

I do know about CameraCaptureDi alog, it is simply not flexible enough, that
is why I am trying to use DirectShow.

Creating a control that has a view finder and stores still images must be
possible cos the CameraCaptureDi alog can do it and so I know it can be done.

Has anyone got a solution to this. I have seen loads of online posts trying
to get this to work but there seems to be very few answers.

Thanks

Ink

Nov 13 '07 #1
4 26288
ink

I can not believe that nobody has any idea of how this can be done.

i have managed to stich together a hack which seems to be working but not
great.

I have used the WiMo Native camera DLL and then used PInvoke to access it
and take a picture every 500 milliseconds and display it in a picture box.
then when i want to save a still i simply call the picturebox.save method
and give it a unique name.

It seems to be working but is a very clugy hack.

does anybody have a better way?

thanks,
ink


"ink" <in*@notmyemail .comwrote in message
news:eE******** *****@TK2MSFTNG P05.phx.gbl...
Hi All,

I am trying to build an image capture user control using DirectShow to be
used in an existing C# application.

It needs to have a view finder/ preview window and be able to take still
images.

My problem is that I am a C# developer and I understand very little C++.
It seems that you really do need C++ to develop DirectShow on Windows
Mobile.

So fare the best solution I have found to using direct show in C# is
DirectShowNet.

http://directshownet.sourceforge.net/

But this is for desktop and not windows mobile.

I have tried the CameraCapture example in the Windows mobile SDK, it
records the video fine but when it takes pictures all the images come out
Black and there is no preview for the image it is going to take.

I have looked through loads of different examples like hear is just 2 of
the 5 I have found:

http://www.wimobot.com/SourceCode.aspx#WimoII

http://www.codeproject.com/useritems...91&tid=1720891

But the only one I have managed to get to work consistently is on the
desktop in the SampleGrabberNE T sample:

http://www.codeproject.com/cs/media/directshownet.asp

But I cant seem to port this to windows mobile.

I do know about CameraCaptureDi alog, it is simply not flexible enough,
that is why I am trying to use DirectShow.

Creating a control that has a view finder and stores still images must be
possible cos the CameraCaptureDi alog can do it and so I know it can be
done.

Has anyone got a solution to this. I have seen loads of online posts
trying to get this to work but there seems to be very few answers.

Thanks

Ink
Nov 14 '07 #2
ink wrote:
>
I can not believe that nobody has any idea of how this can be done.
http://blogs.msdn.com/marcpe/archive...03/542941.aspx

works great with my spv e650

regards,
mak
>
i have managed to stich together a hack which seems to be working but
not great.

I have used the WiMo Native camera DLL and then used PInvoke to access
it and take a picture every 500 milliseconds and display it in a picture
box. then when i want to save a still i simply call the picturebox.save
method and give it a unique name.

It seems to be working but is a very clugy hack.

does anybody have a better way?

thanks,
ink


"ink" <in*@notmyemail .comwrote in message
news:eE******** *****@TK2MSFTNG P05.phx.gbl...
>Hi All,

I am trying to build an image capture user control using DirectShow to
be used in an existing C# application.

It needs to have a view finder/ preview window and be able to take
still images.

My problem is that I am a C# developer and I understand very little
C++. It seems that you really do need C++ to develop DirectShow on
Windows Mobile.

So fare the best solution I have found to using direct show in C# is
DirectShowNe t.

http://directshownet.sourceforge.net/

But this is for desktop and not windows mobile.

I have tried the CameraCapture example in the Windows mobile SDK, it
records the video fine but when it takes pictures all the images come
out Black and there is no preview for the image it is going to take.

I have looked through loads of different examples like hear is just 2
of the 5 I have found:

http://www.wimobot.com/SourceCode.aspx#WimoII

http://www.codeproject.com/useritems...91&tid=1720891


But the only one I have managed to get to work consistently is on the
desktop in the SampleGrabberNE T sample:

http://www.codeproject.com/cs/media/directshownet.asp

But I cant seem to port this to windows mobile.

I do know about CameraCaptureDi alog, it is simply not flexible enough,
that is why I am trying to use DirectShow.

Creating a control that has a view finder and stores still images must
be possible cos the CameraCaptureDi alog can do it and so I know it can
be done.

Has anyone got a solution to this. I have seen loads of online posts
trying to get this to work but there seems to be very few answers.

Thanks

Ink
Nov 14 '07 #3
ink
Thanks Grzegorz
This is one of the examples i have already tried and in fact where i got the
idea from to take repeted picturs and display them on screen.

But it unfortunatly is not the solution.

What i do know from looking at working desktop examples is that the DLL
needs to open a vidio interface and attach it to a rendering out pin (I
think).

But there is no examples of this for CE devices.

Thanks,
ink

"Grzegorz Makarewicz" <ma*@trisoft.co m.plwrote in message
news:fh******** **@opal.futuro. pl...
ink wrote:
>>
I can not believe that nobody has any idea of how this can be done.

http://blogs.msdn.com/marcpe/archive...03/542941.aspx

works great with my spv e650

regards,
mak
>>
i have managed to stich together a hack which seems to be working but
not great.

I have used the WiMo Native camera DLL and then used PInvoke to access
it and take a picture every 500 milliseconds and display it in a picture
box. then when i want to save a still i simply call the picturebox.save
method and give it a unique name.

It seems to be working but is a very clugy hack.

does anybody have a better way?

thanks,
ink


"ink" <in*@notmyemail .comwrote in message
news:eE******* ******@TK2MSFTN GP05.phx.gbl...
>>Hi All,

I am trying to build an image capture user control using DirectShow to
be used in an existing C# application.

It needs to have a view finder/ preview window and be able to take
still images.

My problem is that I am a C# developer and I understand very little
C++. It seems that you really do need C++ to develop DirectShow on
Windows Mobile.

So fare the best solution I have found to using direct show in C# is
DirectShowNet .

http://directshownet.sourceforge.net/

But this is for desktop and not windows mobile.

I have tried the CameraCapture example in the Windows mobile SDK, it
records the video fine but when it takes pictures all the images come
out Black and there is no preview for the image it is going to take.

I have looked through loads of different examples like hear is just 2
of the 5 I have found:

http://www.wimobot.com/SourceCode.aspx#WimoII

http://www.codeproject.com/useritems...91&tid=1720891


But the only one I have managed to get to work consistently is on the
desktop in the SampleGrabberNE T sample:

http://www.codeproject.com/cs/media/directshownet.asp

But I cant seem to port this to windows mobile.

I do know about CameraCaptureDi alog, it is simply not flexible enough,
that is why I am trying to use DirectShow.

Creating a control that has a view finder and stores still images must
be possible cos the CameraCaptureDi alog can do it and so I know it can
be done.

Has anyone got a solution to this. I have seen loads of online posts
trying to get this to work but there seems to be very few answers.

Thanks

Ink
Nov 14 '07 #4
ink wrote:
Thanks Grzegorz
This is one of the examples i have already tried and in fact where i got
the idea from to take repeted picturs and display them on screen.

But it unfortunatly is not the solution.
Sic - I don't know why - sizing is not so good - but take look at mio -
or other sources where pictures can be taken up to 1800x1600.
>
What i do know from looking at working desktop examples is that the DLL
needs to open a vidio interface and attach it to a rendering out pin (I
think).

But there is no examples of this for CE devices.
not in wm6 examples (nothing there with atl camera), just download wm5
sdk - and see atl example camera application, without modifications
works - with varius htc 710 devices - spv 650 at last.

I have no time to transfer it - these calls to managed code - but it's
fairly simple.

mak
Nov 14 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
9541
by: | last post by:
Hi, What is the best way to capture images from a FireWire DCAM camera? Is there any support for the DCAM protocol anywhere for C# on Windows 2000? If I understand it right TWAIN = legacy and not to be used, STI is the old driver model and WIA is the new model but only on XP and later. What are we expected to use to captuire images? Thanks.
6
18596
by: Ravi | last post by:
Hi, Im trying to develop a Visual C# .NET app. that uses DirectShow filters to capture video from camera source. However, after going through a series of articles, I've seen that DirectShow is not directly supported in Visual C#.NET. Im wondering if there's any way to use the video-capture filters of DirectShow in Visual C#. Otherwise, would it be possible to create a Visual C++ DLL that uses DirectShow filters to capture video from a WDM...
1
10647
by: Ravi | last post by:
Hi, Im trying to develop a Visual C# .NET app. that uses DirectShow filters to capture video from camera source. However, after going through a series of articles, I've seen that DirectShow is not directly supported in Visual C#.NET. Im wondering if there's any way to use the video-capture filters of DirectShow in Visual C#. Otherwise, would it be possible to create a Visual C++ DLL that uses DirectShow filters to capture video from a WDM...
2
15470
by: Arash | last post by:
Dear all, I've got a video capture device. Device manager shows "nVidia WDM Video Capture (universal)" driver in "Sound, video and game controllers" category. Also, Windows Movie Maker, and other standard video capture tools can record video from the device. But, I've got no idea how to read transmitted data in a C# application. All I'm gonna do is to show the real-time movie on an appropriate control on my form.
10
12284
by: Adam Honek | last post by:
This is probably a silly question but oh well, I can't find the answer looking via code. Having an imagelist already, how does one set an icon for a list view's sub items? I'm using the code below however the subitems doesn't have an overload allowing an image index. Adam
6
1586
by: Audrey | last post by:
Hi, Can I access image by image with c#.net from windows media player ? Tks for your help
6
7983
by: k.vanderstarren | last post by:
Hi Everyone, Do any of you gurus out there have any suggestions regarding capturing audio/video from a video capture card in C#. Although I've written other programs, I've never worked with audio/video sources before. I've seen other people recommending DirectShow.NET. Is this one of the more popular libraries to use? Would anyone recommend other third- party libraries? Thanks,
9
16092
by: Kevin | last post by:
Hi! Which is the best way to webcam video capture with C# 2.0 and vs 2005? DirectX? VFW Windows Api ? Thanks
1
3124
by: kbrewdev | last post by:
Hi Forum, I m working on moto q smart phone (windows mobile 5) n need to record voice in amr or qcp format. I m using directshow apis(smartphone 5 c++) to do this but not able to do this though i hv tried each n evry thing means creating the capture filter, then dMO wrapper n finaly the asfwriter stuff what is given in the cameracapture sample code. so please help me in this i m able to record the file by giving qcp guid but the the...
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9310
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9236
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9182
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2724
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.