~~tag> VIM-5 MIPI OS08A10 IMX415 IMX585 IMX678 ISP IP~~ {{indexmenu_n>52}} ====== VIM 5 MIPI camera usage ====== ===== Linux ===== ==== Upgrade system ==== Please follow the [[products:sbc:vim-5:configurations:upgrade-system|documentation ]]to upgrade your system to latest version. ==== Video node ==== The video node is ''/dev/video60''. ==== Record video via gstreamer ==== Only for 6.12 kernel. Record video and perform ''H264'' encoding: ```shell gst-launch-1.0 -e v4l2src device=/dev/video60 io-mode=dmabuf num-buffers=300 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! amlvenc bitrate=8000 ! h264parse ! qtmux ! filesink location=test-h264.mp4 ``` Record video and perform ''H265'' encoding: ```shell gst-launch-1.0 -e v4l2src device=/dev/video60 io-mode=dmabuf num-buffers=300 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! amlvenc bitrate=8000 ! h265parse ! qtmux ! filesink location=test-h265.mp4 ``` ==== Get Frames via Mediactl API ==== TODO ==== Preview video on ubuntu desktop ==== You can use gstreamer ''waylandsink'' to preview the video on Ubuntu Wayland desktop: ```shell gst-launch-1.0 v4l2src device=/dev/video60 io-mode=mmap ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! videoconvert ! waylandsink ``` You can use the command below to check display fps: ```shell gst-launch-1.0 -v v4l2src device=/dev/video60 io-mode=mmap ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! fpsdisplaysink video-sink=waylandsink sync=false text-overlay=false ``` ===== Android ===== WIP: