embeded/raspberry pi2016. 7. 28. 11:43

음.. 해보니 되긴한데..

vlc에서도 배속 재생이 되는거 첨 알았네 ㅋㅋ


아무튼... 기본적으로 무조건 30fps로 h.264 스트림이 저장되니

vlc 에서 4배속으로 재생해야 320x240@120fps로 저장된게 정상속도로 재생된다.


테스트 해보니...

원본은 팟플레이어 에서만 재생 VLC 재생불가

변환은 팟플레이어, VLC 빠르게 이상없음


흐음...




+

결론은 파일로 저장되는 스트림에 대해서 120p 90p 60p로 저장이 되고, 

해당 스트림은 30p로 설정되어 슬로우 모션으로 재생됨 끝


$ MP4Box -fps 30 -add video_120p.h264 video_120p.mp4

AVC-H264 import - frame size 320 x 240 at 30.000 FPS

AVC Import results: 1296 samples - Slices: 22 I 1274 P 0 B - 0 SEI - 22 IDR

Saving to video_120p.mp4: 0.500 secs Interleaving 


$ MP4Box -fps 30 -add video_120p.h264 video_120p.mp4 -v

[iso file] Current top box start before parsing 2

[iso file] Read Box type ftyp size 24 start 0

[iso file] Current top box start before parsing 2

[iso file] Read Box type moov size 6319 start 24

[iso file] Read Box type mvhd size 108 start 32

[iso file] Read Box type iods size 21 start 140

[iso file] Read Box type trak size 6182 start 161

[iso file] Read Box type tkhd size 92 start 169

[iso file] Read Box type mdia size 6082 start 261

[iso file] Read Box type mdhd size 32 start 269

[iso file] Read Box type hdlr size 59 start 301

[iso file] Read Box type minf size 5983 start 360

[iso file] Read Box type vmhd size 20 start 368

[iso file] Read Box type dinf size 36 start 388

[iso file] Read Box type dref size 28 start 396

[iso file] Read Box type url  size 12 start 412

[iso file] Read Box type stbl size 5919 start 424

[iso file] Read Box type stsd size 163 start 432

[iso file] Read Box type avc1 size 147 start 448

[iso file] Read Box type avcC size 41 start 534

[iso file] Read Box type btrt size 20 start 575

[iso file] Read Box type stts size 24 start 595

[iso file] Read Box type stss size 104 start 619

[iso file] Read Box type stsc size 52 start 723

[iso file] Read Box type stsz size 5204 start 775

[iso file] Read Box type stco size 364 start 5979

[iso file] Current top box start before parsing 2

[iso file] Read Box type mdat size 1620390 start 6343

[iso file] Current top box start before parsing 2

[iso file] Read Box type free size 59 start 1626733

AVC-H264 import - frame size 320 x 240 at 30.000 FPS

AVC Import results: 1296 samples - Slices: 22 I 1274 P 0 B - 0 SEI - 22 IDR

Saving video_120p.mp4: 0.500 secs Interleaving 


$ MP4Box

MP4Box [option] input [option]

 -h general           general options help

 -h hint              hinting options help

 -h dash              DASH segmenter help

 -h import            import options help

 -h encode            encode options help

 -h meta              meta handling options help

 -h extract           extraction options help

 -h dump              dump options help

 -h swf               Flash (SWF) options help

 -h crypt             ISMA E&A options help

 -h format            supported formats help

 -h rtp               file streamer help

 -h live              BIFS streamer help

 -h all               all options are printed


 -nodes               lists supported MPEG4 nodes

 -node NodeName       gets MPEG4 node syntax and QP info

 -xnodes              lists supported X3D nodes

 -xnode NodeName      gets X3D node syntax

 -snodes              lists supported SVG nodes

 -snode NodeName      gets SVG node syntax

 -languages           lists supported ISO 639 languages


 -quiet                quiet mode

 -noprog               disables progress

 -v                   verbose mode

 -logs                set log tools and levels, formatted as a ':'-separated list of toolX[:toolZ]@levelX

 -version             gets build version

 -- INPUT             escape option if INPUT starts with - character 




'embeded > raspberry pi' 카테고리의 다른 글

clcd driver  (0) 2016.07.28
리눅스 여러개의 wifi를 콘솔에서 잡기  (0) 2016.07.28
rpicam 90fps...  (0) 2016.07.27
freeRTOS on rpi  (0) 2016.07.18
redmine 백업  (0) 2016.07.14
Posted by 구차니
embeded/raspberry pi2016. 7. 27. 15:39

120fps 찾다가 보니 90fps만 무성히 나오는데..


