공짜라는 정보가 있어서 낼름!
겁나 무섭다는데 흑흑 ㅠㅠ
'게임 > 오리진&스팀&유플레이' 카테고리의 다른 글
캡콤 험블번들 지름 (0) | 2015.10.23 |
---|---|
심심해서 게임 목록 정리 (0) | 2015.10.17 |
오리진의 선물... 재탕이라니! (0) | 2015.09.16 |
오리진의 선물 (0) | 2015.07.12 |
아... 홈월드 리마스터 살까 말까 ㅠㅠ (0) | 2015.06.22 |
공짜라는 정보가 있어서 낼름!
겁나 무섭다는데 흑흑 ㅠㅠ
캡콤 험블번들 지름 (0) | 2015.10.23 |
---|---|
심심해서 게임 목록 정리 (0) | 2015.10.17 |
오리진의 선물... 재탕이라니! (0) | 2015.09.16 |
오리진의 선물 (0) | 2015.07.12 |
아... 홈월드 리마스터 살까 말까 ㅠㅠ (0) | 2015.06.22 |
재탕은 너무하잖아 ㅠㅠ
새거 내놔 ㅠㅠ
심심해서 게임 목록 정리 (0) | 2015.10.17 |
---|---|
스팀의 선물(?) - 암네시아 (0) | 2015.09.16 |
오리진의 선물 (0) | 2015.07.12 |
아... 홈월드 리마스터 살까 말까 ㅠㅠ (0) | 2015.06.22 |
이걸 사야하나 말아야 하나 ㅠㅠ (0) | 2015.05.18 |
raw로 받을 수 있는데..
동영상까지 하려면 아무래도..USB로 처리하는 ethernet 때문에
대역폭 한계로 저장에는 애로가 꽃필듯하다
raspistill --raw -o raw.jpg
It's not RGB, it's bayer data
[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=44918]
[링크 : http://bealecorner.org/best/RPi/]
[링크 : http://www.farnell.com/datasheets/1730389.pdf]
picamera / raw video
[링크 : http://raspberrypi.stackexchange.com/questions/27207/uncompressed-video-recording]
[링크 : http://picamera.readthedocs.org/en/release-1.10/]
+
2017.02.28
matlab에서 rpi 카메라 조작하기
[링크 : https://kr.mathworks.com/.../working-with-raspberry-pi-camera-board.html...m]
라즈베리 파이 motion / 3ch.. (0) | 2015.09.19 |
---|---|
라즈베리 파이 - raspistill / raspiyuv / yuv player (0) | 2015.09.17 |
라즈베리 파이 rpi-cam-web-interface (0) | 2015.09.16 |
라즈베리 파이 PWM 채널 (0) | 2015.09.16 |
라즈베리 파이 CSI / uv4l2 / MMAL / motion (0) | 2015.09.15 |
헐.. UI가 조금 구리지만.. 잘 꾸미면 웬만한 사용제품 급이겠는데? ㄷㄷ
[링크 : http://elinux.org/RPi-Cam-Web-Interface]
[링크 : https://github.com/silvanmelchior/RPi_Cam_Web_Interface]
라즈베리 파이 - raspistill / raspiyuv / yuv player (0) | 2015.09.17 |
---|---|
라즈베리 파이 RAW output (0) | 2015.09.16 |
라즈베리 파이 PWM 채널 (0) | 2015.09.16 |
라즈베리 파이 CSI / uv4l2 / MMAL / motion (0) | 2015.09.15 |
라즈베리 파이 GPU_MEM 설정 (0) | 2015.09.14 |
그러니까.. AVB가 인프라고
RAW video는 기존의 표준이 있으니 RTP에 하나 추가해서
RAW 데이터를 전송하면 끝?
AVB - Audio video Bridge
[링크 : http://www.tta.or.kr/data/weekly_view.jsp?news_id=1926]
[링크 : https://en.wikipedia.org/wiki/Audio_Video_Bridging]
uncompressed video over IP
[링크 : http://www.tvtechnology.com/miscellaneous/0008/uncompressed-video-over-ip/206200]
RTP AVP(Audio Video Profile)
[링크 : https://en.wikipedia.org/wiki/RTP_audio_video_profile]
RTP Payload Format for Uncompressed Video
[링크 : https://tools.ietf.org/html/rfc4175]
[링크 : https://itea3.org/.../09039-MEDIATE-WP-2-MediateD221StandardsandInteroperabilityv11pdf.pdf]
[링크 : https://csperkins.org/research/ultragrid/2004-07-APAN.pdf]
[링크 : http://www.apan.net/meetings/tokyo2006/presentation/2006-01-APAN-STDs.pdf]
[링크 : https://en.wikipedia.org/wiki/Real-time_Transport_Protocol]
[링크 : https://en.wikipedia.org/wiki/Real_Time_Streaming_Protocol]
RTSP = RTCP + RTP
APNR 카메라 (0) | 2016.05.18 |
---|---|
lwip + freeRTOS (0) | 2015.12.09 |
UTC / Up the cable, coxial (0) | 2015.09.02 |
SDI 12G ... 6G (0) | 2015.05.18 |
HD-AHD / HD-TVI / HD-CVI / EX-SDI (0) | 2015.04.16 |
으흐흐 이걸로 티스토리 스킨을 꾸며봐야지 ㅋㅋㅋ
(이제와서 이런거 공부하면서 뿌듯해 하는 노인 1인 ㅋㅋㅋ)
[링크 : http://www.w3schools.com/html/tryit.asp?filename=tryhtml_lists_menu]
html5 live video streaming... (0) | 2015.11.23 |
---|---|
div span 블럭구조 및 원형테두리 (0) | 2015.09.23 |
<link> 관련 약어 정리 (0) | 2015.09.14 |
node.js / angular.js ... (0) | 2015.09.11 |
html5 (0) | 2015.09.10 |
서보 모터 2개 제어하려니.. PWM 채널 2개인게 편해서 검색..
그런데.. 저 핀 수는 어떤 기준이지?
12 PWM channel 0 A+/B+/Pi2 and compute module only 13 PWM channel 1 A+/B+/Pi2 and compute module only 18 PWM channel 0 All models 19 PWM channel 1 A+/B+/Pi2 and compute module only 40 PWM channel 0 Compute module only 41 PWM channel 1 Compute module only 45 PWM channel 1 Compute module only 52 PWM channel 0 Compute module only 53 PWM channel 1 Compute module only [링크 : http://abyz.co.uk/rpi/pigpio/python.html#hardware_PWM] |
There are two hardware PWM channels on the BCM2385/6. PWM0, which can be set to use GPIOs 12, 18, 40, and 52. Only 12 (pin 32) and 18 (pin 12) are available on the B+/2B, and PWM1 which can be set to use GPIOs 13, 19, 41, 45 and 53. Only 13 is available on the B+/2B, on pin 35 (but I think PWM1 is used for something - is it the audio output?) [링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=105044] |
라즈베리 2B에는 GPIO13과 GPIO18번이 나와있으니.. 이걸 두개 설정해서
HW PWM으로 사용할 수 있을 것 같은데..
[링크 : http://elinux.org/RPi_BCM2835_GPIOs]
[링크 : http://elinux.org/RPi_Low-level_peripherals]
이렇게 맞붙여서 한번 해봐야지..
라즈베리 파이 RAW output (0) | 2015.09.16 |
---|---|
라즈베리 파이 rpi-cam-web-interface (0) | 2015.09.16 |
라즈베리 파이 CSI / uv4l2 / MMAL / motion (0) | 2015.09.15 |
라즈베리 파이 GPU_MEM 설정 (0) | 2015.09.14 |
라즈베리 파이 - gstreamer 설치 (0) | 2015.09.14 |
어쩌다 보니 듣게 된 프로토콜..
오토메이션 관련 de facto 프로토콜
[링크 : https://en.wikipedia.org/wiki/Modbus]
[링크 : http://irtfweb.ifa.hawaii.edu/~smokey/software/about/sixnet/modbus/modbus_protocol.pdf]
libmodbus 예제 프로그램 (0) | 2022.05.04 |
---|---|
libmodbus tcp 예제 (0) | 2022.05.04 |
libmodbus (0) | 2022.05.03 |
modbus tcp 테스트 툴 (0) | 2022.05.03 |
modbus tcp library (0) | 2022.04.25 |
bcm2835-v4l2 모듈만 불러주면 해결
(테스트 라즈비안 2015.5.5일자 클린상태)
---
uv4l2를 설치해서 되는건진 테스트 필요 (sd 밀고 다시 설정하고.. 아으 ㅋㅋㅋㅋ)
$ sudo apt-get install uv4l uv4l-raspicam uv4l-raspicam-extras uv4l-server uv4l-uvc uv4l-xscreen uv4l-mjpegstream |
---
Camera Enable로 설정 후 재부팅
$ sudo raspi-config
$ sudo modprobe bcm2835-v4l2 $ lsmod | grep v4l bcm2835_v4l2 37265 0 videobuf2_vmalloc 5397 1 bcm2835_v4l2 videobuf2_core 34020 1 bcm2835_v4l2 v4l2_common 3766 2 bcm2835_v4l2,videobuf2_core videodev 124141 3 bcm2835_v4l2,v4l2_common,videobuf2_core $ dmesg [ 6468.552996] media: Linux media interface: v0.10 [ 6468.574380] Linux video capture interface: v2.00 [ 6468.610013] bcm2835-v4l2: scene mode selected 0, was 0 [ 6468.610559] bcm2835-v4l2: V4L2 device registered as video0 - stills mode > 1280x720 [ 6468.615652] bcm2835-v4l2: Broadcom 2835 MMAL video capture ver 0.0.2 loaded. $ ls -al /dev/video0 crw-rw-rwT+ 1 root video 81, 0 9월 15 12:37 /dev/video0 |
만약 start_x를 추가하지 않아 카메라가 활성화 되지 않으면
Operation not permitted 라는 에러 메시지가 발생된다.
$ lsmod Module Size Used by cuse 5065 0 fuse 81710 2 cuse snd_bcm2835 19769 0 snd_pcm 74825 1 snd_bcm2835 snd_seq 53561 0 snd_seq_device 3650 1 snd_seq snd_timer 18157 2 snd_pcm,snd_seq snd 52116 5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device uio_pdrv_genirq 2966 0 uio 8235 1 uio_pdrv_genirq $ sudo modprobe bcm2835-v4l2 ERROR: could not insert 'bcm2835_v4l2': Operation not permitted $ dmesg [ 33.911831] media: Linux media interface: v0.10 [ 33.932822] Linux video capture interface: v2.00 [ 33.957085] : bcm2835-v4l2: error -1 while loading driver |
Camera start_x Enable the camera module. start_x=1 disable_camera_led Turn off the red camera LED when recording video or taking a still picture disable_camera_led=1 gpu_mem minimum GPU memory for camera use gpu_mem=128 |
움직임 감지시 이미지로 저장하는 부분
output_normal을 off로 하면 "target_dir" 에 저장을 하지 않음
############################################################ # Image File Output ############################################################ # Output 'normal' pictures when motion is detected (default: on) # Valid values: on, off, first, best, center # When set to 'first', only the first picture of an event is saved. # Picture with most motion of an event is saved when set to 'best'. # Picture with motion nearest center of picture is saved when set to 'center'. # Can be used as preview shot for the corresponding movie. output_normal off # Output pictures with only the pixels moving object (ghost images) (default: off) output_motion off # The quality (in percent) to be used by the jpeg compression (default: 75) quality 75 # Output ppm images instead of jpeg (default: off) ppm off |
움직임 감지시 동영상 저장 부분. swf가 기본값이며 ffmpeg_cap_new를 off로 해주면 저장되지 않았다.
(기본값이 off라면서 on이 되어 있냐 -_-)
############################################################ # FFMPEG related options # Film (mpeg) file output, and deinterlacing of the video input # The options movie_filename and timelapse_filename are also used # by the ffmpeg feature ############################################################ # Use ffmpeg to encode mpeg movies in realtime (default: off) ffmpeg_cap_new off # Use ffmpeg to make movies with only the pixels moving # object (ghost images) (default: off) ffmpeg_cap_motion off # Use ffmpeg to encode a timelapse movie # Default value 0 = off - else save frame every Nth second ffmpeg_timelapse 0 # The file rollover mode of the timelapse video # Valid values: hourly, daily (default), weekly-sunday, weekly-monday, monthly, manual ffmpeg_timelapse_mode daily # Bitrate to be used by the ffmpeg encoder (default: 400000) # This option is ignored if ffmpeg_variable_bitrate is not 0 (disabled) ffmpeg_bps 500000 # Enables and defines variable bitrate for the ffmpeg encoder. # ffmpeg_bps is ignored if variable bitrate is enabled. # Valid values: 0 (default) = fixed bitrate defined by ffmpeg_bps, # or the range 2 - 31 where 2 means best quality and 31 is worst. ffmpeg_variable_bitrate 0 # Codec to used by ffmpeg for the video compression. # Timelapse mpegs are always made in mpeg1 format independent from this option. # Supported formats are: mpeg1 (ffmpeg-0.4.8 only), mpeg4 (default), and msmpeg4. # mpeg1 - gives you files with extension .mpg # mpeg4 or msmpeg4 - gives you files with extension .avi # msmpeg4 is recommended for use with Windows Media Player because # it requires no installation of codec on the Windows client. # swf - gives you a flash film with extension .swf # flv - gives you a flash video with extension .flv # ffv1 - FF video codec 1 for Lossless Encoding ( experimental ) # mov - QuickTime ( testing ) ffmpeg_video_codec swf # Use ffmpeg to deinterlace video. Necessary if you use an analog camera # and see horizontal combing on moving objects in video or pictures. # (default: off) ffmpeg_deinterlace off |
motion.conf I ended up commented these out when i was testing but not totally sure if it helped. It's prolly ok to leave motion.conf pretty much as it was but this works fine for me and that's how it's gonna stay now it's fully working. ;netcam_url value ;target_dir value ;webcam_port 8081 ;videodevice /dev/video0 |
화면이 안떠서 디버깅을 해보니 예제로 된 /etc/motion/motion.conf 에서
thread의 경로가 잘못 잡힌 것을 발견
$ sudo motion[0] Processing thread 0 - config file /etc/motion/motion.conf [0] Thread config file /usr/local/etc/thread1.conf not found: No such file or directory [0] Thread config file /usr/local/etc/thread2.conf not found: No such file or directory [0] Motion 3.2.12 Started [0] Motion going to daemon mode |
이렇게 하니.. 8081 8082 포트로 접속이 된다.
$ sudo vi /etc/motion/motion.conf # thread config files. thread /etc/motion/thread1.conf thread /etc/motion/thread2.conf ; thread /usr/local/etc/thread3.conf ; thread /usr/local/etc/thread4.conf |
8080 에서는 작동중인 쓰레드가
8081 에는 cam1
8082에는 cam2
15 프레임 캡쳐 / 15 프레임 스트리밍 해둔건데 cpu가 1개 코어 100%를 먹네.. ㄷㄷㄷ
+
그나저나 아이패드에서는 영상이 가로/세로 바꾸거나 스크롤을 하는 동안에만 잠시 보인다..
머가 문제라서 리프레시가 자동으로 안될까?
+
갤럭시 S2 에서는 다운로드..
+
IE 에서도 다운로드
크롬외에는 쓸모가 없나 -ㅁ-?
아니면.. HTTP 스트리밍이 되는.. vlc?
라즈베리 파이 rpi-cam-web-interface (0) | 2015.09.16 |
---|---|
라즈베리 파이 PWM 채널 (0) | 2015.09.16 |
라즈베리 파이 GPU_MEM 설정 (0) | 2015.09.14 |
라즈베리 파이 - gstreamer 설치 (0) | 2015.09.14 |
리눅스 커널 인자 console 과 부팅시간 (0) | 2015.09.10 |
너.. 정체가 모냐?
일단은... -vvv 옵션차이로 rtsp / http 스트리밍이 되기도 하고 안되기도 한다. -_-
--v4l2-set-ctrls <문자열>
v4l2 드라이버 제어
Set the v4l2 driver controls to the values specified using a comma
separated list optionally encapsulated by curly braces (e.g.:
{video_bitrate=6000000,audio_crc=0,stream_type=3} ). To list
available controls, increase verbosity (-vvv) or use the v4l2-ctl
application.
--verbose-objects <문자열>
어떤 객체가 디버그 메시지를
출력할지 선택
This is a ',' separated string, each object should be prefixed by a
'+' or a '-' to respectively enable or disable it. The keyword 'all'
refers to all objects. Objects can be referred to by their type or
module name. Rules applying to named objects take precedence over
rules applying to object types. Note that you still need to use -vvv
to actually display debug message.
http vlc protocol (0) | 2018.11.30 |
---|---|
vlc for windows / ascii art ㅋㅋㅋ (0) | 2016.11.22 |
dash with VLC (0) | 2015.09.11 |
VLC dshow(캡쳐장비) 해상도 설정 (0) | 2015.05.23 |
VLC로 multicast 테스트 (0) | 2014.10.22 |