우분투에서 totem-xine 또는 xine-ui로 영화보기

hokim의 이미지

*win32 코덱 설치
$ vi /etc/apt/sources.list


$ sudo apt-get update
$ sudo apt-get install w32codecs

*플레이어 설치
$ sudo apt-get install totem-xine
또는
$ sudo apt-get install xine-ui

*truefont에서 xine font 만들기
http://xinehq.de/index.php/releases 에서 xine-lib 다운로드
$ tar -xvzf xine-lib-1.0.tar.gz
$ cp xine-lib-1.0/misc/xine-fontconv.c scratch/
$ cd scratch
$ gcc xine-fontconv.c -o xine-fontconv `freetype-config --cflags --libs` -lz
은돋음을 자막폰트로 사용한다면
$ sudo apt-get install ttf-unfonts
$ cp /usr/share/fonts/truetype/unfonts/UnDotum.ttf .
$ ./xine-fontconv UnDotum.ttf UnDotum iso-8859-1 cp949
$ mkdir ~/.xine/fonts
$ cp UnDotum*.gz ~/.xine/fonts

*한글자막 설정
totem-xin:
$ vi ~/.gnome2/totem_config

xin-ui:
$ vi ~/.xine/config
설정파일은 최소한 플레이어를 한번이상 실행해야 생성됩니다

Quote:

...
# font for subtitles
# string, default: sans
#subtitles.separate.font:sans
subtitles.separate.font:UnDotum

# encoding of the subtitles
# string, default: iso-8859-1
#subtitles.separate.src_encoding:iso-8859-1
subtitles.separate.src_encoding:cp949
...

*실행
Applications->Sound & Video->Totem Movie Player
Applications->Sound & Video->xine

개인적으로 totem-xine보다는 xine-ui를 추천합니다.
컨트롤 기능이 더 많습니다.
그럼 우분투와 함께 영화를 즐감하세요 :D

Forums: 
khris의 이미지

KDE유저라면 Kaffein을 써 보세요.
KDE기반의 xine을 사용한 동영상 플레이어입니다.

───────────────────────
yaourt -S gothick elegant
khris'log

stadia의 이미지

win32codecs 이라는 패키지는 없고
w32codecs 라는 패키지가 있는데 말이죠.

hokim의 이미지

stadia wrote:
win32codecs 이라는 패키지는 없고
w32codecs 라는 패키지가 있는데 말이죠.

오타였습니다 w32codecs가 맞습니다
익명 사용자의 이미지

*truefont에서 xine font 만들기
http://xinehq.de/index.php/releases 에서 xine-lib 다운로드
$ tar -xvzf xine-lib-1.0.tar.gz
$ cp cp xine-lib-1.0/misc/xine-fontconv.c scratch/
$ cd scratch
$ gcc xine-fontconv.c -o xine-fontconv `freetype-config --cflags --libs` -lz

이부분에서..

$ cp cp xine-lib-1.0/misc/xine-fontconv.c scratch/

요기.. cp cp 는 오타인가요?..;;

그리고 scratch 폴더는 어디에서 튀어나온것인지요?

hokim의 이미지

itsmiru wrote:

이부분에서..

$ cp cp xine-lib-1.0/misc/xine-fontconv.c scratch/

요기.. cp cp 는 오타인가요?..;;

그리고 scratch 폴더는 어디에서 튀어나온것인지요?


에구 또 오타가 있었군요. 수정했습니다
scratch는 xine-fontconv.c를 컴파일을 위한 임의의 디렉토리에
불과합니다
익명 사용자의 이미지

freetype-config 명령을 찾을 수 없다고 합니다.
따로 설치해야될 패키지가 있나요?

hokim의 이미지

Anonymous wrote:
freetype-config 명령을 찾을 수 없다고 합니다.
따로 설치해야될 패키지가 있나요?

sudo apt-get install libfreetype6-dev
진환의 이미지

./xine-fontconv UnDotum.ttf UnDotum iso-8859-1 cp949

위 명령어를 하면.. 아래.. 에러가 나는 이유는 뭘 까요??? 다른 폰트를 가지고 해도 그러던데...ㅡㅡ

