Jump to content
Sign in to follow this  
serial115200

how to use IMX219 Camera

Recommended Posts

HI guys

I'm now connecting the IMX219 camera to tinker board 2s board.

accounting to /boot/config.txt info, i modify the overlay line  to overlay=CSI0-IMX219, and try to do test。

#
# There are two display controller, VOPB and VOPL.
# The default state is VOPB connet to HDMI, VOPL to DP/mipi-dsi panel.
# If you want to change VOPB to DP, please modify the overlay as following:
#       overlay=DP_VOPB
# If you want to change VOPL to HDMI, please modify the overlay as following:
#       overlay=HDMI_VOPL
#
# There are two CSI interface for camera, CSI0 and CSI1. CSI1 can switch to DSI1 for connecting mipi-dsi panel.
# The default state is OV5647 connect CSI0, IMX219 connect CSI1.
# If you want to change OV5647 connect CSI1, please modify the overlay as following:
#       overlay=CSI1-OV5647
# If you want to change IMX219 connect CSI0, please modify the overlay as following:
#       overlay=CSI0-IMX219
# If you want to connect two mipi-dsi panel, you need switch CSI1 to DSI1, please modify the overlay as following:
#       overlay=panel-asus-DSI1-overlay
#

overlay=CSI0-IMX219

 

ffmpeg -f v4l2 -video_size 1280x720 -i /dev/video0 -frames 1 out.jpg
linaro@linaro-alip:~$ ls -sl /dev/video*
4 -rw-r--r--  1 root root      4 Feb 14  2019 /dev/video-dec0
4 -rw-r--r--  1 root root      4 Feb 14  2019 /dev/video-enc0
0 crw-rw----+ 1 root video 81, 0 Feb 14  2019 /dev/video0
0 crw-rw----+ 1 root video 81, 1 Feb 14  2019 /dev/video1
0 crw-rw----+ 1 root video 81, 2 Feb 14  2019 /dev/video2
0 crw-rw----+ 1 root video 81, 3 Feb 14  2019 /dev/video3
0 crw-rw----+ 1 root video 81, 4 Feb 14  2019 /dev/video4
linaro@linaro-alip:~$ 
linaro@linaro-alip:~$ ffmpeg -f v4l2 -video_size 1280x720 -i /dev/video0 -frames 1 out.jpg
librga:RGA_GET_VERSION:3.02,3.020000 
ctx=0x5584964c90,ctx->rgaFd=3 
Rga built version:7bf9abf 
ffmpeg version 4.1.6-1~deb10u1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --prefix=/usr --extra-version='1~deb10u1' --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --disable-libaom --disable-libmysofa --disable-libvidstab --enable-libdrm --enable-librga --enable-rkmpp --enable-version3 --disable-libopenh264 --disable-vaapi --disable-vdpau --disable-decoder=h264_v4l2m2m --disable-decoder=vp8_v4l2m2m --disable-decoder=mpeg2_v4l2m2m --disable-decoder=mpeg4_v4l2m2m --disable-muxer='ac3,eac3,mlp,truehd' --disable-encoder='ac3_fixed,ac3,mlp,spdif,truehd' --disable-demuxer='ac3,eac3,mlp,truehd,dts,dtshd' --disable-parser='aac,ac3,mlp' --disable-decoder='ac3,eac3,mlp,dolby_e' --enable-shared --disable-doc
  libavutil      56. 22.100 / 56. 22.100
  libavcodec     58. 35.100 / 58. 35.100
  libavformat    58. 20.100 / 58. 20.100
  libavdevice    58.  5.100 / 58.  5.100
  libavfilter     7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc    55.  3.100 / 55.  3.100
[video4linux2,v4l2 @ 0x5584980e30] Not a video capture device.
/dev/video0: No such device

 

finally,i am in trouble,and need some help.

I appreciate your kind help in advance.

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...