4418上camera 获取视频的media pipeline该如何设置?
时间:10-02
整理:3721RD
点击:
大家如果有4418的camera 捕获图像的demo,能给我共享一下么? 669442656@qq.com
我现在是用4418接收镁光asx340sensor的VGA的图像
我调用media-crtl -p
:
Media controller API version 0.0.0
Media device information
------------------------
driver nxp-v4l2
model nxp-v4l2.0
serial
bus info
hw revision 0x0
driver version 0.0.0
Device topology
- entity 1: NXP VIN CLIPPER0 (3 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "ASX340 0-0048":0 []
pad1: Source
[fmt:unknown/0x0
crop:(0,0)/0x0]
-> "VIDEO CLIPPER0":0 []
pad2: Source
[fmt:unknown/0x0
crop:(0,0)/0x0]
-> "NXP DECIMATOR0":0 []
- entity 2: VIDEO CLIPPER0 (2 pads, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "NXP VIN CLIPPER0":1 []
pad1: Source
- entity 3: NXP DECIMATOR0 (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "NXP VIN CLIPPER0":2 []
pad1: Source
[fmt:unknown/0x0
crop:(0,0)/0x0]
-> "VIDEO DECIMATOR0":0 []
- entity 4: VIDEO DECIMATOR0 (2 pads, 1 link)
type Node subtype V4L flags 0
device node name /dev/video1
pad0: Sink
<- "NXP DECIMATOR0":1 []
pad1: Source
- entity 5: ASX340 0-0048 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev2
pad0: Source
-> "NXP VIN CLIPPER0":0 []
- entity 6: NXP SCALER (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev3
pad0: Sink
[fmt:unknown/0x0]
<- "VIDEO SCALER":1 []
pad1: Source
[fmt:unknown/0x0]
-> "VIDEO SCALER":0 []
- entity 7: VIDEO SCALER (2 pads, 2 links)
type Node subtype V4L flags 0
device node name /dev/video2
pad0: Sink
<- "NXP SCALER":1 []
pad1: Source
-> "NXP SCALER":0 []
- entity 8: NXP MLC0 (3 pads, 4 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev4
pad0: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "VIDEO MLC RGB0":1 []
pad1: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "VIDEO MLC VID0":1 []
pad2: Source
-> "NXP RESC0":0 []
-> "NXP HDMI":0 []
- entity 9: VIDEO MLC RGB0 (2 pads, 1 link)
type Node subtype V4L flags 0
device node name /dev/video3
pad0: Sink
pad1: Source
-> "NXP MLC0":0 []
- entity 10: VIDEO MLC VID0 (2 pads, 1 link)
type Node subtype V4L flags 0
device node name /dev/video4
pad0: Sink
pad1: Source
-> "NXP MLC0":1 []
- entity 11: NXP MLC1 (3 pads, 4 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev5
pad0: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "VIDEO MLC RGB1":1 []
pad1: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "VIDEO MLC VID1":1 []
pad2: Source
-> "NXP RESC0":0 []
-> "NXP HDMI":0 []
- entity 12: VIDEO MLC RGB1 (2 pads, 1 link)
type Node subtype V4L flags 0
device node name /dev/video5
pad0: Sink
pad1: Source
-> "NXP MLC1":0 []
- entity 13: VIDEO MLC VID1 (2 pads, 1 link)
type Node subtype V4L flags 0
device node name /dev/video6
pad0: Sink
pad1: Source
-> "NXP MLC1":1 []
- entity 14: NXP RESC0 (2 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev6
pad0: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "NXP MLC0":2 []
<- "NXP MLC1":2 []
pad1: Source
[fmt:unknown/0x0
crop:(0,0)/0x0]
-> "NXP HDMI":0 []
- entity 15: NXP HDMI (1 pad, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev7
pad0: Sink
<- "NXP MLC0":2 []
<- "NXP MLC1":2 []
<- "NXP RESC0":1 []
---------------
调用media-ctl -r -l '"ASX340 0-0048":0->"NXP VIN CLIPPER0":0[1],"NXP VIN CLIPPER0":1->"VIDEO CLIPPER0":0[1]' 建立一个link
然后用IDEO CLIPPER0对应的video0来捕获图像,
但是用yavta 测试的时候却提示
Device /dev/video0 opened.
Error opening device /dev/video0: neither video capture nor video output supported.
是我哪里有设置不对的地方么? 求指点!
我现在是用4418接收镁光asx340sensor的VGA的图像
我调用media-crtl -p
:
Media controller API version 0.0.0
Media device information
------------------------
driver nxp-v4l2
model nxp-v4l2.0
serial
bus info
hw revision 0x0
driver version 0.0.0
Device topology
- entity 1: NXP VIN CLIPPER0 (3 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "ASX340 0-0048":0 []
pad1: Source
[fmt:unknown/0x0
crop:(0,0)/0x0]
-> "VIDEO CLIPPER0":0 []
pad2: Source
[fmt:unknown/0x0
crop:(0,0)/0x0]
-> "NXP DECIMATOR0":0 []
- entity 2: VIDEO CLIPPER0 (2 pads, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "NXP VIN CLIPPER0":1 []
pad1: Source
- entity 3: NXP DECIMATOR0 (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "NXP VIN CLIPPER0":2 []
pad1: Source
[fmt:unknown/0x0
crop:(0,0)/0x0]
-> "VIDEO DECIMATOR0":0 []
- entity 4: VIDEO DECIMATOR0 (2 pads, 1 link)
type Node subtype V4L flags 0
device node name /dev/video1
pad0: Sink
<- "NXP DECIMATOR0":1 []
pad1: Source
- entity 5: ASX340 0-0048 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev2
pad0: Source
-> "NXP VIN CLIPPER0":0 []
- entity 6: NXP SCALER (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev3
pad0: Sink
[fmt:unknown/0x0]
<- "VIDEO SCALER":1 []
pad1: Source
[fmt:unknown/0x0]
-> "VIDEO SCALER":0 []
- entity 7: VIDEO SCALER (2 pads, 2 links)
type Node subtype V4L flags 0
device node name /dev/video2
pad0: Sink
<- "NXP SCALER":1 []
pad1: Source
-> "NXP SCALER":0 []
- entity 8: NXP MLC0 (3 pads, 4 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev4
pad0: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "VIDEO MLC RGB0":1 []
pad1: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "VIDEO MLC VID0":1 []
pad2: Source
-> "NXP RESC0":0 []
-> "NXP HDMI":0 []
- entity 9: VIDEO MLC RGB0 (2 pads, 1 link)
type Node subtype V4L flags 0
device node name /dev/video3
pad0: Sink
pad1: Source
-> "NXP MLC0":0 []
- entity 10: VIDEO MLC VID0 (2 pads, 1 link)
type Node subtype V4L flags 0
device node name /dev/video4
pad0: Sink
pad1: Source
-> "NXP MLC0":1 []
- entity 11: NXP MLC1 (3 pads, 4 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev5
pad0: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "VIDEO MLC RGB1":1 []
pad1: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "VIDEO MLC VID1":1 []
pad2: Source
-> "NXP RESC0":0 []
-> "NXP HDMI":0 []
- entity 12: VIDEO MLC RGB1 (2 pads, 1 link)
type Node subtype V4L flags 0
device node name /dev/video5
pad0: Sink
pad1: Source
-> "NXP MLC1":0 []
- entity 13: VIDEO MLC VID1 (2 pads, 1 link)
type Node subtype V4L flags 0
device node name /dev/video6
pad0: Sink
pad1: Source
-> "NXP MLC1":1 []
- entity 14: NXP RESC0 (2 pads, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev6
pad0: Sink
[fmt:unknown/0x0
crop:(0,0)/0x0]
<- "NXP MLC0":2 []
<- "NXP MLC1":2 []
pad1: Source
[fmt:unknown/0x0
crop:(0,0)/0x0]
-> "NXP HDMI":0 []
- entity 15: NXP HDMI (1 pad, 3 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev7
pad0: Sink
<- "NXP MLC0":2 []
<- "NXP MLC1":2 []
<- "NXP RESC0":1 []
---------------
调用media-ctl -r -l '"ASX340 0-0048":0->"NXP VIN CLIPPER0":0[1],"NXP VIN CLIPPER0":1->"VIDEO CLIPPER0":0[1]' 建立一个link
然后用IDEO CLIPPER0对应的video0来捕获图像,
但是用yavta 测试的时候却提示
Device /dev/video0 opened.
Error opening device /dev/video0: neither video capture nor video output supported.
是我哪里有设置不对的地方么? 求指点!
1111111113333333333333333333333333333333333333333