한글자막

soongwoo의 이미지

Debian 사용자입니다. totem-xine에서 한글 자막이 보이지 않습니다.
forum에 있는 글을 다 읽고 해봐도 자막이 나오지 않습니다.

따라서 한 것: totem과 xine에서 한글 자막을 보는 것
- xine-fontconv를 만들고
- 그것을 이용해서 font를 생성해서 ~/.xine/fonts에 생성된 font를복사

참고로 자막 파일은 Windows에서 사용하는 euc-kr로 되어 있고
debian 환경은 LANG=en_US.UTF-8으로 되어 있습니다.
어떻게 설정해야 한글 자막을 볼 수 있는지요?

또 mplayer에서도 한글자막이 나오지 않습니다.
환경설정하는 방법을 알려 주시면 합니다.
(googling해서 mplayer환경 설정방법대로 해봐도 실패! 참조문서)

감사합니다.
승우

doodoo의 이미지

모두다 kldp 게시판 안에 있어요

여기서 찿은 게시판 내용을 개인적으로 모아놓은것 입니다.

mplayer

    #설정 변경  - 비디오모드를 SDL모드로 openGl를 사용하고싶으시면 gl2
 
    # 저사양 컴퓨터나 엄청나게 빠른 속도를 원하신 다면 vo=dga로 하세요..   엄청난 속도로 돌아가게됩니다.
    # 참고로 제 컴퓨터는 k6-2 500  DGA 모드에서 이니셜D 600x480 화면이 빵빵하게 돌아갑니다.
 
   #ao = sdl  #or oss     #오디오 모드 - SDL로 -그냥 SDL모드로 하세요 안되시면 oss로 하시고요
 
   unicode = 1          # 한글 자막을 위해서 입니다.
 
     #------------------------------------------------------------------------
     # 아래의 내용은 true font를 사용시에 하는 옵션입니다.
     # (gmplayer에서는 Preferences TTF 글꼴 경로를 정해주고, Encoding 을 unicode 로 해주면 됩니다.)
     #  libfreetype6, libfreetype6-dev 를 설치하고 컴파일 된 경우만 해당됩니다.
 
     # fontconfig로 설정된 폰트를 사용할 수 있게 해줍니다.
     #fontconfig=1
 
     # TTF글꼴의절대경로 글꼴을 지정해줍니다.
     font=/usr/local/share/mplayer/font/UnGraphicBold.ttf
     # fontconfig = 1 옵션을 주었을 경우 굳이 TTF글꼴의 경로를 지정해 줄 필요 없이 직접 글꼴 (fc-list 로 볼수 있는)이름을
     # 적어 주는 것이 맞습니다. 이렇게 했을 경우, mplayer 를 실행했을 때, 글꼴이 올바르지 않다는 식의
     # 쓸데없는 에러메시지가 나오지 않습니다.
     # 정확히 어느 버전부데 이렇게 바뀌었는지는 모르겠지만, 최근버전이라면 제대로 동작합니다.
     # libfontconfig1-dev 패키지가 설치되어 있는 상태에서, 컴파일하셔야 합니다. (ldd /usr/bin/mplayer 로 확인하세요.)
     #font="Sans"
 
     # 문자셋지정. 매우 중요! euc-kr이나 cp949를 시도해보세요.
     subcp=euc-kr
 
     # 글꼴의 크기
     subfont-text-scale=2
 
     # 자막의 외곽선 지정
     subfont-outline=3
     #------------------------------------------------------------------------

제가 사용하는 겁니다.

vo=xv
ao=alsa
# Use this for a widescreen monitor, non-square pixels.
monitoraspect=16:10
#==========
# Subtitles
#==========
 
# VobSubs
#========
 
# Align subs. (-1: as they want to align themselves)
spualign=-1
 
# Anti-alias subs. (4: best and slowest)
spuaa=4
 
# Set language.
slang=en,eng
 
# Text-based subtitles
#=====================
 
# Find subtitle files. (1: load all subs containing movie name)
sub-fuzziness=1
 
# Set font.
font=/usr/share/fonts/truetype/unfonts/UnGraphic.ttf
 
# Set font encoding.
subfont-encoding=unicode
 
# Set subtitle file encoding.
unicode=yes
utf8=yes
subcp=cp949
#subcp=euckr
 
# Resample the font alphamap. (10: bold black outline)
ffactor=10
 
# Set subtitle position. (100: as low as possible)
subpos=100
 
# Set subtitle alignment at its position. (2: bottom)
subalign=2
 
# Set font size. (2: proportional to movie width)
subfont-autoscale=2
 
# Set font blur radius. (default: 2)
subfont-blur=0.5
 
# Set font outline thickness. (default: 2)
subfont-outline=1.2
 
# Set autoscale coefficient. (default: 5)
subfont-text-scale=2.6
 
# OSD
#====

xine
역시 kldp 게시판에서 개인적으로 긁어놓은것 입니다.
올리기올려짐: 2005년4월13일 3:59    주제: 우분투에서 totem-xine 또는 xine-ui로 영화보기         인용과 함께 답변
*win32 코덱 설치
$ vi /etc/apt/sources.list
인용:
 
...
deb <a href="ftp://ftp.nerim.net/debian-marillat" rel="nofollow">ftp://ftp.nerim.net/debian-marillat</a> stable main
deb <a href="ftp://ftp.nerim.net/debian-marillat" rel="nofollow">ftp://ftp.nerim.net/debian-marillat</a> unstable main
deb <a href="ftp://ftp.nerim.net/debian-marillat" rel="nofollow">ftp://ftp.nerim.net/debian-marillat</a> testing main
...
 
$ 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
설정파일은 최소한 플레이어를 한번이상 실행해야 생성됩니다
인용:
 
...
# 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를 추천합니다.
컨트롤 기능이 더 많습니다.
그럼 우분투와 함께 영화를 즐감하세요 Very Happy

개인적으로 사용하는 설정파일을 올릴려다...넘 길어서 포기합니다...
윗 내용과 별차이 없구요

단 걱정인것은 윗글이 kldp 유저중 어느분꺼인데...이걸 긁어서 이렇게 써도되나
하는 걱정이네요..어느분이 지적하면 모두 지울께요..

요점은 euc-kr로 시도하지 마시고 cp949로 뛰세요 입니다...

잘 설정 되길 바랍니다.

soongwoo의 이미지

알려 주신 것을 토대로 성공했습니다.

1) mplayer configuration
- 알려 주신 그대로 거의 사용했습니다.
Windows의 euc-kr 자막을 그대로 사용하기 위해
아래와 같이 변경했습니다.

# Set subtitle file encoding.
fontconfig=0
unicode=yes
#utf8=yes
#subcp=cp949
subcp=euckr


2) totem-xine
- 알려 주신대로 font를 만들어 .xine/fonts에 넣었습니다.
- configuration은 totem-xine을 실행하고
Edit-> Preference-> General 에서 "Text Subtitles"에서 설정했습니다.

감사합니다.
승우

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.