integrating ov8865 camera with imx8mm

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

integrating ov8865 camera with imx8mm

826 次查看
deepakbeniya
Contributor III

Hi

I have integretd ov8865 camera module with imx8mm .
kernel is 5.4.70
I have added RAW10 format by seeing this link
https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/157...

I can abel to see the camera formats but while capturing a image through gst command and python script I am facing error like "could not link v4l2src0 to bayer2rgb0"


what could be the possibel error?

root@phyboard-polis-imx8mm-4:~# i2cdetect -y 3
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- 0c -- -- --
10: -- -- -- 13 -- -- -- -- -- -- -- -- -- -- -- --
20: -- 21 -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- UU -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@phyboard-polis-imx8mm-4:~#
root@phyboard-polis-imx8mm-4:~#


root@phyboard-polis-imx8mm-4:~#
root@phyboard-polis-imx8mm-4:~# i2cdump -y -f 3 0x36
No size specified (using byte-data access)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
30: 00 00 00 00 00 00 00 c0 00 00 00 00 00 00 00 00 .......?........
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
50: 00 00 00 00 00 00 00 02 08 00 00 00 00 00 00 00 .......??.......
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
root@phyboard-polis-imx8mm-4:~#

 

root@phyboard-polis-imx8mm-4:~# v4l2-ctl -d /dev/video0 --list-formats-ext
[ 137.107052] ov8865 inside ov8865_enum_mbus_code
[ 138.536856] ov8865 inside ov8865_enum_mbus_code
[ 138.541496] mx6s_captuere.c: mbus_code 3007
[ 138.550350] ov8865 inside ov8865_enum_frame_interval
[ 138.550381] ov8865 inside ov8865_enum_frame_interval
[ 138.555391] ov8865 inside ov8865_enum_frame_interval
[ 138.560394] ov8865 inside ov8865_enum_frame_interval
[ 138.565423] ov8865 inside ov8865_enum_frame_interval
ioctl: VIDIOC_ENUM_FMT
Type: Vi[ 138.570422] ov8865 inside ov8865_enum_frame_interval
deo Capture

[0]: 'BG10' (10-b[ 138.575426] ov8865 inside ov8865_enum_frame_interval
[ 138.583251] ov8865 inside ov8865_enum_frame_interval
it Bayer BGBG/GRGR)
Size: Discrete 3264x2448
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 3264x1836
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1632x1224
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 800x600
Interval: Discrete 0.011s (90.000 fps)