Used encoding "iso-8859-1"
Used encoding "cp949"
Prepared 17240 unicode values.
max_bearing_y: 17
error: 34 characters couldn't read: U+007F U+0080 U+0081 U+0082 U+0083 U+0084 U+0085 U+0086 U+0087 U+0088 U+0089 U+008A U+008B U+008C U+008D U+008E U+008F U+0090 U+0091 U+0092 U+0093 U+0094 U+0095 U+0096 U+0097 U+0098 U+0099 U+009A U+009B U+009C U+009D U+009E U+009F U+00A0
generated UnDotum-16.xinefont.gz (17206 characters)
max_bearing_y: 21

나의 땀으로 인류문명 발전에 기여하고 나를 아는 모든 이들이 부러움의 눈빛으로 나를 보며 거기에 안주 하지 않고 더 멀리 바라보는 세계에 우뚝선 한국인

salkuma의 이미지

Quote:

Used encoding "iso-8859-1"
Used encoding "cp949"
Prepared 17240 unicode values.
max_bearing_y: 17
error: 34 characters couldn't read: U+007F U+0080 U+0081 U+0082 U+0083 U+0084 U+0085 U+0086 U+0087 U+0088 U+0089 U+008A U+008B U+008C U+008D U+008E U+008F U+0090 U+0091 U+0092 U+0093 U+0094 U+0095 U+0096 U+0097 U+0098 U+0099 U+009A U+009B U+009C U+009D U+009E U+009F U+00A0
generated UnDotum-16.xinefont.gz (17206 characters)
max_bearing_y: 21

이렇게 나와도 상관없이 자막은 잘 보입니다.
문제는 위의 실행으로 생성된 자막파일이 제대로 생성됐는가를 봐야되는데...

생성된 자막파일의 용량을 보면 알 수 있습니다.
ttf 폰트가 있어서 제대로 생성이 되었다면,
적당한 용량이 있을 것이고, 아니면 10byte 짜리 파일이 생성되네요. ㅡㅡ;

이거때문에 한참 고생했습니다...

저는 한컴에서 받은 hanyang폰트 Gulim파일로 만들었는데요,

ls -al 명령으로 보면,
Gulim-16.xinefont.gz
Gulim-20.xinefont.gz
Gulim-24.xinefont.gz
는 10byte 짜리 파일로 생성이 되더군요...
나머지
Gulim-32.xinefont.gz
Gulim-48.xinefont.gz
Gulim-64.xinefont.gz
는 정상적으로 생성이 되었습니다.
크기별로 16(tiny) / 20(small) / 24(normal) / 32(large)
/ 48(very large) / 64(huge) 입니다.

해결방법은
~/.xine/config 파일에서
# subtitle size
# { tiny small normal large very large huge }, default: 1
#subtitles.separate.subtitle_size:small
subtitles.separate.subtitle_size:large

이렇게 추가해 주시면 됩니다. :twisted:

I will be at where you want to...

lgk9의 이미지

위의 방법대로 따라하다가

개인적으로 Windows 의 굴림 폰트를 좋아해서 gulim.ttc 를 변환해서 자막 폰트로 사용하려 하였으나 totem 이나 xine 이 이유없이 죽는 현상이 발생했습니다.

한동안 죽는 이유를 모르다가 위의 방법대로 UnDotum 폰트로 변환해서 플레이 해보니 정상적으로 동작했습니다. 결국 Gulim 폰트에 문제가 있던지 아니면 저의 실수 중 하나겠지요.

아무튼 이번에 설정하면서 totem 이나 xine 이 이유없이 죽는 경우는 자막 설정에서 문제가 발생했을 때 그럴 수 있다고 생각이 듭니다. 혹시 저와 같은 삽질을 하시는 분이 발생하지 않기를 바라네요..

shines의 이미지

gcc xine-fontconv.c -o xine-fontconv `freetype-config --cflags --libs` -lz

이거 실행하니까

freetype-config --cflags --libs: 그런 파일이나 디렉토리가 없음 이라고 나오면서 에러가 잔뜩 뜨네요;;

멀 더 깔아야 될까요?

uriel의 이미지

우분투라면 libfreetype6-dev 패키지를 설치해야 freetype-config를 사용할 수 있습니다. 다른 배포판이라면 freetype 관련 개발 패키지를 설치하세요.

쿠마의 이미지

자막이 한글이 안나와서 삽질 좀 했는데 ..

이제 재대로 나오네요..ㅎ

좋은 정보 감사합니다.. 그럼 수고하세요..^^

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.