이전테스트에서는 120fps는 실패인거 같았고


$ raspivid -w 320 -h 230 -t 0 -f -v -fps 120


raspivid Camera App v1.3.12


Width 320, Height 230, filename (null)

bitrate 17000000, framerate 120, time delay 0

H264 Profile high

H264 Quantisation level 0, Inline headers No

H264 Intra refresh type (null), period -1

Wait method : Capture forever

Initial state 'record'


2015/08/08 - [embeded/raspberry pi] - 라즈베리 파이 5M 카메라 - 지름도착!


다시 보니.. 파일로 저장안하고 화면으로 봐서 그런걸지도?



아래는 90p로 받아서 30p 로 3배 느린 영상 만드는 방법

$ raspivid -h 640 -w 480 -fps 90 -t 10000 -o video.h264

$ sudo apt-get install gpac

$ MP4Box -fps 30 -add video.h264 video.mp4


[링크 : http://www.raspberryconnect.com/video/item/165-raspberry-pi-camera-slow-motion]

[링크 : https://babaawesam.com/2014/03/24/shooting-slow-motion-videos-using-raspberry-pi-camera/]

'embeded > raspberry pi' 카테고리의 다른 글

리눅스 여러개의 wifi를 콘솔에서 잡기  (0) 2016.07.28
rpicam x3 x4배속  (0) 2016.07.28
freeRTOS on rpi  (0) 2016.07.18
redmine 백업  (0) 2016.07.14
초음파 거리 + 온/습도 센서  (0) 2016.07.10
Posted by 구차니
회사일2016. 7. 27. 11:03


wget은 URL이 이상하면 이상한 파일명으로 저장해 버리니 -O옵션 사용

-o는 로그 파일 저장이니 유의

$ wget -O filename

[링크 : http://swstyle.tistory.com/23]


$ sleep 0.1

하면 0.1초 쉬었다 감. bash에서만 지원하는 걸지도?


ubuntu 12.04.5 LTS


$ bash --version

GNU bash, version 4.2.25(1)-release (x86_64-pc-linux-gnu)



$ time sleep 0.03


real    0m0.031s

user    0m0.004s

sys     0m0.000s


[링크 : http://serverfault.com/questions/469247/how-do-i-sleep-for-a-millisecond-in-bash-or-ksh]


for 문이 .. 두개였구나.. bash 3.0 이후 부터 사용가능


[링크 : http://b4you.net/blog/264]



0.03 초 간격으로 (대충 30프레임 이니까) 스샷 찍는 방법?

$ cat get.sh

#/bin/bash

for i in {1..100}

do

        wget "http://192.168.10.113/snapshot.jpeg" -O snapshot_$i.jpeg &

#       sleep 0.03

done 


다만, & 으로 프로세스 만들어서 하는거라

시간이 조금 뒤죽박죽이 될 수도 있을 지도...

'회사일' 카테고리의 다른 글

ldo - linear drop out  (0) 2016.12.07
동축 케이블 표준  (0) 2016.09.09
APNR 카메라  (0) 2016.05.18
lwip + freeRTOS  (0) 2015.12.09
raw video streaming  (0) 2015.09.16
Posted by 구차니
게임/c&c generals2016. 7. 26. 23:24

항모격침에 이어서 이제는 미국 본토다!

자먼 켈과 40인의 도적? ㅋㅋㅋ




하이재커 가끔 바보짓 하면(길막당하면) 깔려죽음 ㅠㅠ


배 태워서 본토로(?) 보내는데 가자마자 지뢰에 폭사 ㅠㅠ 엉엉


밸브 잠궈라!!!


그러면 아까 배타고 온애들 올 수 있다!!!!


병원이 있으니 점령해주면 애들 자동으로 피 회복!(보병)


아쉽게도.. 이 토마호크는 살릴 방법이 없다 ㅠㅠ

저 stone wall에 막혀서 나올수도 없고 그렇다고 공항을 뽀갤수도 없는 상황이고

총질로 막힐 F-22도 아니고 눈물을 머금고 빠이 ㅠㅠ


패트리어트 뽀개기 위한 토마호크라니 ㅠㅠ


악마의 F-22 ㅠㅠ


대신 toxic tractor를 주는데 벙커 깨는데 짱

대신에 속도가 느리니 하나당 한놈 정도로 돌아가며 꺠야 한다 ㅠㅠ


발전소 뽀개라는데 점령 ㅋㅋ

근데 몇개는 접근 불가 위치인듯 애들 막 끼고 난리 ㅠㅠ


중앙 상단의 건물에서 독 트럭이 배달하는 데 순간적으로 300$ 증가

흐음.. 이걸로 잘 하면 barrack 먹은거 생산할 수 있을까 싶다가 걍 포기


독이... 돈이었어!??!?







'게임 > c&c generals' 카테고리의 다른 글

c&c generals zero hour - china 1  (0) 2016.08.13
c&c generals zero hour - gla 5  (2) 2016.08.07
c&c generals zero hour - gla 3  (0) 2016.07.24
c&c generals zero hour - gla 2  (0) 2016.07.23
c&c generals zero hour - gla 1  (0) 2016.07.23
Posted by 구차니

니들이 무슨 옥션이냐 ㄷㄷㄷ

26일부터 차례로 배송한다더니 25일날 도착을 하네 ㄷㄷㄷ


2016/07/21 - [개소리 왈왈/정치관련 신세한탄] - lg 에어컨(신형) 필터 교체 신청



어? 다시 보니

이번달 7월.. 정말 저번달 부터 교체해준거라면...

뉴스에서 늦게 터진거고 대기업들은 이미 3M 필터 교환이 진행중이었다는 의미?




'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

지름신님 오셔야 하나..  (0) 2016.10.09
되는게 없구만 ㅠㅠ  (0) 2016.10.08
지친다  (2) 2016.07.05
망할 놈의 회사  (0) 2016.06.30
일주일 만에 택배도착  (0) 2016.06.04
Posted by 구차니

매형 생일이라 샤브샤브 갔다가 발견한 피규어

어.. 먼가 허전하다? ㅋㅋㅋ



'개소리 왈왈 > 사진과 수다' 카테고리의 다른 글

쌍무지개  (0) 2016.08.29
장노출 테스트 - 자동차 궤적사진  (0) 2016.08.13
보름달  (0) 2016.07.19
블루베리.. 그리고 우담바라?  (0) 2016.06.11
퇴근길 저녁노을  (0) 2016.06.06
Posted by 구차니
게임/c&c generals2016. 7. 24. 23:28

















'게임 > c&c generals' 카테고리의 다른 글

c&c generals zero hour - gla 5  (2) 2016.08.07
c&c generals zero hour - gla 4  (0) 2016.07.26
c&c generals zero hour - gla 2  (0) 2016.07.23
c&c generals zero hour - gla 1  (0) 2016.07.23
c&c generals zero hour - usa 5  (0) 2016.07.22
Posted by 구차니
게임/c&c generals2016. 7. 23. 22:41










적군중에 숨어있는 놈들이 왜이렇게 많은거야?!



받아라 나의 스커드를!!!!


여기를 점령하라는데... 갈수가 없다!!!


특수(?)기술로 땅굴 파주는게 있어서

그걸 통해 터널네트워크로 보내면 되니까

즉.. 내가 안 짓는 녀석이라 병력을 이동 시키려면

일꾼을 데려와서 터널 네트워크를 뚫어야 한다는... ㅠㅠ





'게임 > c&c generals' 카테고리의 다른 글

c&c generals zero hour - gla 4  (0) 2016.07.26
c&c generals zero hour - gla 3  (0) 2016.07.24
c&c generals zero hour - gla 1  (0) 2016.07.23
c&c generals zero hour - usa 5  (0) 2016.07.22
c&c generals zero hour - usa 4  (0) 2016.07.18
Posted by 구차니
게임/c&c generals2016. 7. 23. 22:38

항상 그렇지만 easy로 ㅋㅋ

그나저나 gla를 한글로 치니 힘이네? ㅋㅋㅋ











보급기지 점령하니 나에게 돈을 주네 ㅋㅋㅋㅋ

UN 땡스!






'게임 > c&c generals' 카테고리의 다른 글

c&c generals zero hour - gla 3  (0) 2016.07.24
c&c generals zero hour - gla 2  (0) 2016.07.23
c&c generals zero hour - usa 5  (0) 2016.07.22
c&c generals zero hour - usa 4  (0) 2016.07.18
c&c generals zero hour - usa 3  (0) 2016.07.18
Posted by 구차니
게임/c&c generals2016. 7. 22. 22:59

그냥 물량으로 미는게 미국의 정석!





















'게임 > c&c generals' 카테고리의 다른 글

c&c generals zero hour - gla 2  (0) 2016.07.23
c&c generals zero hour - gla 1  (0) 2016.07.23
c&c generals zero hour - usa 4  (0) 2016.07.18
c&c generals zero hour - usa 3  (0) 2016.07.18
c&c generals zero hour - usa 2  (0) 2016.07.17
Posted by 구차니