-fflags nobuffer는 초기 속도에 영향을 안주는 것 같네..


probesize integer (input)

Set probing size in bytes, i.e. the size of the data to analyze to get stream information. A higher value will enable detecting more information in case it is dispersed into the stream, but will increase latency. Must be an integer not lesser than 32. It is 5000000 by default.

[링크 : https://www.ffmpeg.org/ffmpeg-formats.html#Format-Options]


-r[:stream_specifier] fps (input/output,per-stream)

Set frame rate (Hz value, fraction or abbreviation).


As an input option, ignore any timestamps stored in the file and instead generate timestamps assuming constant frame rate fps. This is not the same as the -framerate option used for some input formats like image2 or v4l2 (it used to be the same in older versions of FFmpeg). If in doubt use -framerate instead of the input option -r.


As an output option, duplicate or drop input frames to achieve constant output frame rate fps.

[링크 : https://ffmpeg.org/ffmpeg.html#Video-Options]


Also setting -probesize and -analyzeduration to low values may help your stream start up more quickly (it uses these to scan for "streams" in certain muxers, like ts, where some can appears "later", and also to estimate the duration, which, for live streams, the latter you don't need anyway). This should be unneeded by dshow input.


Reducing cacheing at the client side can help, too, for instance mplayer has a "-nocache" option, other players may similarly has some type of pre-playback buffering that is occurring. (The reality is mplayers -benchmark option has much more effect). 

[링크 : https://trac.ffmpeg.org/wiki/StreamingGuide#Latency]

    [링크 : https://stackoverflow.com/.../how-to-minimize-the-delay-in-a-live-streaming-with-ffmpeg]


+

2018.12.20

ffmpeg -h full | grep 'analyzeduration\|probesize'


-probesize         <int>        .D.... set probing size (from 32 to INT_MAX)

-analyzeduration   <int>        .D.... specify how many microseconds are analyzed to probe the input (from 0 to INT_MAX) 

[링크 : https://lists.ffmpeg.org/pipermail/ffmpeg-user/2013-March/014297.html]


고정적으로 5초 이상 잡히는건 이 녀석 때문이었던 듯?

analyzeduration integer (input)

Specify how many microseconds are analyzed to probe the input. A higher value will enable detecting more accurate information, but will increase latency. It defaults to 5,000,000 microseconds = 5 seconds. 

[링크 : https://www.ffmpeg.org/ffmpeg-all.html]


+

-probesize 32 -analyzeduration 0 

만세~!

'프로그램 사용 > ffmpeg & ffserver' 카테고리의 다른 글

ffmpeg h264 encoding 옵션  (0) 2019.02.22
ffmpeg으로 비디오 비트레이트 바꾸기  (0) 2019.02.22
ffmpeg / ffplay cli interactive interface  (0) 2018.11.30
ffmpeg concat  (0) 2018.11.05
ffmpeg concat  (0) 2018.10.10
Posted by 구차니

ajax 콜 할때 success에 콜백함수를 쓰는게 아니라

직접 특정 함수로 바로 넘기는 것도 가능하네?

어떻게 보면 당연한건데 왜 생각을 못했을까.. -ㅁ-


$.ajax({

    url: HOME_PATH +'/data/earthquake_weight.json',

    dataType: 'json',

    success: startDotMap

});


function startDotMap(data) {

    var dotmap = new naver.maps.visualization.DotMap({

        map: map,

        data: data.coordinates,

        radius: 20

    });

}

[링크 : https://navermaps.github.io/maps.js/docs/tutorial-5-visualization-dotmap-w.example.html]

'Programming > javascript & HTML' 카테고리의 다른 글

css text-indent  (0) 2018.12.28
localstorage sessionStorage  (0) 2018.12.18
js __proto__  (0) 2018.12.14
canvas dataURL to Formdata(file)  (0) 2018.12.07
js 부모창 변수 접근하기  (0) 2018.12.04
Posted by 구차니
Programming/jquery2018. 12. 14. 16:45

ajax를 콜하기 전에 ajax의 요청 옵션을 지정하는 녀석.

URL을 일괄 변경하는법을 고민했는데 생각해보니.. 이녀석으로는 prefix만 지정은 못하니 의미 없을 듯?


$.ajaxSetup({

  url: "ping.php"

});


$.ajax({

  // url not set here; uses ping.php

  data: { "name": "Dan" }

}); 

[링크 : https://api.jquery.com/jquery.ajaxsetup/]

[링크 : https://www.w3schools.com/jquery/ajax_ajaxsetup.asp]

[링크 : http://findfun.tistory.com/389]

'Programming > jquery' 카테고리의 다른 글

ajax / promise / jquery  (0) 2019.01.04
ajax async와 jquery  (0) 2019.01.04
jquery draggable  (0) 2018.12.09
jquery select 인덱스 얻기  (0) 2018.12.05
jquery 셀렉터 - 특정 문장으로 시작하는 id 찾기  (0) 2018.11.07
Posted by 구차니

자바 스크립트는 프로토타입 언어라고 한다..(아니 인터프리터 언어 아니었어 -ㅁ-?)

아무튼.. naver api 보다가 이상한게 나와서 분석하다 막히는 중.. 끄응...


[링크 : https://medium.com/@bluesh55/javascript-prototype-이해하기-f8e67c286b67]

[링크 : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/proto]

[링크 : https://msdn.microsoft.com/ko-kr/library/dn342818(v=vs.94).aspx]


'Programming > javascript & HTML' 카테고리의 다른 글

localstorage sessionStorage  (0) 2018.12.18
ajax success 콜백 사용하기  (0) 2018.12.15
canvas dataURL to Formdata(file)  (0) 2018.12.07
js 부모창 변수 접근하기  (0) 2018.12.04
크로스 브라우징 관련..  (0) 2018.11.30
Posted by 구차니
Programming/node.js2018. 12. 14. 10:34

라즈베리에 node-red 가지고 릴레이 달고 장난질 쳐볼까나...


[링크 : https://nodered.org/docs/getting-started/running]

[링크 : https://nodered.org/docs/platforms/windows]

[링크 : https://nodered.org/docs/hardware/raspberrypi]

'Programming > node.js' 카테고리의 다른 글

npm npx yarn bower  (0) 2019.01.28
node-red rpi 접속  (0) 2018.12.20
node.js express static  (0) 2018.12.11
node.js sso  (0) 2018.12.11
node.js rpi gpio  (0) 2018.12.08
Posted by 구차니
이론 관련/IoT2018. 12. 13. 20:22


Mobius is the open source IoT server platform based on the oneM2M (http://www.oneM2M.org) standard

[링크 : https://github.com/IoTKETI/Mobius]


Mobius 2.0

Mobius is an open source software of oneM2M-based IoT Server Platform based on Node.js. (oneM2M Release 2.0)

[링크 : http://www.iotocean.org/download/]

[링크 : http://www.iotocean.org/main/]


[링크 : http://protocol.knu.ac.kr/tech/CPL-TR-15-03-Mobius.pdf]


[링크 : http://developers.iotocean.org/archives/module/mobius]

'이론 관련 > IoT' 카테고리의 다른 글

node-red  (0) 2018.12.13
WIPS 스터디  (0) 2018.12.12
CoAP 관련 스터디  (0) 2018.12.12
MQTT 사례 / 구현  (0) 2018.12.12
iot smart plug api(unofficial)  (0) 2018.12.11
Posted by 구차니
개소리 왈왈/컴퓨터2018. 12. 13. 16:10

싼게 역시 비지떡인가..

그냥 미니 지퍼팩에 10개 들은채로 왔다 -_-a

머.. 싸니까~ 하고 넘어 가긴 하는데


문득.. 든 생각

샀는데 똑같으면 어쩌지?

(어쩌긴.. 샀으니 2개월 * 10개 = 20개월 = 약 2년 쓰고 다이소 사서 분해하고 살야야지..)

Posted by 구차니

예제 자체는 클릭시 특정 위치로 이동하는 것이지만

별다르게 float div를 안쓰고 안에다 버튼을 만드는 용도로도 쓸 수 있을 듯


[링크 : https://navermaps.github.io/maps.js/docs/tutorial-4-control-custom-p1.example.html]

Posted by 구차니

의외로(?) 마커의 mouse over 스타일 지정하는걸 발견..

그나저나 예제 코드 드럽게 기네..


[링크 : https://navermaps.github.io/maps.js/docs/tutorial-marker-intersect.example.html]

Posted by 구차니

머 방어본능일수도 있겠지만


1. 요즘 시대에 읽을게 넘쳐나는데 굳이 구세대 적인 기준인 "인쇄된 책자"에 기준을 두어야 할까?

그리고 eBook 등이 아니어도 읽을 꺼리는 넘쳐난다.

(머 먹고 살기 팍팍해서 기술내용만 읽어도 바쁘고, 

기술서적들 내용만 해도 저런 종이에게 미안한 책 몇십권 분량 나올 듯)


2. 소설이냐 수필이냐 아니면 바이블이냐?

고작(?) 소설에 부들부들 한다고 그 성별들이 말하지만

반대로 말하면 고작 그따위 소설을 숭배하고 과장해서 받아들이는

그 사람들이 문제라고는 생각을 해서도 안되는 건가?


3. 소비의 방식이니 페미굿즈로 인한 서적 판매량을 인정해야 하나?

머.. 다른 의미로의 백래시 겠지만

정말 그 성별들이 그 내용을 읽고 자화자찬을 하고 있지만

그 내용 자체를 이해하고 분석하기 위한 더 많은 백데이터 없이

단순히 그 페미굿즈를 소비하고 SNS에 자랑하기 위한 용도로 소비하는 상황에서

그 판매량이 어떠한 유의미한 경향을 보여준다고 할 수 있을까? 싶기도 하다.

물론 출판사 입장에서는 돈이 되니까 좋긴 하겠지만

그러한 소비 방향 자체가 옳은지 그른지 까지 판단할 이유는 없으니 산소가스 불어 넣으면서

남녀갈등을 부추기고 있는 거겠지만..


[링크 : https://news.v.daum.net/v/20181213033631846]



+

솔찍히 제목에 써있는대로 82년 여자가 아닌 남자라서 생각하게 되는 이 책의 어이없는 이유는

내 기억상에 있던 시간 흐름과 맞지 않고(머 지역적인 차이도 있을수 있지만)

그 시대에 있었던 일반적인 사건과는 너무 동 떨어진 다른 세대의 삶을 자신의 나이에 억지로 끌여들었으며


남자들에게는 '당연한 것'으로 치부되었을 뿐인 모든 것들을

여자들에게는 당연하지 않은 것으로 공감폭력을 휘드르는 광신도들 때문이었다.


피해의식을 기반으로(성장기에 아버지에 의한 이니.. 피해의식이라고 하긴 애매한가?)

선민의식에서 이어지는(코르셋 벗지 않으면 안된다는 둥, 선각자라고 스스로를 높임)

수평폭력(남친있는 여자를 흉자라니 어쩌니 하면서 동일 여성에서 욕하니)을 휘두르니


역사적으로도 악명이 높았던 '종교'나 십자군으로 요약될 '성전'이랑 다를게 머가 있을까?

'개소리 왈왈 > 페미니즈음' 카테고리의 다른 글

오늘자 페미 뉴스  (2) 2018.12.29
맨박스가 없다고?  (2) 2018.12.27
오늘자 페미 기사  (4) 2018.12.07
오늘의 늬우스  (0) 2018.12.03
대한민국의 미래가 안보이네  (4) 2018.11.16
Posted by 구차니