root@phyboard-polis-imx8mm-4:~# dmesg |grep mipi*
[ 1.568073] ov8865 mxc_mipi_csi.c inside mipi_csis_probe
[ 1.568095] mxc_mipi-csi 32e30000.mipi_csi: 32e30000.mipi_csi supply mipi-phy not found, using dummy regulator
[ 1.583599] mxc_mipi-csi 32e30000.mipi_csi: mipi csi v4l2 device registered
[ 1.590573] CSI: Registered sensor subdevice: mxc_mipi-csi.0
[ 1.596252] mxc_mipi-csi 32e30000.mipi_csi: lanes: 4, hs_settle: 13, clk_settle: 2, wclk: 1, freq: 24000000
[ 2.498323] ov8865 inside ov8865_state_mipi_configure
[ 3.736173] ov8865 inside ov8865_mipi_configure
[ 3.888874] ov8865 inside ov8865_state_mipi_configure
[ 3.894271] mxc_mipi-csi 32e30000.mipi_csi: Registered sensor subdevice: ov8865 3-0036
[ 3.902214] mxc_mipi-csi 32e30000.mipi_csi: complete callback for subdevice called
[ 35.804797] mipi_1p0: disabling
root@phyboard-polis-imx8mm-4:~#
root@phyboard-polis-imx8mm-4:~#
root@phyboard-polis-imx8mm-4:~# dmesg |grep ov8865*
[ 1.568073] ov8865 mxc_mipi_csi.c inside mipi_csis_probe
[ 2.463139] ov8865 3-0036: 3-0036 supply dvdd not found, using dummy regulator
[ 2.470419] ov8865 3-0036: 3-0036 supply dovdd not found, using dummy regulator
[ 2.477772] ov8865 3-0036: 3-0036 supply avdd not found, using dummy regulator
[ 2.485032] ov8865 inside ov8865_ctrls_init
[ 2.489336] ov8865 inside ov8865_state_init
[ 2.493613] ov8865 inside ov8865_state_configure
[ 2.498323] ov8865 inside ov8865_state_mipi_configure
[ 2.503472] ov8865 inside ov8865_sensor_init
[ 2.510269] ov8865 inside ov8865_write i2c Register is 0x103 ,value is 0x01
[ 2.510271] ov8865 inside ov8865_sw_standby before if condition standby = 1 , value = 0
[ 2.517254] ov8865 inside ov8865_sw_standby after if condition standby = 1 , value = 0
[ 2.526772] ov8865 inside ov8865_write i2c Register is 0x100 ,value is 0x00
[ 2.534699] ov8865 inside ov8865_chip_id_check
[ 2.548199] ov8865 chip_id_check for i = 0 , value is 0x0
[ 2.554560] ov8865 chip_id_check for i = 1 , value is 0x88
[ 2.562816] ov8865 chip_id_check for i = 2 , value is 0x65
[ 2.569802] ov8865 inside ov8865_write i2c Register is 0x3604 ,value is 0x04
[ 2.571298] ov8865 inside ov8865_write i2c Register is 0x3602 ,value is 0x30
[ 2.579843] ov8865 inside ov8865_write i2c Register is 0x3605 ,value is 0x00
[ 2.588388] ov8865 inside ov8865_write i2c Register is 0x3607 ,value is 0x20
[ 2.597543] ov8865 inside ov8865_write i2c Register is 0x3608 ,value is 0x11
[ 2.606516] ov8865 inside ov8865_write i2c Register is 0x3609 ,value is 0x68
[ 2.615091] ov8865 inside ov8865_write i2c Register is 0x360a ,value is 0x40
[ 2.623637] ov8865 inside ov8865_write i2c Register is 0x360c ,value is 0xdd
[ 2.632181] ov8865 inside ov8865_write i2c Register is 0x360e ,value is 0x0c
[ 2.641030] ov8865 inside ov8865_write i2c Register is 0x3610 ,value is 0x07
[ 2.650006] ov8865 inside ov8865_write i2c Register is 0x3612 ,value is 0x86
[ 2.657969] ov8865 inside ov8865_write i2c Register is 0x3613 ,value is 0x58
[ 2.666850] ov8865 inside ov8865_write i2c Register is 0x3614 ,value is 0x28
[ 2.676648] ov8865 inside ov8865_write i2c Register is 0x3617 ,value is 0x40
[ 2.686443] ov8865 inside ov8865_write i2c Register is 0x3618 ,value is 0x5a
[ 2.695294] ov8865 inside ov8865_write i2c Register is 0x3619 ,value is 0x9b
[ 2.703655] ov8865 inside ov8865_write i2c Register is 0x361c ,value is 0x00
[ 2.712201] ov8865 inside ov8865_write i2c Register is 0x361d ,value is 0x60
[ 2.721050] ov8865 inside ov8865_write i2c Register is 0x3631 ,value is 0x60
[ 2.730543] ov8865 inside ov8865_write i2c Register is 0x3633 ,value is 0x10
[ 2.738904] ov8865 inside ov8865_write i2c Register is 0x3634 ,value is 0x10
[ 2.747449] ov8865 inside ov8865_write i2c Register is 0x3635 ,value is 0x10
[ 2.755994] ov8865 inside ov8865_write i2c Register is 0x3636 ,value is 0x10
[ 2.763623] ov8865 inside ov8865_write i2c Register is 0x3638 ,value is 0xff
[ 2.772199] ov8865 inside ov8865_write i2c Register is 0x3641 ,value is 0x55
[ 2.781080] ov8865 inside ov8865_write i2c Register is 0x3646 ,value is 0x86
[ 2.790845] ov8865 inside ov8865_write i2c Register is 0x3647 ,value is 0x27
[ 2.799421] ov8865 inside ov8865_write i2c Register is 0x364a ,value is 0x1b
[ 2.807783] ov8865 inside ov8865_write i2c Register is 0x3700 ,value is 0x24
[ 2.816328] ov8865 inside ov8865_write i2c Register is 0x3701 ,value is 0x0c
[ 2.825483] ov8865 inside ov8865_write i2c Register is 0x3702 ,value is 0x28
[ 2.834640] ov8865 inside ov8865_write i2c Register is 0x3703 ,value is 0x19
[ 2.843001] ov8865 inside ov8865_write i2c Register is 0x3704 ,value is 0x14
[ 2.851546] ov8865 inside ov8865_write i2c Register is 0x3705 ,value is 0x00
[ 2.860091] ov8865 inside ov8865_write i2c Register is 0x3706 ,value is 0x38
[ 2.867721] ov8865 inside ov8865_write i2c Register is 0x3707 ,value is 0x04
[ 2.876296] ov8865 inside ov8865_write i2c Register is 0x3708 ,value is 0x24
[ 2.885452] ov8865 inside ov8865_write i2c Register is 0x3709 ,value is 0x40
[ 2.894609] ov8865 inside ov8865_write i2c Register is 0x370a ,value is 0x00
[ 2.903183] ov8865 inside ov8865_write i2c Register is 0x370b ,value is 0xb8
[ 2.911545] ov8865 inside ov8865_write i2c Register is 0x370c ,value is 0x04
[ 2.920090] ov8865 inside ov8865_write i2c Register is 0x3718 ,value is 0x12
[ 2.928940] ov8865 inside ov8865_write i2c Register is 0x3719 ,value is 0x31
[ 2.938433] ov8865 inside ov8865_write i2c Register is 0x3712 ,value is 0x42
[ 2.946794] ov8865 inside ov8865_write i2c Register is 0x3714 ,value is 0x12
[ 2.955338] ov8865 inside ov8865_write i2c Register is 0x371e ,value is 0x19
[ 2.963884] ov8865 inside ov8865_write i2c Register is 0x371f ,value is 0x40
[ 2.971513] ov8865 inside ov8865_write i2c Register is 0x3720 ,value is 0x05
[ 2.980089] ov8865 inside ov8865_write i2c Register is 0x3721 ,value is 0x05
[ 2.988939] ov8865 inside ov8865_write i2c Register is 0x3724 ,value is 0x02
[ 2.998401] ov8865 inside ov8865_write i2c Register is 0x3725 ,value is 0x02
[ 3.007281] ov8865 inside ov8865_write i2c Register is 0x3726 ,value is 0x06
[ 3.015643] ov8865 inside ov8865_write i2c Register is 0x3728 ,value is 0x05
[ 3.024187] ov8865 inside ov8865_write i2c Register is 0x3729 ,value is 0x02
[ 3.033038] ov8865 inside ov8865_write i2c Register is 0x372a ,value is 0x03
[ 3.043877] ov8865 inside ov8865_write i2c Register is 0x372b ,value is 0x53
[ 3.047617] ov8865 inside ov8865_write i2c Register is 0x372c ,value is 0xa3
[ 3.057965] ov8865 inside ov8865_write i2c Register is 0x372d ,value is 0x53
[ 3.067361] ov8865 inside ov8865_write i2c Register is 0x372e ,value is 0x06
[ 3.075217] ov8865 inside ov8865_write i2c Register is 0x372f ,value is 0x10
[ 3.085187] ov8865 inside ov8865_write i2c Register is 0x3730 ,value is 0x01
[ 3.096357] ov8865 inside ov8865_write i2c Register is 0x3731 ,value is 0x06
[ 3.107035] ov8865 inside ov8865_write i2c Register is 0x3732 ,value is 0x14
[ 3.116247] ov8865 inside ov8865_write i2c Register is 0x3733 ,value is 0x10
[ 3.126997] ov8865 inside ov8865_write i2c Register is 0x3734 ,value is 0x40
[ 3.136392] ov8865 inside ov8865_write i2c Register is 0x3736 ,value is 0x20
[ 3.147139] ov8865 inside ov8865_write i2c Register is 0x373a ,value is 0x02
[ 3.156351] ov8865 inside ov8865_write i2c Register is 0x373b ,value is 0x0c
[ 3.166638] ov8865 inside ov8865_write i2c Register is 0x373c ,value is 0x0a
[ 3.175544] ov8865 inside ov8865_write i2c Register is 0x373e ,value is 0x03
[ 3.185462] ov8865 inside ov8865_write i2c Register is 0x3755 ,value is 0x40
[ 3.196642] ov8865 inside ov8865_write i2c Register is 0x3758 ,value is 0x00
[ 3.206890] ov8865 inside ov8865_write i2c Register is 0x3759 ,value is 0x4c
[ 3.216287] ov8865 inside ov8865_write i2c Register is 0x375a ,value is 0x06
[ 3.225506] ov8865 inside ov8865_write i2c Register is 0x375b ,value is 0x13
[ 3.234906] ov8865 inside ov8865_write i2c Register is 0x375c ,value is 0x40
[ 3.244305] ov8865 inside ov8865_write i2c Register is 0x375d ,value is 0x02
[ 3.254590] ov8865 inside ov8865_write i2c Register is 0x375e ,value is 0x00
[ 3.263803] ov8865 inside ov8865_write i2c Register is 0x375f ,value is 0x14
[ 3.273634] ov8865 inside ov8865_write i2c Register is 0x3767 ,value is 0x1c
[ 3.282002] ov8865 inside ov8865_write i2c Register is 0x3768 ,value is 0x04
[ 3.292438] ov8865 inside ov8865_write i2c Register is 0x3769 ,value is 0x20
[ 3.303393] ov8865 inside ov8865_write i2c Register is 0x376c ,value is 0xc0
[ 3.314562] ov8865 inside ov8865_write i2c Register is 0x376d ,value is 0xc0
[ 3.323984] ov8865 inside ov8865_write i2c Register is 0x376a ,value is 0x08
[ 3.334276] ov8865 inside ov8865_write i2c Register is 0x3761 ,value is 0x00
[ 3.344312] ov8865 inside ov8865_write i2c Register is 0x3762 ,value is 0x00
[ 3.355090] ov8865 inside ov8865_write i2c Register is 0x3763 ,value is 0x00
[ 3.365009] ov8865 inside ov8865_write i2c Register is 0x3766 ,value is 0xff
[ 3.375258] ov8865 inside ov8865_write i2c Register is 0x376b ,value is 0x42
[ 3.384474] ov8865 inside ov8865_write i2c Register is 0x3772 ,value is 0x23
[ 3.394760] ov8865 inside ov8865_write i2c Register is 0x3773 ,value is 0x02
[ 3.405935] ov8865 inside ov8865_write i2c Register is 0x3774 ,value is 0x16
[ 3.417104] ov8865 inside ov8865_write i2c Register is 0x3775 ,value is 0x12
[ 3.427139] ov8865 inside ov8865_write i2c Register is 0x3776 ,value is 0x08
[ 3.437031] ov8865 inside ov8865_write i2c Register is 0x37a0 ,value is 0x44
[ 3.447708] ov8865 inside ov8865_write i2c Register is 0x37a1 ,value is 0x3d
[ 3.458027] ov8865 inside ov8865_write i2c Register is 0x37a2 ,value is 0x3d
[ 3.467636] ov8865 inside ov8865_write i2c Register is 0x37a3 ,value is 0x01
[ 3.477985] ov8865 inside ov8865_write i2c Register is 0x37a4 ,value is 0x00
[ 3.487381] ov8865 inside ov8865_write i2c Register is 0x37a5 ,value is 0x08
[ 3.497288] ov8865 inside ov8865_write i2c Register is 0x37a6 ,value is 0x00
[ 3.508445] ov8865 inside ov8865_write i2c Register is 0x37a7 ,value is 0x44
[ 3.519121] ov8865 inside ov8865_write i2c Register is 0x37a8 ,value is 0x58
[ 3.529013] ov8865 inside ov8865_write i2c Register is 0x37a9 ,value is 0x58
[ 3.539478] ov8865 inside ov8865_write i2c Register is 0x3760 ,value is 0x00
[ 3.549369] ov8865 inside ov8865_write i2c Register is 0x376f ,value is 0x01
[ 3.560046] ov8865 inside ov8865_write i2c Register is 0x37aa ,value is 0x44
[ 3.570395] ov8865 inside ov8865_write i2c Register is 0x37ab ,value is 0x2e
[ 3.580005] ov8865 inside ov8865_write i2c Register is 0x37ac ,value is 0x2e
[ 3.589404] ov8865 inside ov8865_write i2c Register is 0x37ad ,value is 0x33
[ 3.597522] ov8865 inside ov8865_write i2c Register is 0x37ae ,value is 0x0d
[ 3.607594] ov8865 inside ov8865_write i2c Register is 0x37af ,value is 0x0d
[ 3.617352] ov8865 inside ov8865_write i2c Register is 0x37b0 ,value is 0x00
[ 3.628504] ov8865 inside ov8865_write i2c Register is 0x37b1 ,value is 0x00
[ 3.638749] ov8865 inside ov8865_write i2c Register is 0x37b2 ,value is 0x00
[ 3.648151] ov8865 inside ov8865_write i2c Register is 0x37b3 ,value is 0x42
[ 3.658288] ov8865 inside ov8865_write i2c Register is 0x37b4 ,value is 0x42
[ 3.668111] ov8865 inside ov8865_write i2c Register is 0x37b5 ,value is 0x33
[ 3.677511] ov8865 inside ov8865_write i2c Register is 0x37b6 ,value is 0x00
[ 3.686910] ov8865 inside ov8865_write i2c Register is 0x37b7 ,value is 0x00
[ 3.696126] ov8865 inside ov8865_write i2c Register is 0x37b8 ,value is 0x00
[ 3.703516] ov8865 inside ov8865_write i2c Register is 0x37b9 ,value is 0xff
[ 3.713405] ov8865 inside ov8865_write i2c Register is 0x4503 ,value is 0x10
[ 3.720479] ov8865 inside ov8865_charge_pump_configure
[ 3.736167] ov8865 inside ov8865_write i2c Register is 0x3015 ,value is 0x01
[ 3.736173] ov8865 inside ov8865_mipi_configure
[ 3.751979] ov8865 inside ov8865_write i2c Register is 0x3018 ,value is 0x72
[ 3.755148] ov8865 inside ov8865_write i2c Register is 0x3022 ,value is 0x01
[ 3.765041] ov8865 inside ov8865_write i2c Register is 0x4850 ,value is 0x10
[ 3.772109] ov8865 lanes_count >= 2
[ 3.786005] ov8865 inside ov8865_write i2c Register is 0x4851 ,value is 0x32
[ 3.786007] ov8865 lanes_count >= 4
[ 3.801990] ov8865 inside ov8865_write i2c Register is 0x3033 ,value is 0x24
[ 3.802316] ov8865 inside ov8865_write i2c Register is 0x4837 ,value is 0x16
[ 3.811759] ov8865 inside ov8865_write i2c Register is 0x5000 ,value is 0x16
[ 3.822110] ov8865 inside ov8865_write i2c Register is 0x5001 ,value is 0x01
[ 3.829180] ov8856 inside ov8865_black_level_configure
[ 3.845578] ov8865 inside ov8865_write i2c Register is 0x4000 ,value is 0xf1
[ 3.849668] ov8865 inside ov8865_write i2c Register is 0x400d ,value is 0x10
[ 3.859704] ov8865 inside ov8865_write i2c Register is 0x401f ,value is 0x00
[ 3.870023] ov8865 inside ov8865_write i2c Register is 0x4034 ,value is 0x3f
[ 3.877096] ov8865 inside ov8865_state_configure
[ 3.888874] ov8865 inside ov8865_state_mipi_configure
[ 3.894271] mxc_mipi-csi 32e30000.mipi_csi: Registered sensor subdevice: ov8865 3-0036
[ 3.904175] printk ov8865 Camera is found


