Help for Camera Recorder

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help for Camera Recorder

1,973 Views
Zenger1978
Contributor I

My project is based on imx535+wince7(2011_05_smd_bsp). There are three main problems: 1、How to get Handle of the device "CAM1:" which loaded by IFileSourceFilter->Load(L"CAM1:",&Media_Type) ? 2、Where can i find the Interfaces of FSL base filter , CLSID_FSLVPUENC、 CLSID_FSLAVIMUX 、 CLSID_FSLFILEWRITER and so on .... 3、In FSL capture filter Graph, which filter can split two pins,One for preview,the other for capture.

0 Kudos
13 Replies

1,595 Views
Zenger1978
Contributor I

Hi,Prabu Kumar, Thanks for your answer! Could you help me to test your Samples on IMX53 SMD platform ?

0 Kudos

1,595 Views
Zenger1978
Contributor I

I remove "FSL_MMF_MUXER_AVI" and "FSL_MMF_VIDEO_CAPTURE", but the DDrawTest still fail at Line " CHK( pVideoRenderer.CoCreateInstance( CLSID_VideoMixingRenderer ));" 。

0 Kudos

1,595 Views
Zenger1978
Contributor I

I also remove item " FSL_MMF_VIDEO_CAPTURE" .

0 Kudos

1,595 Views
Zenger1978
Contributor I

Thanks.The following is the VMR content in my reginit.ini .Next i try to remove the FLS_MM from the OS as you tell me . I don't how many catalog items would be removed ! FSL_MMF_AVI_MUX_TEST  & FSL_MMF_APP_AUDIO_CAPTURE, and so on ...

 

; @CESYSGEN IF QUARTZ_VMRRENDERER
; Video Mixing Renderer Filter

[HKEY_CLASSES_ROOT\Filter\{B87BEB7B-8D29-423f-AE4D-6582C10175AC}]
@="VideoMixingRenderer"

[HKEY_CLASSES_ROOT\CLSID\{B87BEB7B-8D29-423f-AE4D-6582C10175AC}]
@="VideoMixingRenderer"
"Merit"=dword:00800000

[HKEY_CLASSES_ROOT\CLSID\{B87BEB7B-8D29-423f-AE4D-6582C10175AC}\InprocServer32]
@="quartz.dll"
"ThreadingModel"="Both"

[HKEY_CLASSES_ROOT\CLSID\{B87BEB7B-8D29-423f-AE4D-6582C10175AC}\InprocServer32\Pins\Input]
;"Direction"=dword:00000000
;"IsRendered"=dword:00000001
;"AllowedZero"=dword:00000000
;"AllowedMany"=dword:00000001

[HKEY_CLASSES_ROOT\CLSID\{B87BEB7B-8D29-423f-AE4D-6582C10175AC}\Pins\Input\Types\{73646976-0000-0010-8000-00AA00389B71}\{00000000-0000-0000-0000-000000000000}]

; ImageSynchronization component

[HKEY_CLASSES_ROOT\CLSID\{7D8AA343-6E63-4663-BE90-6B80F66540A3}]
@="ImageSynchronization"
"Merit"=dword:00000000

[HKEY_CLASSES_ROOT\CLSID\{7D8AA343-6E63-4663-BE90-6B80F66540A3}\InprocServer32]
@="quartz.dll"
"ThreadingModel"="Both"

; AllocatorPresenter component

[HKEY_CLASSES_ROOT\CLSID\{99d54f63-1a69-41ae-aa4d-c976eb3f0713}]
@="ImageSynchronization"
"Merit"=dword:00000000

[HKEY_CLASSES_ROOT\CLSID\{99d54f63-1a69-41ae-aa4d-c976eb3f0713}\InprocServer32]
@="quartz.dll"
"ThreadingModel"="Both"

; VideoMixer component

[HKEY_CLASSES_ROOT\CLSID\{06b32aee-77da-484b-973b-5d64f47201b0}]
@="ImageSynchronization"
"Merit"=dword:00000000

[HKEY_CLASSES_ROOT\CLSID\{06b32aee-77da-484b-973b-5d64f47201b0}\InprocServer32]
@="quartz.dll"
"ThreadingModel"="Both"

; We disable ColorKey usage on smartfons (RenderingPrefs = 8) since the compositor doesn't know how to deal with color keyed overlays
[HKEY_LOCAL_MACHINE\Software\Microsoft\DirectX\DirectShow\VMR]
"RenderingPrefs"=dword:0
"UseScanLine"=dword:0
"MaxBackBuffers"=dword:1
"KeyColor"=hex:09,09,09,00

0 Kudos

1,595 Views
PrabuKumar
Contributor I

It looks like Freescale Multimedia framework removes the VMR from the registry.So try removing the FSL_MM from the OS and test the camera application.

0 Kudos

1,595 Views
PrabuKumar
Contributor I
Did you given “Clean Sysgen” after selecting the DShow VMR from the catalog items?
Also search for “VMR” in your reginit.ini file on the release directory of your OSdesign,and check whether registry related to VMR are present in that.
0 Kudos

1,595 Views
Zenger1978
Contributor I

Wince7.

0 Kudos

1,595 Views
Zenger1978
Contributor I

Thanks for your answer . I have added SYSGEN_DSHOW_VMR in my catalog item. Are there others renderer components ?https://community.nxp.com/discussions/83-render.PNG" target="_self

84-render.PNG

0 Kudos

1,595 Views
PrabuKumar
Contributor I
Are you trying with WinCE 6.0 Or WEC7? If you are trying with WEC7,check whether you have the renderer component from the catalog item.
0 Kudos

1,595 Views
Zenger1978
Contributor I

Sorry, I can't  run your sample. Debug Port msg is "Builing the graph failed hr=0x01 ". I find out It fail at Line "CHK( pVideoRenderer.CoCreateInstance( CLSID_VideoMixingRenderer ));" ? what's wrong with it? Thanks.

0 Kudos

1,595 Views
PrabuKumar
Contributor I

Here is the link to download source.

http://dshowcamerawec7.codeplex.com

0 Kudos

1,595 Views
Zenger1978
Contributor I

hi, i couldn't open the link ,could you send it to  11r1002@mail.ultra-view.com or zzato@163.com . Thanks ! 

0 Kudos

1,595 Views
PrabuKumar
Contributor I

If you had developed DirectShow camera driver for your camera sensor,then you can use the following sample application to test the same.

http://prabukumar.wordpress.com/2011/07/02/building-a-simple-camera-directshow-filter-graph-applicat...

Regards,

Prabu

0 Kudos