Hello,
I am trying to run video from aptina AP1302 ISP. I configured the AP1302 and have MIPI on it’s output,
but i can’t run the video. I used linux kernel Linaro-18.01. I used Gstreamer and configure the pipeline:
# 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]'
# media-ctl -d /dev/media0 -V '"ap1302 0-003c":0[fmt:UYVY8_2X8/1280x960 field:none],"msm_csiphy0":0[fmt:UYVY8_2X8/1280x960 field:none],"msm_csid0":0[fmt:UYVY8_2X8/1280x960 field:none],"msm_ispif0":0[fmt:UYVY8_2X8/1280x960 field:none],"msm_vfe0_pix":0[fmt:UYVY8_2X8/1280x960 field:none],"msm_vfe0_pix":1[fmt:UYVY8_1_5X8/1280x960 field:none]'
And show a live preview from the camera:
DISPLAY=:0 gst-launch-1.0 -v -e v4l2src device=/dev/video3 ! glimagesink
But the output is this:
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
Additional debug info:
gstv4l2src.c(658): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Buffer pool activation failed
EOS on shutdown enabled -- waiting for EOS after Error
Waiting for EOS...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
linaro@linaro-alip:~$ media-ctl -p
Media controller API version 4.14.15
Media device information
------------------------
driver qcom-camss
model Qualcomm Camera Subsystem
serial
bus info
hw revision 0x0
driver version 4.14.15
Device topology
- entity 1: msm_csiphy0 (2 pads, 3 links)
type Node subtype V4L flags 0
device node name /dev/v4l-subdev0
pad0: Sink
<- "ap1302 0-003c":0 [ENABLED,IMMUTABLE]
pad1: Source
-> "msm_csid0":0 [ENABLED]
-> "msm_csid1":0 []
- entity 4: msm_csiphy1 (2 pads, 2 links)
type Node subtype V4L flags 0
device node name /dev/v4l-subdev1
pad0: Sink
pad1: Source
-> "msm_csid0":0 []
-> "msm_csid1":0 []
- entity 7: msm_csid0 (2 pads, 4 links)
type Node subtype V4L flags 0
device node name /dev/v4l-subdev2
pad0: Sink
<- "msm_csiphy0":1 [ENABLED]
<- "msm_csiphy1":1 []
pad1: Source
-> "msm_ispif0":0 [ENABLED]
-> "msm_ispif1":0 []
- entity 10: msm_csid1 (2 pads, 4 links)
type Node subtype V4L flags 0
device node name /dev/v4l-subdev3
pad0: Sink
<- "msm_csiphy0":1 []
<- "msm_csiphy1":1 []
pad1: Source
-> "msm_ispif0":0 []
-> "msm_ispif1":0 []
- entity 13: msm_ispif0 (2 pads, 6 links)
type Node subtype V4L flags 0
device node name /dev/v4l-subdev4
pad0: Sink
<- "msm_csid0":1 [ENABLED]
<- "msm_csid1":1 []
pad1: Source
-> "msm_vfe0_rdi0":0 []
-> "msm_vfe0_rdi1":0 []
-> "msm_vfe0_rdi2":0 []
-> "msm_vfe0_pix":0 [ENABLED]
- entity 16: msm_ispif1 (2 pads, 6 links)
type Node subtype V4L flags 0
device node name /dev/v4l-subdev5
pad0: Sink
<- "msm_csid0":1 []
<- "msm_csid1":1 []
pad1: Source
-> "msm_vfe0_rdi0":0 []
-> "msm_vfe0_rdi1":0 []
-> "msm_vfe0_rdi2":0 []
-> "msm_vfe0_pix":0 []
- entity 19: msm_vfe0_rdi0 (2 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev6
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
<- "msm_ispif0":1 []
<- "msm_ispif1":1 []
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
-> "msm_vfe0_video0":0 [ENABLED,IMMUTABLE]
- entity 22: 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 28: msm_vfe0_rdi1 (2 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev7
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
<- "msm_ispif0":1 []
<- "msm_ispif1":1 []
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
-> "msm_vfe0_video1":0 [ENABLED,IMMUTABLE]
- entity 31: 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 37: msm_vfe0_rdi2 (2 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev8
pad0: Sink
[fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
<- "msm_ispif0":1 []
<- "msm_ispif1":1 []
pad1: Source
[fmt:UYVY8_2X8/1920x1080 field:none colorspace:srgb]
-> "msm_vfe0_video2":0 [ENABLED,IMMUTABLE]
- entity 40: 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 46: msm_vfe0_pix (2 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev9
pad0: Sink
[fmt:UYVY8_2X8/1280x960 field:none colorspace:srgb
compose.bounds:(0,0)/1280x960
compose:(0,0)/1280x960]
<- "msm_ispif0":1 [ENABLED]
<- "msm_ispif1":1 []
pad1: Source
[fmt:UYVY8_1_5X8/1280x960 field:none colorspace:srgb
crop.bounds:(0,0)/1280x960
crop:(0,0)/1280x960]
-> "msm_vfe0_video3":0 [ENABLED,IMMUTABLE]
- entity 49: 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 87: ap1302 0-003c (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev10
pad0: Source
[fmt:UYVY8_2X8/1280x960 field:none colorspace:srgb]
-> "msm_csiphy0":0 [ENABLED,IMMUTABLE]
Do you have idea where is the problem ?
Thank you!