오픈소스 웹 스트리밍 감시카메라



sudo apt-get install libjpeg8-dev imagemagick libv4l-dev subversion


svn checkout svn://svn.code.sf.net/p/mjpg-streamer/code mjpg-streamer


cd mjpg-streamer/mjpg-streamer



make -j2

./start.sh


웹페이지를 통해 접속 ip:8080


'Linux' 카테고리의 다른 글

git 서버설치  (0) 2018.07.20
정적라이브러리, 동적라이브러리  (0) 2018.07.19
[Linux]Samba 설정  (0) 2017.10.06
[libudev] 함수정리  (0) 2017.04.18
Gstreamer 파이프라인 디버깅  (0) 2017.04.14


ALSA 란?




rpi3 사운드카드  커널모듈 확인하기 

$ cat /proc/asound/modules

0 snd_bcm2835



$ snd_bcm2835 모듈정보 확인하기 


modinfo snd_bcm2835


filename:       /lib/modules/4.14.37-v7+/kernel/drivers/staging/vc04_services/bcm2835-audio/snd-bcm2835.ko

license:        GPL

description:    Alsa driver for BCM2835 chip

author:         Dom Cobley

srcversion:     E5D598E47E3BA0AA5049F39

alias:          of:N*T*Cbrcm,bcm2835-audioC*

alias:          of:N*T*Cbrcm,bcm2835-audio

depends:        snd-pcm,snd

staging:        Y

intree:         Y

name:           snd_bcm2835

vermagic:       4.14.37-v7+ SMP mod_unload modversions ARMv7 p2v8 

parm:           force_bulk:Force use of vchiq bulk for audio (bool)

parm:           enable_hdmi:Enables HDMI virtual audio device (bool)

parm:           enable_headphones:Enables Headphones virtual audio device (bool)

parm:           enable_compat_alsa:Enables ALSA compatibility virtual audio device (bool)


rpi3 

Advanced Linux Sound Architecture



$ cat /proc/asound/cards

 0 [ALSA           ]: bcm2835_alsa - bcm2835 ALSA

                      bcm2835 ALSA




가상 파일시스템의 사운드 장치 확인하기 

ls -l /proc/asound/card*

-r--r--r-- 1 root root 0  7월  5 10:51 id

dr-xr-xr-x 9 root root 0  7월  5 10:51 pcm0p

dr-xr-xr-x 3 root root 0  7월  5 10:51 pcm1p

pcm 폴더는 playback device 를 나타낸다. 


 

$ cat /proc/asound/card0/pcm0p/info

card: 0

device: 0

subdevice: 0

stream: PLAYBACK

id: bcm2835 ALSA

name: bcm2835 ALSA

subname: subdevice #0

class: 0

subclass: 0

subdevices_count: 7

subdevices_avail: 7



$ cat /proc/asound/card0/pcm1p/info

card: 0

device: 1

subdevice: 0

stream: PLAYBACK

id: bcm2835 ALSA

name: bcm2835 IEC958/HDMI

subname: subdevice #0

class: 0

subclass: 0

subdevices_count: 1

subdevices_avail: 1


0은 스피커 짹 1은 HDMI 출력을 나타낸다.


HDMI 출력 테스트 

$ speaker-test -Dhw:0,1 -c2 -twav 

$ speaker-test -Dhw:ALSA,0 -c2 -twav

speaker-test -Dhw:ALSA,0 -c2 -twav

speaker-test 1.1.3


Playback device is hw:ALSA,0

Stream parameters are 48000Hz, S16_LE, 2 channels

WAV file(s)

Rate set to 48000Hz (requested 48000Hz)

Buffer size range from 256 to 32768

Period size range from 256 to 32768

Using max buffer size 32768

Periods = 4

was set period_size = 8192

was set buffer_size = 32768

 0 - Front Left

 1 - Front Right



ALSA Operation







furmuwon : http://pds21.egloos.com/pds/201612/23/62/alsa(embedded_linux).pdf




Raspberry-Pi-Model-Bplus-Product-Brief.pdf: 

https://static.raspberrypi.org/files/product-briefs/Raspberry-Pi-Model-Bplus-Product-Brief.pdf


사양 : 64bit quad core processor running at 1.4GHz , 


dual-and 2.4GHz and 5GHz wireless LAN,


Specifications


Processor : Broadcom BCM2837B0, Cortex-A53

Memory : 1GB LPDDR2 SDRAM

Connectivity : 

 * 2.4GHz and 5GHz IEEE 802.11.b/g/n/ac wireless

 * Gigabit Ethernet over USB 2.0 (maximum throughput 300Mbps)

 * 4 x USB 2.0 ports


Access : Extended 40-pin GPIO header 

Video & sound 

 * 1 x full size HDMI

 * MIPI DSI display port

 * MIPI CSI camera port

 * 4 pole stereo output and composite video port


SD card support 

Input power 

 * 5V/2.5A DC , micro USB connector


Environment : Operating temperature , 0- 50 °C 


alsa 관련 라이브러리

alsa-lib/     alsa-plugins/ alsa-state/   alsa-utils/



alsa-utils

 - aconnect  alsaloop  alsamixer  alsaucm  amidi  amixer  aplay  aplaymidi  arecord  arecordmidi  aseqdump  aseqnet  iecset  speaker-test




alsa-plugins 


 

 optional : FFmpeg, libsamplerate, PulseAudio, Speex , JACK, maemo 

  

http://www.linuxfromscratch.org/blfs/view/svn/multimedia/alsa-plugins.html



pulseAudio Gstreamer 설정 - http://crazyraven.tistory.com/?page=7


+ Recent posts