Saturday, November 19, 2005

ubuntu multimedia howto

Mozilla and Totem Streaming Solution HOWTO
MPlayer도 Mozilla mplayer-plugin으로 스트리밍을 할수 있지만, 그것 없이도 우분투에서Windows Media Player stream의 재생이 가능하다. 단지mozplugger 와 w32codecs 만 설치하고, 표준 totem-xine 팩키지를 사용하게 하면 된다.

0 단계 : w32codecs 설치.

Windows Media Player, Apple's Quicktime, Real Player등이 사용하는 상용 포맷을 재생하려면 압축된 파일을 재생할 수 있도록 풀어주는 코덱을 설치해야 한다. 법률적인 문제들 때문에 이 코덱들은 Marillat repository에서 주 Ubuntu repositories와는 별도로 제공된다. 다음의 방법은 설치법이지만 이에 따른 법률적인 문제는 스스로 책임져야 한다 ㅋㅋㅋ 너무 겁주나?.

/etc/apt/sources.list에 Marillat repository를 추가하고 apt-get update!
그 다음 apt-get install w32codecs로 설치.

1 단계: totem-xine 설치.

totem-gstreamer는 totem-desktop package의 일부이지만, totem-xine package를 다운받으려면 UNIVERSE PACKAGE를 활성화 해야 한다. /etc/apt/sources.list 파일에서 universe repository를 활성화한다.
apt-get update
apt-get install totem-xine : 기존 totem-gstreamer package를 교체한다.

2 단계: mozplugger 설치.

Mozilla Firefox 와 Totem을 링크해 주기위해, 특정 mime types과 applications을 연결해 주는 플러그인이 필요하다. Mozplugger는 Mozilla (Firefox)를 대부분의 application들과 연결해 주는 접착제와 같다.
apt-get install mozplugger.

3 단계 : mozplugger 설정.

mozplugger가 원래 mplayer와 함께 배포되지만, totem-xine으로 대신하게 재설정하는 것은 간단하다.
/etc/mozpluggerrc 파일을 열어서 바꿔준다.
아래 부분을 찾으면:

application/x-mplayer2: wmv,asf,mov: Windows Media
video/x-ms-asf: asf,asx,wma,wax,wmv,wvx: Windows Media
video/x-ms-wmv: wmv: Windows Media

다음 줄을 추가한다:
stream noisy ignore_errors: totem "$file"

No comments: