블로그 이미지
:: OTL ≠ 좌절 :: OTL = 운(運) ::
coriahn

Notice

Archive

  • 19,286total
  • 12today
  • 58yesterday

'2010/03'에 해당되는 글 5건

  1. 2010/03/09 rpm과 dpkg 비교 분석
  2. 2010/03/02 DDNS 서버 관련
  3. 2010/03/02 linux 에서 dvd 2 avi
  4. 2010/03/02 shell
  5. 2010/03/02 주요 북마크
2010/03/09 14:44 분류없음
0. 연구 목적
  지금까지 Redhat, SUSE 리눅스만 사용해서 패키지 다루는 방법은 rpm이 아주 익숙했다.
최근 우분투(데비안기반)를 사용하니 rpm과 달라서 불편했다. 그래서 아주 자주 사용하는 옵션들만 비교하여 목록을 만들고자 하였다. 


1. 주요 옵션들 요약

  RPM  DPKG 
 설치된 리스트 확인  rpm -qa  dpkg -l 
 패키지 설치  rpm -Uvh $PKG_NAME  dpkg -i $PKG_NAME
 페키지 삭제  rpm -e $PKG_NAME   dpkg -r $PKG_NAME 
 파일로 패키지 검색  rpm -qf $PKG_NAME   dpkg -S $PKG_NAME 
 패키지에 포함된 파일리스트 출력  rpm -ql $PKG_NAME   dpkg -L $PKG_NAME 
 페키지 정보 출력  rpm -qi $PKG_NAME   dpkg -s $PKG_NAME 
 

 자동업데이트 도구  yum  apt-get
 설치  yum install $PKG_NAME   apt-get install $PKG_NAME 
 업데이트  yum update $PKG_NAME   apt-get update $PKG_NAME 
 삭제  yum erase $PKG_NAME 


2. 기타
   나머지 옵션은 내가 필요하면 추가 할 것이다.

저작자 표시
posted by coriahn
2010/03/02 21:00 잼있어보이는군..
http://gnudip2.sourceforge.net
http://gnudip2.sourceforge.net/gnudip-www/
저작자 표시
posted by coriahn
2010/03/02 16:52 분류없음

출처 : http://idolinux.blogspot.com/2008/09/encode-dvd-to-avi-with-mplayer-on-linux.html


영어이다..

mplayer설치시 옵션을 주지 않아서 아직 변한하지는 못했음


1. dvd 에서 파일을 dump로 내린다.

]$ mplayer dvd://1 -v -dumpstream -dumpfile dump.vob
또는

]$ mplayer /mnt/iso/VIDEO_TS/VTS_01_1.VOB -v -dumpstream -dumpfile dump.vob

...
Core dumped ;)

dvd://1            dvd 디스크 주소형식은 /dev/dvd 장치마운트한 경우 사용한다.

-v                과정을 보여준다

-dumpstream    dumpstream으로 열어서 화면에 영상을 출력하지 않는다.

-dumpfile 파일명 파일이름을 지정한다.


2. 파일 화면 정보를 확인한다.

]$ mplayer -aid 128 -vf cropdetect dump.vob

파일을 재생하면서

[CROP] Crop area: X: 0..719  Y: 50..475  (-vf crop=720:416:0:56).
메시지를 뿌린다. -vf crop=720:416:0:56 정보를 필요로 한다.
(원 게시글에는 audio level low, black bar 등의 여부를 노트하라고 되어 있다)


3. 실제 재인코딩한다.

]$ mencoder -ovc xvid -oac mp3lame -xvidencopts fixed_quant=4 -lameopt cbr:br=192:aq=1 -aid 128 -vf crop=720:416:0:56,yadif -lameopts vol=3 -o dump.avi dump.vob


에러메시지 mplayer 설치시 옵션에 있어야 하는가보다

 MPlayer was compiled without libmp3lame support.
-xvidencopts is not an MEncoder option



원본

Encode a DVD to AVI with MPlayer on Linux

MPlayer and MEncoder provide a fast and high-quality way to convert and play your media. This is a simple, three-step, command-line way to rip your favorite DVD into an AVI file. The quality of Xvid MPEG4 for video and Lame MP3 for audio is phenomenal for the file size. The final output should be almost indistinguishable from the original source disc.

First, dump the contents of the main title to a big fat vob file, usually around 5 or 6 gigabytes:
$ mplayer dvd://1 -v -dumpstream -dumpfile dump.vob
...
Core dumped ;)


Second, playback the dump to confirm! your settings:
$ mplayer -aid 128 -vf cropdetect dump.vob
[CROP] Crop area: X: 0..719 Y: 60..414 (-vf crop=720:352:0:62).0
...


Take note of a few things:
  • is the audio level low?
  • is there combing/jagged-edges during fast motion from interlacing?
  • are there black bars in the video?


Third, run the actual re-encode:
$ mencoder -ovc xvid -oac mp3lame \
-xvidencopts fixed_quant=4 -lameopts cbr:br=192:aq=1 -aid 128 \
-vf crop=720:352:0:62,yadif -lameopts vol=3 \
-o movie.avi dump.vob
Pos:1564.3s 46902f (39%) 15.35fps Trem: 78min 1509mb A-V:0.032 [2979:191]
...


Let's review the above command line options, in order:
  • output video codec is xvid mpeg4
  • output audio codec is lame mp3
  • fixed quantizer of 4 provide high video quality with a single rendering pass
  • 192 constant bitrate is a good sweet spot for audio quality
  • audio id 128 is usually the main English language track
  • crop will remove black bars (use the values output during dump playback)
  • yadif is the best deinterlacer choice (only use this if you saw combing)
  • vol=3 will boost audio gain (only use if audio was low)
  • output to movie.avi, read in from dump.vob
저작자 표시
posted by coriahn
2010/03/02 16:43 잼있어보이는군..
cat /etc/passwd | awk -F[:] '{print $1}'
password 파일에서 ID 추출

최소값
#a=11;b=25;c=35;d=2;echo -e "$a\n""$b\n""$c\n""$d"|sort -g|head -1
#2

최대값
#a=11;b=25;c=35;d=2;echo -e "$a\n""$b\n""$c\n""$d"|sort -g|tail -1
#35
저작자 표시
posted by coriahn
2010/03/02 16:21 Bookmarks
http://ticket.interpark.com/Community/TicketSpot/SpotInfo.asp
:: 50% 할인 티켓

http://www.hanrss.com/
:: hanRSS

http://roman.cs.pusan.ac.kr/
:: 로마자 변환긴

http://www.kloth.net/services/
:: 해외에서 국내로 접속 환경 테스트

http://dd-wrt.com/wiki/index.php/Development
http://www.bitsum.com/firmware_mod_kit.htm
:: dd-wrt 공유기  펌웨어

http://www.virtualbox.org/
http://www.vmware.com/
가상화 서버 사이트

http://linuxexplore.wordpress.com/how-tos/l2tp-vpn-using-rp-l2tpd/


http://www.zirumi.com/

http://한글무료도메인.kr

http://www.kernel.bz/
저작자 표시
posted by coriahn