CameraDShowApp
(1)
CCaptureFramework
(1)
RameshchandraI
(1)
VideoRenderer
(1)
VideoCapture
(1)
ImageSink
(1)
SmartTee
(1)
FileMux
(1)

Usb camera still images.

Asked By Rameshchandra
19-Nov-09 01:11 AM
Hi all,

I am using a usb based webcamera (ov0345), with my target running wince 6.0.
The driver used is usbcam.dll, and i am using cameradshowapp.exe for the
user interface.

I ran the cameradshowapp.exe, and it has detected the usb camera attached to
the target as CAM1: and i have enabled the and "VideoCapture", "Video
Renderer". Now, i could see that the camera images are streaming in the
application.  Now, i planned to take a still image of the camera.
So, again, i restarted the application with "Video Capture", "Video
Renderer", "Still Image sink", "FileMux" options checked.

Now, i get a crash as shown below,

--------------------------------------------------------------------------------
Filter 00002
Pin(INPUT) Mux Audio Input Pin - Unconnected
Pin(INPUT) Mux Video Input Pin - Connected
Filter VideoRenderer
Pin(INPUT) Input - Connected
Filter Image Sink Filter
Pin(INPUT) ImageSink Input Pin - Connected
Filter Color Space Converter 00012
Pin(INPUT) Input - Connected
Pin(OUTPUT) XForm Out - Connected
Filter Buffering Filter
Pin(INPUT) Buffering Filter Input Pin - Connected
Pin(OUTPUT) Buffering Filter Output Pin - Connected
Filter Color Space Converter
Pin(INPUT) Input - Connected
Pin(OUTPUT) XForm Out - Connected
Filter SmartTee
Pin(INPUT) Smart Tee Input pin - Connected
Pin(OUTPUT) Smart Tee Preview pin - Connected
Pin(OUTPUT) Smart Tee Capture pin - Connected
Filter VideoCapture
Pin(OUTPUT) Capture - Connected
Pin(OUTPUT) Still - Connected
Exception 'Access Violation' (3): Thread-Id=04100012(pth=86091918),
Proc-Id=040f0012(pprc=860916b8) 'CameraDshowApp.exe',
VM-active=040f0012(pprc=860916b8) 'CameraDshowApp.exe'
PC=4007cd54(coredll.dll+0x0006cd54) RA=41830dd8(quartz.dll+0x000d0dd8)
SP=0004fa98, BVA=00000000
Exception 'Raised Exception' (-1): Thread-Id=04100012(pth=86091918),
Proc-Id=00400002(pprc=83eb830c) 'NK.EXE', VM-active=040f0012(pprc=860916b8)
'CameraDshowApp.exe'
PC=c003fdd0(k.coredll.dll+0x0001fdd0) RA=81a12b8c(kernel.dll+0x00005b8c)
SP=d1a4f298, BVA=ffffffff
--------------------------------------------------------------------------------

So, i restarted the application with the options "Video Render", "Video
Capture" and "Still image sink"(without File mux), no i get the following
error,

---------------------------------------------------------------------------------
Filter VideoRenderer
Pin(INPUT) Input - Connected
Filter Image Sink Filter
Pin(INPUT) ImageSink Input Pin - Connected
Filter Color Space Converter 00004
Pin(INPUT) Input - Connected
Pin(OUTPUT) XForm Out - Connected
Filter Color Space Converter
Pin(INPUT) Input - Connected
Pin(OUTPUT) XForm Out - Connected
Filter SmartTee
Pin(INPUT) Smart Tee Input pin - Connected
Pin(OUTPUT) Smart Tee Preview pin - Connected
Pin(OUTPUT) Smart Tee Capture pin - Unconnected
Filter VideoCapture
Pin(OUTPUT) Capture - Connected
Pin(OUTPUT) Still - Connected
CCaptureFramework: Starting the graph failed.
CameraDShowApp: Starting the capture graph failed.
-------------------------------------------------------------------------------

Again, restarting the applicaion only with VideoCapture and Video Render, i
can see the camera images streaming, bu when i click on still button, i get
the following error,

------------------------------------------------------------------------------
No still image pin available to trigger
------------------------------------------------------------------------------

I just started to dig in to the code...Meanwhile, it will be very helpful
for me to proceed in the right direction , with all of your suggestions on
this...




--
Ramesh.c
Tvara tech solutions.
Bangalore.

Hi RameshchandraI could not able to identify the reason based on your input.

Bluetooth not working in Au1250 replied to Rameshchandra
19-Nov-09 02:01 AM
Hi Rameshchandra

I could not able to identify the reason based on your input.  Just enable
debug messages in PDD and MDD Driver and attach information here.From that we
can get some more idea of why it is failing.

you can enable camera Driver alone debug messages by using this


Try this one: For Still capture..Select Video Render,Video Capture,Still
image Sink..Don't  select  any other thing and try  to take still..

Let me know what it comes.

Thanks&Regards
Raja.S
www.e-consystems.com

Hi all,Solved the issue.

Rameshchandra replied to Bluetooth not working in Au1250
25-Nov-09 07:29 AM
Hi all,

Solved the issue.  Used the Camerapp code present under
private\test\baseos\driver\camera to get both still and preview. The code was
pretty easier to understand than the directshowapp...  The camera which i
specified above give YUV output, converted it to rgb888 and then finally,
encoded as 24bit bmp...


--
Ramesh.c
Tvara tech solutions.
Bangalore.
Post Question To EggHeadCafe