프로그램 사용/VLC2010. 1. 26. 13:43
youtube는 주소가 아래와 같이 http로 나온다.
http://www.youtube.com/watch?v=Hz86TsGx3fc


혹시나 해서 VLC의 네트워크 스트리밍플레이 기능에 주소를 넣었더니!!


알아서 잘 재생한다 OTL


http://youtube.com/get_video?video_id=Hz86TsGx3fc&t=vjVQa1PpcFPX_-4fVcvo3Rpy39pZ_nwt5-HPSBmsva0%3D
http://youtube.com/get_video?video_id=Hz86TsGx3fc&t=vjVQa1PpcFPs3v8rnDY3-mp1ptSqFzKAem6jcmYB2tY%3D&fmt=35

위의것은 기본 주소로 플레이한 주소이고
아래것은 기본 주소에 &fmt=35 옵션을 주어 플레이한 주소이다.
중간의 파란색은 token 값 같은데 플레이마다 변화되는듯 하다.

유튜브 페이지를 열어서 소스를 보니
    <script type="text/javascript">
        ...
        yt.setConfig({
            'SWF_ARGS':
                   ...
                   {"t": "vjVQa1PpcFPGZu0xo_69WU8f__RZMX6s3tda2xfxQ44%3D"},
                   ...
            });

이런식으로 "t" 변수에 값을 넣어준다.
다른 문서들에 비하면 "&t="를 찾아라고 하는데, 시간이 지나면서 내용이 변경된듯 하다.

아무튼, fmt=35로 하면 아래와 같이 h264로 재생이 된다.


