libcamera test
[참조 경로]
https://www.raspberrypi.com/documentation/accessories/camera.html#libcamera-raw
# 정지화면
libcamera-still -o test.jpg
libcamera-still -e png -o test.png
libcamera-still -e bmp -o test.bmp
libcamera-still -e rgb -o test_rgb.data
libcamera-still -e yuv420 -o test.data
# 동영상 캡쳐 및 VLC Player로 실행.
libcamera-vid -t 10000 -o test.h264 # 캡쳐
vlc test.h264 # vlc player 로 영상 재생
# 스트리밍 방식 : RSTP
[RPI4]
pi@raspberrypi:~/SMB $ libcamera-vid -t 0 --inline -o - | cvlc stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/stream1}' :demux=h264
[윈도우]
vlc rtsp://192.168.0.149:8554/stream1
# 동영상 캡쳐 원본 형식
libcamera-raw -t 2000 -o test.raw
libcamera-raw -t 2000 --segment 1 -o test%05d.raw # --segment 프레임 단위로 저장.
libcamera-raw -t 5000 --width 4056 --height 3040 -o test_op.raw --framerate 8 # 옵션 지정