Open main menu

Changes

X1300 Software

226 bytes added, 11 April
no edit summary
media-ctl -d /dev/media2 -r
<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> 
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
 
<!--Add review function! -->