Inforce Computing Forums

inforce computing forums to discuss about inforce products

How to change pixel format to NV12 on ACC-1H10

Questions and discussions related to Inforce 6601™ development kit

by tamo2 » Wed Feb 14, 2018 9:58 am

Hi. I recently purchased the ACC-1H10 from Inforce that uses the ov5640 sensor: https://www.inforcecomputing.com/produc ... m-acc-1h10

I ran these commands, from the inforce 6601 Debian documentation,
sudo media-ctl -d /dev/media0 -p
sudo ./camera_configure_ov5640.sh
gst-launch-1.0 v4l2src device=/dev/video0 ! glimagesink

and I can see video great! Now I would like to change the pixel format to NV12, so I modified the camera_configure_ov5640 script:
sudo media-ctl -d /dev/media0 -l '"msm_csiphy0":1->"msm_csid0":0[1],"msm_csid0":1->"msm_ispif0":0[1],"msm_ispif0":1->"msm_vfe0_pix":0[1]'

sudo media-ctl -d /dev/media0 -V '"ov5640 12-0078":0[fmt:UYVY8_2X8/1920x1080],"msm_csiphy0":0[fmt:UYVY8_2X8/1920x1080],"msm_csid0":0[fmt:UYVY8_2X8/1920x1080],"msm_ispif0":0[fmt:UYVY8_2X8/1920x1080],"msm_vfe0_pix":0[fmt:UYVY8_2X8/1920x1080],"msm_vfe0_pix":1[fmt:UYVY8_1_5X8/1920x1080]'

I rebooted the board before running the modified script. Then I ran the script, which ran with no errors. I then ran gst-launch-1.0 v4l2src device=/dev/video3 ! glimagesink but this just hangs and does nothing.

Can you tell me how to get this to work?
Thanks,
tamo

also, a print out of the media-ctl, after running the modified script:
sudo media-ctl -p -d /dev/media0
Media controller API version 0.1.0

Media device information
------------------------
driver qcom-camss
model Qualcomm Camera Subsystem
serial
bus info
hw revision 0x0
driver version 0.0.0

Device topology
- entity 1: msm_csiphy0 (2 pads, 5 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none]
<- "ov5640 12-0078":0 [ENABLED,IMMUTABLE]
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none]
-> "msm_csid0":0 [ENABLED]
-> "msm_csid1":0 []
-> "msm_csid2":0 []
-> "msm_csid3":0 []

- entity 2: msm_csiphy1 (2 pads, 4 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none]
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none]
-> "msm_csid0":0 []
-> "msm_csid1":0 []
-> "msm_csid2":0 []
-> "msm_csid3":0 []

- entity 3: msm_csiphy2 (2 pads, 4 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev2
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none]
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none]
-> "msm_csid0":0 []
-> "msm_csid1":0 []
-> "msm_csid2":0 []
-> "msm_csid3":0 []

- entity 4: msm_csid0 (2 pads, 5 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev3
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none]
<- "msm_csiphy0":1 [ENABLED]
<- "msm_csiphy1":1 []
<- "msm_csiphy2":1 []
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none]
-> "msm_ispif0":0 [ENABLED]
-> "msm_ispif1":0 []

- entity 5: msm_csid1 (2 pads, 5 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev4
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none]
<- "msm_csiphy0":1 []
<- "msm_csiphy1":1 []
<- "msm_csiphy2":1 []
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none]
-> "msm_ispif0":0 []
-> "msm_ispif1":0 []

- entity 6: msm_csid2 (2 pads, 5 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev5
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none]
<- "msm_csiphy0":1 []
<- "msm_csiphy1":1 []
<- "msm_csiphy2":1 []
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none]
-> "msm_ispif0":0 []
-> "msm_ispif1":0 []

- entity 7: msm_csid3 (2 pads, 5 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev6
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none]
<- "msm_csiphy0":1 []
<- "msm_csiphy1":1 []
<- "msm_csiphy2":1 []
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none]
-> "msm_ispif0":0 []
-> "msm_ispif1":0 []

