프로그램 사용/CUPS2018. 12. 20. 14:18

궁금해 하던

#PDF-BANNER

Template

Show 

요녀석의 출처인가?

[링크 : https://www.cups.org/doc/spec-banner.html]


+

2018.12.21

#PDF-BANNER 를 삭제하고 출력하니 그냥 텍스트로 출력된다.


+

2018.12.21

췟 안되잖아!?

pi@raspberrypi:~/src $ cat cups_testpage

#CUPS-BANNER


# What to show on the cover page

Show job-id job-name job-originating-user-name time-at-creation


$ lp cups_testpage

lp: Unsupported document-format "application/vnd.cups-banner".


이미 깔려있고 설치한다고 해서 먼가 달라지진 않는다. cups 설정에서 필터 사용하도록 활성화 하는게 있나?

$ apt-cache search cups-filters

cups-filters - OpenPrinting CUPS Filters - Main Package 

[링크 : https://github.com/apple/cups/issues/5173]

Posted by 구차니
프로그램 사용/CUPS2018. 12. 20. 14:11

특이하게도 아래 명령은 cups 패키지 안깔아도 있네(라즈베리 기준)

아무튼 아래의 명령을 하면 외부에서도 631번 포트를 통해 cups 관리 페이지 접근이 가능해진다.


# cupsctl --remote-admin --remote-any --share-printers 

[링크 : https://askubuntu.com/questions/23936/how-do-you-administer-cups-remotely-using-the-web-interface]

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

lpoptions 로 기본 프린터 지정하기  (0) 2018.12.21
cups banner file format  (0) 2018.12.20
리눅스에서 프린터 추가  (0) 2018.12.20
cups / lp로 출력하기  (0) 2018.12.18
cups.. 드라이버 경로 print$  (0) 2016.06.16
Posted by 구차니
프로그램 사용/CUPS2018. 12. 20. 14:04

대개 CUPS나

우분투의 프린터 프로그램을 통해서 추가하라고 하네..

일단 콘솔로 추가하는거 찾아 보니 cups를 기반으로 하는 듯..


[링크 : https://blog.ostermiller.org/ubuntu-printer-install-command-line/]

Posted by 구차니

걍 아이피 주면 될줄 알았는데 그건 dbname으로 인식하고

-h 옵션 뒤에 호스트 아이피나 도메인을 입력하면 된다.

$ mysql -u fooUser -p -h 44.55.66.77 

[링크 : https://support.rackspace.com/how-to/mysql-connect-to-your-database-remotely/]

Posted by 구차니
프로그램 사용/CUPS2018. 12. 18. 15:54

lp 파일명

lp 파일명 -o page-top=400 -o page-bottom=400


아래처럼 하니 사진이 무지 작게 나온다. 단위가 멀까?


-o page-bottom=N

-o page-left=N

-o page-right=N

-o page-top=N

Sets the page margins when printing text files. The values are in points - there are 72 points to the inch. 

[링크 : http://www.it.uu.se/datordrift/maskinpark/skrivare/cups/man-lp.html]


+

400/72=5.5 인치(?)

5.5 * 2.54 = 14.097 cm

A4 사이즈가 210mm*297mm 니까 

세로로 찍을때 bottom / top 지정해주면

297 - 140*2 = 17mm 정도 크기로 출력하게 될듯?

Posted by 구차니

열지도 처럼 가중치 줘서 출력 가능하고

출력하는 색상을 바꿀수 있는 듯.

(안개 출력하기 좋으려나?)


[링크 : https://navermaps.github.io/maps.js/docs/data/earthquake_weight.json

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

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

Posted by 구차니

-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 구차니

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

별다르게 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 구차니

svn 이랑은 또 개념이 달라서 한참을 봐야 할듯..

걍 branch랑은 다르게 편하게 좀 쓸 수 있을것 같기도 하고..


[링크 : https://git-scm.com/book/ko/v1/Git의-기초-태그]

Posted by 구차니