Open main menu

Changes

X1300 Software

1,586 bytes added, 11 April
no edit summary
00000000000000000000000000000015
</pre>
* Loading the EDID data
v4l2-ctl -d /dev/v4l-subdev2 --set-edid=file=/home/pi/1080P60EDID.txt --fix-edid-checksums
'''PS''':Pay attention to the directory of your edid file
 
* Check the screen resolution
v4l2-ctl -d /dev/v4l-subdev2 --query-dv-timings
[[File:X1300v1.0-setting4.png]]
'''PS:'''Make sure to connect the HDMI source device to get the HDMI signal, if you can't get the correct resolution here, consider adjusting the resolution of your source device to match the EDID.
 
* Applying the screen timing to the capture setup
v4l2-ctl -d /dev/v4l-subdev2 --set-dv-bt-timings query
[[File:X1300v1.0-setting5.png]]
 
* Reset links
media-ctl -d /dev/media2 -r
 
<span class="tb_red">Please note that the /dev/media number can change. Go to step1.3 to check the media number.</span>
 
* Set formats
media-ctl -d /dev/media2 -l ''\''csi2'\'':4 -> '\''rp1-cfe-csi2_ch0'\'':0 [1]'
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]'
* Set output formats
v4l2-ctl -v width=1920,height=1080,pixelformat=RGB3
* 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
 
* 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! -->
<comments />