Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

congrats on an image but camera is not working #2

Open
t0c123 opened this issue Jan 9, 2022 · 1 comment
Open

congrats on an image but camera is not working #2

t0c123 opened this issue Jan 9, 2022 · 1 comment

Comments

@t0c123
Copy link

t0c123 commented Jan 9, 2022

pi@banana:~$ media-ctl -p -d /dev/media1
Media controller API version 5.10.43

Media device information
driver sun6i-csi
model Allwinner Video Capture Device
serial
bus info platform:1cb0000.camera
hw revision 0x0
driver version 5.10.43

Device topology

  • entity 1: sun6i-csi (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video1
    pad0: Sink
    <- "ov5640 2-003c":0 [ENABLED]

  • entity 5: ov5640 2-003c (1 pad, 1 link)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev0
    pad0: Source
    [fmt:YUYV8_2X8/640x480@1/30 colorspace:srgb xfer:srgb ycbcr:601 quantization:full-range]
    -> "sun6i-csi":0 [ENABLED]

pi@banana:~$ lsmod
Module Size Used by
rfcomm 53248 16
cmac 16384 1
bnep 24576 2
snd_soc_hdmi_codec 20480 1
hci_uart 61440 0
lima 45056 0
brcmfmac 176128 0
btrtl 20480 1 hci_uart
dw_hdmi_i2s_audio 16384 0
sun6i_csi 32768 0
dw_hdmi_cec 16384 0
btbcm 16384 1 hci_uart
brcmutil 16384 1 brcmfmac
input_leds 16384 0
gpu_sched 28672 1 lima
bluetooth 413696 40 btrtl,hci_uart,bnep,btbcm,rfcomm
ov5640 28672 1
ecdh_generic 16384 2 bluetooth
ecc 28672 1 ecdh_generic
cfg80211 491520 1 brcmfmac
v4l2_fwnode 24576 2 ov5640,sun6i_csi
sun4i_gpadc_iio 16384 0
industrialio 53248 1 sun4i_gpadc_iio
sun8i_thermal 16384 0
rfkill 20480 7 bluetooth,cfg80211
sunxi_cedrus 32768 0
v4l2_mem2mem 20480 1 sunxi_cedrus
videobuf2_dma_contig 20480 2 sunxi_cedrus,sun6i_csi
videobuf2_memops 20480 1 videobuf2_dma_contig
videobuf2_v4l2 20480 3 sunxi_cedrus,sun6i_csi,v4l2_mem2mem
zram 24576 2
videobuf2_common 40960 4 sunxi_cedrus,sun6i_csi,v4l2_mem2mem,videobuf2_v4l2
evdev 20480 6
uio_pdrv_genirq 20480 0
display_connector 20480 0
uio 16384 1 uio_pdrv_genirq
cpufreq_dt 20480 0
usb_f_acm 20480 1
u_serial 24576 3 usb_f_acm
g_serial 16384 0
libcomposite 45056 2 g_serial,usb_f_acm
ip_tables 24576 0
x_tables 24576 1 ip_tables
autofs4 36864 2
pwrseq_simple 16384 1
sunxi 16384 0
phy_generic 20480 2 sunxi
gpio_keys 20480 0

i don't know is this all good....

but when it comes to actual using of camera - it says something about "pipeline error, can not open pipeline..." (i can paste it here tomorrow)

i tried python app, from code-block, even downloaded gvcuview app, and vlc. Zero success :-\ and i lost like 6h today on that...

@Qengineering
Copy link
Owner

Did you initialize the camera before use?
It is done by the command $ sudo media-ctl --device /dev/media1 --set-v4l2 '"ov5640 2-003c":0[fmt:YUYV8_2X8/<your width> x <your height>]'

Please, read more in the last section of README.md. Here you see also a screendump of the command $ v4l2-ctl --list-devices testing the camera.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants