Open main menu

Changes

X1300 Software

348 bytes added, 12 April
no edit summary
Now assumes you've already set up a Raspberry Pi with Raspbian12('''bookworm'''). For help installing the Debian-based OS on your Pi, check out the docs on Raspberrypihttps://www.raspberrypi.com./
To check the kernel version, execute the following command: (OS kernel upgrades often bring about some uncertain issues)
media-ctl -d /dev/media2 -r
<span class="tb_red">Please note that the '''/dev/media number ''' can change. Go to step1.step 3 to check the media number.please change '''/dev/media2''' to '''/dev/media1''' if your media number is 1, and so on</span> 
9. Set formats
media-ctl -d /dev/media2 -V ''\''csi2'\'':0 [fmt:RGB888_1X24/1920x1080 field:none colorspace:srgb]'
media-ctl -d /dev/media2 -V ''\''csi2'\'':4 [fmt:RGB888_1X24/1920x1080 field:none colorspace:srgb]'
<span class="tb_red">Please note that the '''/dev/media number''' can change. Go to step 3 to check the media number. please change '''/dev/media2''' to '''/dev/media1''' if your media number is 1, and so on</span>
 
10. Set output formats
v4l2-ctl -v width=1920,height=1080,pixelformat=RGB3
 
11. Capture frames and save to /home/pi (filename: csitest.yuv)
v4l2-ctl --verbose -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat='RGB3' --stream-mmap=4 --stream-skip=3 --stream-count=2 --stream-to=csitest.yuv --stream-poll
 
12. To play the YUV file on Raspberry Pi OS desktop, use FFplay. (Not work if executing the command from SSH).
ffplay -f rawvideo -video_size 1920x1080 -pixel_format bgr24 csitest.yuv
 
 
Return to [[X1300]]
<!--Add review function! -->