[참조 경로]
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 # 옵션 지정
'raspberry pi4' 카테고리의 다른 글
tensorflow 설치 하기 for libcamera (0) | 2022.05.10 |
---|---|
open cv 설치 하기 for libcamera (0) | 2022.05.10 |
EEPROM 펌웨어 업데이트 방법 (0) | 2022.05.06 |
CAMERA V2 모듈 설정 순서 (0) | 2022.05.03 |
os 라즈비안 업데이트 세팅 순서. (0) | 2022.05.03 |