embeded/raspberry pi
raspivid camera select
구차니
2021. 6. 9. 19:20
퇴근직전 30분 알차게 딴짓아닌 딴짓을 하고 있었는데
라즈베리 4 compute module 에 CSI 2개 동시 출력은 일단 cs 옵션을 찾아 성공
하지만 듀얼 모니터임에도 각각 모니터에 띄울수가 없어서 멘붕 중
--camselect, -cs Selects which camera to use on a multi-camera system. Use 0 or 1. |
[링크 : https://www.raspberrypi.org/documentation/raspbian/applications/camera.md]
dn 옵션까진 찾았는데 0,1,2 만 시도했는데 안되서 좌절..
There was this commit. I think it can be done by just adding "-dn 7" to raspivid to display the preview on the second HDMI monitor. |
[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=298292]
7까지 갈 생각은 못했네 -_-
도대체 저 인덱스는 어디서 굴러나온건지 소스에서 봐도 이해가 안되네?
Allows options like -dn 7 to push the preview onto HDMI1. Values are Dispmanx display enums, therefore predominantly 0 = DSI/DPI LCD 2 = HDMI0 3 = SDTV 7 = HDMI1 Behaviour should the chosen display not be present should be to revert to the primary display that is present. |
[링크 : https://github.com/raspberrypi/userland/commit/2549c149d8aa7f18ff201a1c0429cb26f9e2535a]
+
2021.06.10
-dn 7 하니 HDMI1로 출력 잘된다.
다만 -3d sbs 옵션을 하는데 단일 카메라로만 되서
2개 카메라를 scaling 후 합치는건 따로 소스를 수정해 봐야 할지도?