root@phyboard-polis-imx8mm-4:~#
0" ! bayer2rgb ! pngenc ! filesink location=test.pngch-1.0 v4l2src device=/dev/video0 num-buffers=100 ! "video/x-bayer,width=800,height=600,framerate=(fraction)90/1,format=(string)BG
0:00:00.000196875 1020 0xaaaad05f6600 INFO GST_INIT gst.c:586:init_pre: Initializing GStreamer Core Library version 1.18.5
0:00:00.000300250 1020 0xaaaad05f6600 INFO GST_INIT gst.c:587:init_pre: Using library installed in /usr/lib
0:00:00.000339250 1020 0xaaaad05f6600 INFO GST_INIT gst.c:605:init_pre: Linux phyboard-polis-imx8mm-4 5.4.70-00002-gfd896e76df49-dirty #171 SMP PREEMPT Tue Sep 17 18:4
0:00:00.000888000 1020 0xaaaad05f6600 INFO GST_INIT gstmessage.c:129:_priv_gst_message_initialize: init messages
0:00:00.002441125 1020 0xaaaad05f6600 INFO GST_INIT gstcontext.c:85:_priv_gst_context_initialize: init contexts
0:00:00.003026375 1020 0xaaaad05f6600 INFO GST_PLUGIN_LOADING gstplugin.c:325:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.003280250 1020 0xaaaad05f6600 INFO GST_PLUGIN_LOADING gstplugin.c:233:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.003321125 1020 0xaaaad05f6600 INFO GST_PLUGIN_LOADING gstplugin.c:235:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.003381625 1020 0xaaaad05f6600 INFO GST_REGISTRY gstregistry.c:1755:ensure_current_registry: reading registry cache: /root/.cache/gstreamer-1.0/registry.aarch64.bin
0:00:00.041416125 1020 0xaaaad05f6600 INFO GST_REGISTRY gstregistrybinary.c:666:priv_gst_registry_binary_read_cache: loaded /root/.cache/gstreamer-1.0/registry.aarch64.bis
0:00:00.041608375 1020 0xaaaad05f6600 INFO GST_REGISTRY gstregistry.c:1614:scan_and_update_registry: Validating plugins from registry cache: /root/.cache/gstreamer-1.0/ren
0:00:00.049314000 1020 0xaaaad05f6600 INFO GST_REGISTRY gstregistry.c:1713:scan_and_update_registry: Registry cache has not changed
0:00:00.049373500 1020 0xaaaad05f6600 INFO GST_REGISTRY gstregistry.c:1790:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.049398875 1020 0xaaaad05f6600 INFO GST_INIT gst.c:806:init_post: GLib runtime version: 2.66.7
0:00:00.049420750 1020 0xaaaad05f6600 INFO GST_INIT gst.c:808:init_post: GLib headers version: 2.66.7
0:00:00.049440875 1020 0xaaaad05f6600 INFO GST_INIT gst.c:810:init_post: initialized GStreamer successfully
0:00:00.049719875 1020 0xaaaad05f6600 INFO GST_PIPELINE gstparse.c:344:gst_parse_launch_full: parsing pipeline description 'v4l2src device=/dev/video0 num-buffers=100 ! v'
0:00:00.058030750 1020 0xaaaad05f6600 INFO GST_PLUGIN_LOADING gstplugin.c:915:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstvideo4linux2.so" load
0:00:00.058097500 1020 0xaaaad05f6600 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "v4l2src"
0:00:00.062421375 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstBaseSrc@0xaaaad0822210> adding pad 'src'
0:00:00.063278500 1020 0xaaaad05f6600 INFO GST_PLUGIN_LOADING gstplugin.c:915:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstbayer.so" loaded
0:00:00.063322750 1020 0xaaaad05f6600 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "bayer2rgb"
0:00:00.063571250 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstBaseTransform@0xaaaad0826220> adding pad 'sink'
0:00:00.063618500 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstBaseTransform@0xaaaad0826220> adding pad 'src'
0:00:00.064685375 1020 0xaaaad05f6600 INFO GST_PLUGIN_LOADING gstplugin.c:915:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstpng.so" loaded
0:00:00.417905125 1020 0xaaaad05f6600 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "pngenc"
0:00:00.418298625 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstVideoEncoder@0xaaaad081c840> adding pad 'sink'
0:00:00.418366000 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstVideoEncoder@0xaaaad081c840> adding pad 'src'
0:00:00.420189000 1020 0xaaaad05f6600 INFO GST_PLUGIN_LOADING gstplugin.c:915:_priv_gst_plugin_load_file_for_registry: plugin "/usr/lib/gstreamer-1.0/libgstcoreelements.so" load
0:00:00.420257500 1020 0xaaaad05f6600 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "filesink"
0:00:00.420625000 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstBaseSink@0xaaaad08302a0> adding pad 'sink'
0:00:00.420736625 1020 0xaaaad05f6600 INFO filesink gstfilesink.c:334:gst_file_sink_set_location:<filesink0> filename : test.png
0:00:00.420769500 1020 0xaaaad05f6600 INFO filesink gstfilesink.c:335:gst_file_sink_set_location:<filesink0> uri : file:///root/test.png
0:00:00.420818125 1020 0xaaaad05f6600 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "pipeline"
0:00:00.421102875 1020 0xaaaad05f6600 INFO GST_PIPELINE gst/parse/grammar.y:689:gst_parse_perform_link: linking some pad of GstV4l2Src named v4l2src0 to some pad of GstBa"
0:00:00.421144750 1020 0xaaaad05f6600 INFO GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "capsfilter"
0:00:00.421409000 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstBaseTransform@0xaaaad0836200> adding pad 'sink'
0:00:00.421474000 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstelement.c:752:gst_element_add_pad:<GstBaseTransform@0xaaaad0836200> adding pad 'src'
0:00:00.421525625 1020 0xaaaad05f6600 INFO GST_STATES gstbin.c:2115:gst_bin_get_state_func:<pipeline0> getting state
0:00:00.421584000 1020 0xaaaad05f6600 INFO GST_STATES gstelement.c:2769:gst_element_continue_state:<capsfilter0> completed state change to NULL
0:00:00.421627875 1020 0xaaaad05f6600 INFO GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event
0:00:00.421687375 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element v4l2src0:(any) to element capsfilter0:sink
0:00:00.421724250 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstelement.c:1009:gst_element_get_static_pad: found pad capsfilter0:sink
0:00:00.421760625 1020 0xaaaad05f6600 INFO GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: v4l2src0 and capsfilter0 in same bin, no need for ghost pads
0:00:00.775420625 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:2382:gst_pad_link_prepare: trying to link v4l2src0:src and capsfilter0:sink
0:00:00.775493500 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query:<capsfilter0:src> pad has no peer
0:00:00.775565875 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:2439:gst_pad_link_prepare: caps are incompatible
0:00:00.775607125 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:2532:gst_pad_link_full: link between v4l2src0:src and capsfilter0:sink failed: no common format
0:00:00.775665250 1020 0xaaaad05f6600 INFO GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link v4l2src0:src and capsfilter0:sink
0:00:00.775704125 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query:<capsfilter0:src> pad has no peer
0:00:00.775760625 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query:<capsfilter0:src> pad has no peer
0:00:00.775870625 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstutils.c:1270:gst_element_get_compatible_pad:<v4l2src0> Could not find a compatible pad to link to capsfilter0:sk
0:00:00.775907625 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element capsfilter0:src to element bayer2rgb0:(any)
0:00:00.775943750 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstelement.c:1009:gst_element_get_static_pad: found pad capsfilter0:src
0:00:00.775982250 1020 0xaaaad05f6600 INFO GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link capsfilter0:src and bayer2rgb0:sink
0:00:00.776017750 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query:<capsfilter0:sink> pad has no peer
0:00:00.776061500 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query:<bayer2rgb0:src> pad has no peer
0:00:00.776172250 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query:<capsfilter0:sink> pad has no peer
0:00:00.776249625 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstutils.c:1270:gst_element_get_compatible_pad:<bayer2rgb0> Could not find a compatible pad to link to capsfilter0c
0:00:00.776290875 1020 0xaaaad05f6600 INFO default gstutils.c:2191:gst_element_link_pads_filtered: Could not link pads: v4l2src0:(null) - capsfilter:sink
0:00:00.776325750 1020 0xaaaad05f6600 INFO GST_STATES gstelement.c:2769:gst_element_continue_state:<capsfilter0> completed state change to NULL
0:00:00.776375750 1020 0xaaaad05f6600 INFO GST_PARENTAGE gstbin.c:1826:gst_bin_remove_func:<pipeline0> removed child "capsfilter0"
0:00:00.776431875 1020 0xaaaad05f6600 INFO GST_REFCOUNTING gstelement.c:3345:gst_element_dispose:<capsfilter0> 0xaaaad0836200 dispose
0:00:00.776463000 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstelement.c:868:gst_element_remove_pad:<capsfilter0> removing pad 'sink'
0:00:01.130820250 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstelement.c:868:gst_element_remove_pad:<capsfilter0> removing pad 'src'
0:00:01.130886000 1020 0xaaaad05f6600 INFO GST_REFCOUNTING gstelement.c:3391:gst_element_dispose:<capsfilter0> 0xaaaad0836200 parent class dispose
0:00:01.130924000 1020 0xaaaad05f6600 INFO GST_REFCOUNTING gstelement.c:3423:gst_element_finalize:<capsfilter0> 0xaaaad0836200 finalize
0:00:01.130956500 1020 0xaaaad05f6600 INFO GST_REFCOUNTING gstelement.c:3428:gst_element_finalize:<capsfilter0> 0xaaaad0836200 finalize parent
0:00:01.131085375 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query:<bayer2rgb0:src> pad has no peer
0:00:01.131214000 1020 0xaaaad05f6600 ERROR GST_PIPELINE gst/parse/grammar.y:769:gst_parse_perform_link: could not link v4l2src0 to bayer2rgb0, neither element can handle 0
0:00:01.131288625 1020 0xaaaad05f6600 INFO GST_PIPELINE gst/parse/grammar.y:689:gst_parse_perform_link: linking some pad of GstBayer2RGB named bayer2rgb0 to some pad of G"
0:00:01.131325875 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element bayer2rgb0:(any) to element pngenc0:(any)
0:00:01.131367000 1020 0xaaaad05f6600 INFO GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link bayer2rgb0:src and pngenc0:sink
0:00:01.131403750 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query:<bayer2rgb0:sink> pad has no peer
0:00:01.131489625 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query:<pngenc0:src> pad has no peer
0:00:01.131583750 1020 0xaaaad05f6600 INFO GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: bayer2rgb0 and pngenc0 in same bin, no need for ghost pads
0:00:01.131643750 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:2382:gst_pad_link_prepare: trying to link bayer2rgb0:src and pngenc0:sink
0:00:01.131681875 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query:<bayer2rgb0:sink> pad has no peer
0:00:01.131760750 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:4314:gst_pad_peer_query:<pngenc0:src> pad has no peer
0:00:01.131847750 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:2590:gst_pad_link_full: linked bayer2rgb0:src and pngenc0:sink, successful
0:00:01.131878375 1020 0xaaaad05f6600 INFO GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event
0:00:01.131910000 1020 0xaaaad05f6600 INFO GST_EVENT gstpad.c:5903:gst_pad_send_event_unchecked:<bayer2rgb0:src> Received event on flushing pad. Discarding
0:00:01.131979500 1020 0xaaaad05f6600 INFO GST_PIPELINE gst/parse/grammar.y:689:gst_parse_perform_link: linking some pad of GstPngEnc named pngenc0 to some pad of GstFile"
0:00:01.486488750 1020 0xaaaad05f6600 INFO GST_ELEMENT_PADS gstutils.c:1816:gst_element_link_pads_full: trying to link element pngenc0:(any) to element filesink0:(any)
0:00:01.486541625 1020 0xaaaad05f6600 INFO GST_PADS gstutils.c:1079:gst_pad_check_link: trying to link pngenc0:src and filesink0:sink
0:00:01.486603000 1020 0xaaaad05f6600 INFO GST_PADS gstutils.c:1632:prepare_link_maybe_ghosting: pngenc0 and filesink0 in same bin, no need for ghost pads
0:00:01.486652750 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:2382:gst_pad_link_prepare: trying to link pngenc0:src and filesink0:sink
0:00:01.486705750 1020 0xaaaad05f6600 INFO GST_PADS gstpad.c:2590:gst_pad_link_full: linked pngenc0:src and filesink0:sink, successful
0:00:01.486732250 1020 0xaaaad05f6600 INFO GST_EVENT gstevent.c:1610:gst_event_new_reconfigure: creating reconfigure event
0:00:01.486762000 1020 0xaaaad05f6600 INFO GST_EVENT gstpad.c:5903:gst_pad_send_event_unchecked:<pngenc0:src> Received event on flushing pad. Discarding
WARNING: erroneous pipeline: could not link v4l2src0 to bayer2rgb0, neither element can handle caps video/x-bayer, width=(int)800, height=(int)600, framerate=(fraction)90/1, format=(0)



root@phyboard-polis-imx8mm-4:~# GST_DEBUG=3 gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=1 ! "video/x-bayer,width=800,height=600,framerate=(fraction)30/1,format=(string)BG10" ! bayer2rgb ! pngenc ! filesink location=test.png
0:00:00.065954625 893 0xaaaada01b160 ERROR GST_PIPELINE gst/parse/grammar.y:769:gst_parse_perform_link: could not link v4l2src0 to bayer2rgb0, neither element can handle 0
WARNING: erroneous pipeline: could not link v4l2src0 to bayer2rgb0, neither element can handle caps video/x-bayer, width=(int)800, height=(int)600, framerate=(fraction)30/1, format=(0
root@phyboard-polis-imx8mm-4:~#

0 项奖励
回复
0 回复数