Raspberrypi video recorder: Difference between revisions

From 탱이의 잡동사니
Jump to navigation Jump to search
No edit summary
No edit summary
Line 21: Line 21:


* Enable camera module
* Enable camera module
[[File:Raspi-config.png|300px|thumbnail|right|raspi-config]]
USB 웹 캠이 아닌, Raspberrypi 카메라 모듈을 사용한다면, raspi-config 설정을 통해 카메라 모듈을 enable 시켜줘야 한다.
<source lang=bash>
$ sudo raspi-config
</source>
Enable camera 메뉴로 들어가서, enable 설정후, finish, reboot를 하도록 하자.


=== Video testing ===
=== Video testing ===
Line 57: Line 63:
* http://sirlagz.net/2013/02/18/how-to-automatically-emailing-motion-snapshots/
* http://sirlagz.net/2013/02/18/how-to-automatically-emailing-motion-snapshots/
* http://www.raspberrypi.org/documentation/raspbian/applications/camera.md
* http://www.raspberrypi.org/documentation/raspbian/applications/camera.md
* http://www.raspberrypi.org/documentation/usage/camera/README.md




[[category:raspberrypi]]
[[category:raspberrypi]]

Revision as of 17:37, 31 January 2015

Overview

라즈베리 파이를 이용한 동작 감지기 만들기

Requires

다음의 조건을 만족해야 한다.

  • HD 급 화질 녹화
비디오 녹화시 HD급으로 녹화가 되어야 한다.
  • Web streaming
웹 인터페이스를 통해 언제 어디서는 Live 로 중계가 가능해야 한다.
  • Motion detect & alert
동작 감지 중에, 수상한 동작이 감지 되었을 때에는 즉시 email 혹은 SMS 으로 수상한 동작 감지 알람을 전송할 수 있어야 한다.
  • Save & send to email
감지된 영상/사진 내용을 저장 및 이메일로 자동 전송할 수 있어야 한다.

Installation

  • Setup camera module
  • Enable camera module
raspi-config

USB 웹 캠이 아닌, Raspberrypi 카메라 모듈을 사용한다면, raspi-config 설정을 통해 카메라 모듈을 enable 시켜줘야 한다. <source lang=bash> $ sudo raspi-config </source> Enable camera 메뉴로 들어가서, enable 설정후, finish, reboot를 하도록 하자.

Video testing

기본 해상도 설정은 1080p이다(1920x1080)

<source lang=bash> $ raspivid -t 5000 -o video.h264 </source>

기본 설정으로 5초 동안 레코딩

<source lang=bash> $ raspivid -t 5000 -o video.h264 -b 3500000 </source>

설정된 비트 레이트로 5초 동안 레코딩(3.5Mbits/s)

<source lang=bash> $ raspivid -t 5000 -o video.h264 -f 5 </source>

설정된 프레임 레이트로 5초 동안 레코딩(5fps)

<source lang=bash> $ raspivid -t 5000 -o - </source>

stdout 으로 출력하기(Stream encoded)

<source lang=bash> $ raspivid -t 5000 -o - > my_file.h264 </source>

파일로 내용 저장


External links