- entity 8: msm_ispif0 (2 pads, 8 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev7
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none]
<- "msm_csid0":1 [ENABLED]
<- "msm_csid1":1 []
<- "msm_csid2":1 []
<- "msm_csid3":1 []
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none]
-> "msm_vfe0_rdi0":0 []
-> "msm_vfe0_rdi1":0 []
-> "msm_vfe0_rdi2":0 []
-> "msm_vfe0_pix":0 [ENABLED]

- entity 9: msm_ispif1 (2 pads, 8 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev8
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none]
<- "msm_csid0":1 []
<- "msm_csid1":1 []
<- "msm_csid2":1 []
<- "msm_csid3":1 []
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none]
-> "msm_vfe0_rdi0":0 []
-> "msm_vfe0_rdi1":0 []
-> "msm_vfe0_rdi2":0 []
-> "msm_vfe0_pix":0 []

- entity 10: msm_vfe0_rdi0 (2 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev9
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none]
<- "msm_ispif0":1 []
<- "msm_ispif1":1 []
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none]
-> "msm_vfe0_video0":0 [ENABLED,IMMUTABLE]

- entity 11: msm_vfe0_video0 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "msm_vfe0_rdi0":1 [ENABLED,IMMUTABLE]

- entity 12: msm_vfe0_rdi1 (2 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev10
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none]
<- "msm_ispif0":1 []
<- "msm_ispif1":1 []
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none]
-> "msm_vfe0_video1":0 [ENABLED,IMMUTABLE]

- entity 13: msm_vfe0_video1 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video1
pad0: Sink
<- "msm_vfe0_rdi1":1 [ENABLED,IMMUTABLE]

- entity 14: msm_vfe0_rdi2 (2 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev11
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none]
<- "msm_ispif0":1 []
<- "msm_ispif1":1 []
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none]
-> "msm_vfe0_video2":0 [ENABLED,IMMUTABLE]

- entity 15: msm_vfe0_video2 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video2
pad0: Sink
<- "msm_vfe0_rdi2":1 [ENABLED,IMMUTABLE]

- entity 16: msm_vfe0_pix (2 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev12
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none]
<- "msm_ispif0":1 [ENABLED]
<- "msm_ispif1":1 []
pad1: Source
[fmt:UYVY8_1_5X8/1920x1080 field:none]
-> "msm_vfe0_video3":0 [ENABLED,IMMUTABLE]

- entity 17: msm_vfe0_video3 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video3
pad0: Sink
<- "msm_vfe0_pix":1 [ENABLED,IMMUTABLE]

- entity 18: ov5640 12-0078 (1 pad, 1 link)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev13
pad0: Source
[fmt:UYVY8_2X8/1920x1080 field:none
crop:(0,0)/1920x1080]
-> "msm_csiphy0":0 [ENABLED,IMMUTABLE]
tamo2
 
Posts: 27
Joined: Tue Jun 13, 2017 4:39 pm

by ashwin » Wed Mar 07, 2018 9:54 pm

Hi Tamo,

Our existing linux release on IFC6601 only supports preview via the camera. Capture is still not supported.

NV12 format has not been validated on our releases yet.

Perhaps you could try different configurations from the following link for DB410C with OV5640.

https://github.com/D3Engineering/410c_c ... User-Guide

Best Regards,
Ashwin
ashwin
 
Posts: 44
Joined: Wed Jul 01, 2015 10:07 pm

by Guenter » Wed Mar 21, 2018 1:08 am

Hallo,
I am trying to do the same but up to now without any success. I did a driver compare against 410 processor. It seems to me that somebody removes the support of NV12 in the driver.
The NV12 output should be available at device /dev/video3. This device did not has the capability to support V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE which is necessary (for my understanding) to support NV12.


Best regards,
Guenter
Guenter
 
Posts: 1
Joined: Mon Mar 19, 2018 1:27 am


Return to INFORCE 6601™ DEVELOPMENT KIT

cron

Contact Us.