[링크 : http://darksoft.co.kr/410]
[링크 : http://hallang.tistory.com/217]

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

VLC 1.0.4 cross compile + busybox  (0) 2010.02.02
의미는 없는 Linux / Windows VLC 차이  (0) 2010.01.26
youtube mobile on VLC  (0) 2010.01.18
VLC compile [링크]  (0) 2010.01.15
ffmpeg + AMR + x264 + VLC?  (0) 2010.01.14
Posted by 구차니

내가 사용중인 캐릭터는 난도질에 익숙한 리시타이다.
버림받은 남캐(!) 이지만 그래도 꾿꾿이!



그딴거 필요 없다. 노홍철이다 ㄱ-



키보드 조작 기준으로
칼질은
S+D
S+S+D
S+S+S+D
S+S+S+S+D
S+S+S+S+S+S+S+S+...+D (싸우전드 니들)

멱살잡고 배때리기
W+S+D
W+S+S+D
W+S+S+S+D
이런 조작이 가능하다.

S+S+D 이후에 A로 회피가 가능하고 치프틴은 2번 때리고 피하는 조금은
재미없는 전투로 이어나가면 안 맞고 할수 있을것 같다.
Posted by 구차니
개소리 왈왈2010. 1. 25. 22:36
1. 출근했더니 소장님께서 서버 화면 안켜진다고 하시길래
    사람도 없으니 후딱 서버 끄고 확인해보니.. 처참하게 폭발한 캐패시터
    2009.9.15일에 교체한 그래픽 카드가 4달만에 폭발했다...
    덕분에 기안올린다고 정신없는 하루 ㄱ-


콘덴서가 폭발하면서 PCI-Ex에 붙은 잔해

콘덴서가 폭발하면서 그래픽카드에 붙은 잔해

1.5 서버가 날아갔으니 출장용 노트북으로 이전
      물론 서버 이전도 만만찮은 작업.
      nfs랑 LVM mount 하고 복사 걸어 놓으니.. 한 30기가 복사하는데 4시간 걸린듯.
      자다가 깨도 복사가 안끝났어! 상황이랄까 ㄱ-

2. 초대장을 마지막으로 받은게 언제인지도 모를정도로 살다가 맨날 초대장만 주는 공지가 뜨면 징징댔는데
드디어 5장 들어왔다. 우어어어어어!!! 1년 만인가?

'개소리 왈왈' 카테고리의 다른 글

삶이 빡시다  (0) 2010.01.30
오늘도 달댕이  (12) 2010.01.28
아이스크림  (0) 2010.01.22
오늘도..  (0) 2010.01.22
핸드폰 위성추적 해준다고?  (5) 2010.01.20
Posted by 구차니
Python 2.6 이라고 명시한 이유는, 3.0 에서는 없어지거나 이름이 바뀌었기 때문이다.

htmllib
Deprecated since version 2.6: The htmllib module has been removed in Python 3.0.
urlib
The urllib module has been split into parts and renamed in Python 3.0 to urllib.request, urllib.parse, and urllib.error.
httplib
The httplib module has been renamed to http.client in Python 3.0. The 2to3 tool will automatically adapt imports when converting your sources to 3.0.

아무튼, 파이썬 프로젝트 분석시에 버전 정보가 애매모호하면 htmllib가 존재하면 2.6.x 대라고 이해하면 되겠다.(?)

[링크 : http://docs.python.org/contents.html]
    [링크 : http://docs.python.org/library/htmllib.html]
    [링크 : http://docs.python.org/library/urllib.html]
    [링크 : http://docs.python.org/library/httplib.html]
Posted by 구차니
Linux/Ubuntu2010. 1. 25. 12:28
FC6 참.. 오래된 녀석인데.. 아무튼 이녀석 OS를 깔았떤 하드를 우분투에 연결하니 인식이 안된다.
/boot 만 인식해서 마운트를 할 수 있는데
그 아래의 것들은 LVM(Logical Volume Manager)로 되어있기 때문이다.


아무튼 필요한 패키지는
$ sudo apt-get install lvm2
로 설치하고

$ sudo vgscan
  Reading all physical volumes.  This may take a while...
  Found volume group "VolGroup00" using metadata type lvm2
$ sudo vgchange -a y
  2 logical volume(s) in volume group "VolGroup00" now active
로 LVM을 검색후 활성화 해준다.

그리고 마운트는 별다른 옵션없이 붙었다.
$ sudo mount /dev/VolGroup00/LogVol00 /mnt/lvm

modprobe 하라는데 없다고 에러나지만 별다른 문제 없이 작동한다.

$ mount
...
/dev/mapper/VolGroup00-LogVol00 on /media/sdb type ext3 (rw)
ext3로 rw 하게 붙었다!
Posted by 구차니
써는 맛을 느끼려고(!) 리시타로 했다.
쌍검 전사인데 역시나 재미는 있다.

일단은 아직은 초기라서 잦은 긴급점검(하루에 세번을 하다니)이 심하지만
마비노기와 유사하지만 실사 그래픽의 힘을 입어 와우빠인 우리 애인도 마음들어 한다.

마비는 마비인지라.. 퍼거스가 출현하시고 대사도 비슷한다.
너.. 이거 뽀개먹었음 니 머리가 뽀개지는겨 ㄱ-? 알간?


한가지 특이한건 이번에 투입된 '이비' 캐릭터
아직 키우진 않았고, 생성만 했는데 특이점이 발견되었다. ㅋㅋㅋ




조절가능한 키와, 가슴크기!!!


*-_-*
Posted by 구차니
gprof는 기본적으로 flat view로 출력된다.
index % time    self  children    called     name
                0.00    0.00     100/100         tt [3]
[1]      0.0    0.00    0.00     100         aa [1]
-----------------------------------------------
                0.00    0.00     100/100         tt [3]
[2]      0.0    0.00    0.00     100         bb [2]
-----------------------------------------------
                0.00    0.00     100/100         main [9]
[3]      0.0    0.00    0.00     100         tt [3]
                0.00    0.00     100/100         aa [1]
                0.00    0.00     100/100         bb [2]
-----------------------------------------------
아무튼 아래와 같은 형식의 출력이 보이는데, 참 봐도 무슨 소리인지 모르겠다.

간단하게 생각하자면
[%d] 값은 함수이고, 숫자 나온 것에 대한 구조를 보여준다.
[1] 은 aa() 를 실행한 녀석이 tt() 이라는 의미이고
[2] 는 bb() 를 실행한 녀석이 tt()
[3] 는 tt()를 실행한 녀석이 main() 이라는 이야기이다.

tt()
{
  aa();
  bb();
}

main()
{
   tt();
}

이런 구조를 지니게 된다.

만약, 하나의 함수를 여러개에서 호출한다면
위와 같이 [%d] 위에 하나씩 있는게 아니라 여러개가 나타나게 된다.

아래는 Kprof에서 실행한 결과이다.(main 함수는 어디로 가출한겨 ㄱ-)





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

gcov와 gcovr  (0) 2023.07.20
gcovr - gocv 를 html로  (0) 2023.07.10
gprof gui  (0) 2023.07.10
gcc -p -pg  (0) 2016.02.25
gcov, gprof  (0) 2010.01.23
Posted by 구차니
프로그램 사용/coLinux2010. 1. 23. 20:49
colinux가 예전에 user mode linux라고 듣기는 했지만,
그게 UML 이라고 생각을 전혀 하지 못하다니 ㄱ-

아무튼 UML을 이용해서 독립적으로 구동되게 한것이 바로 colinux 이고,
가상화의 한종류 중에 하나이기도 하다.

[링크 : http://www.hanb.co.kr/network/view.html?bi_id=1395]  UML vs KML
[링크 : http://www.hanb.co.kr/network/view.html?bi_id=267] 시스템 재해 복구 연습 해보기

[링크 : http://www.colinux.org/]
[링크 : http://user-mode-linux.sourceforge.net/]
Posted by 구차니
gcov - coverage testing tool
[링크 : http://korea.gnu.org/manual/release/gcov/gcov_1.ko.html]
[링크 : http://linux.die.net/man/1/gcov]

gcov 는 사용하지 않는 함수를 찾는데 유용한 유틸리티 이다.
이녀석을 사용하기 위해서는 컴파일시 -fprofile-arcs -ftest-coverage 두개의 옵션을 줘야 하는데
gcc 문서를 보니 아래와 같이 --coverage 하나만 주어도 무방할 것으로 보인다.(2010.01.24 추가 : --coverage만 해도 된다)
위의 옵션을 주고 컴파일을 하면, [파일명.gcno] 라는 파일이 생성되고,
파일을 실행하면 [파일명.gcda] 라는 파일이 생성된다. gcov [소스파일] 을 입력하면 분석을 한다.

-fprofile-arcs
    Add code so that program flow arcs are instrumented. During execution the program records how many times each branch and call is executed and how many times it is taken or returns. When the compiled program exits it saves this data to a file called auxname.gcda for each source file. The data may be used for profile-directed optimizations (-fbranch-probabilities), or for test coverage analysis (-ftest-coverage). Each object file's auxname is generated from the name of the output file, if explicitly specified and it is not the final executable, otherwise it is the basename of the source file. In both cases any suffix is removed (e.g. foo.gcda for input file dir/foo.c, or dir/foo.gcda for output file specified as -o dir/foo.o).

--coverage
    This option is used to compile and link code instrumented for coverage analysis. The option is a synonym for -fprofile-arcs -ftest-coverage (when compiling) and -lgcov (when linking). See the documentation for those options for more details.

-ftest-coverage
    Produce a notes file that the gcov code-coverage utility can use to show program coverage. Each source file's note file is called auxname.gcno. Refer to the -fprofile-arcs option above for a description of auxname and instructions on how to generate test coverage data. Coverage data will match the source files more closely, if you do not optimize.

[링크 : http://linux.die.net/man/1/gcc]



gprof - display call graph profile data
[링크 : http://linux.die.net/man/1/gprof]
[링크 : http://kprof.sourceforge.net/] + [링크 : http://www.graphviz.org/]

프로파일링은 어떤 함수가 몇번이나 불려지고(call), 누가 이 함수를 부르는지(call tree)
그리고 어떤 함수가 실행하는데 오래걸리는지를 분석하는 방법이다.
일반적으로 -pg 옵션을 주고 컴파일 한뒤, 한번 실행하면 프로파일링 파일이 생성된다.(정상종료 되어야 생성됨)

프로그램 실행이후에는 gmon.out 파일이 생성되고, 이 파일을 이용하여 분석한다.

-p
Generate extra code to write profile information suitable for the analysis program prof. You must use this option when compiling the source files you want data about, and you must also use it when linking.

-pg
Generate extra code to write profile information suitable for the analysis program gprof. You must use this option when compiling the source files you want data about, and you must also use it when linking.

[링크 : http://linux.die.net/man/1/gcc]



"리눅스 디버깅과 성능 튜닝 - 오픈소스 도구를 사용한 문제 원인 발견과 해결"
[링크 : http://www.yes24.com/24/goods/1948002?scode=032&srank=1]

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

gcov와 gcovr  (0) 2023.07.20
gcovr - gocv 를 html로  (0) 2023.07.10
gprof gui  (0) 2023.07.10
gcc -p -pg  (0) 2016.02.25
gprof flat view 이해하기  (0) 2010.01.24
Posted by 구차니
프로그램 사용/u-boot2010. 1. 22. 19:50
denx.de에 나온 메시지는 아래와는 좀 다른데,

GUNZIP ERROR - must RESET board to recover
에러가 발생할경우, 메모리가 부족해서 겹쳐서 제대로 압축을 해제하지 못했을 가능성이 있다고 한다.
그것도 아니라면.. 도대체 머가 문제일까?

   Verifying Checksum ... OK
   Uncompressing Kernel Image ... Error: Bad gzipped data
GUNZIP ERROR - must RESET board to recover

[링크 : http://www.denx.de/wiki/view/DULG/Manual]
    [링크 : http://www.denx.de/wiki/view/DULG/HowCanILoadAndUncompressACompressedImage]
    [링크 : http://www.denx.de/wiki/view/DULG/LinuxHangsAfterUncompressingKernel]
    [링크 : http://www.denx.de/wiki/view/DULG/LinuxUncompressingError]
Posted by 구차니