本來小弟沒有這樣的需求,只是剛好抓到一些電影且有中文字幕,所以就想把xine黑一黑...

我看完了source code才發現原來xine本身已經支援srt字幕了,只是欠缺中文的字型檔,而xine的source tarball有一個工具是可以將truetype font轉成xine OSD font format...該程式支援freetype。
但無奈的是deb所包的並沒有納入該程式,所以我改寫了deb,將此檔案加入。
程式名稱:xine-fontconv
以下是xine-fontconv的簡介
The Xine Font Convert...
========================
This package can generate the Xine OSD font with TrueType Fonts.
In the official Xine release, it provides the ISO8859-1 Fonts to view the movie
subtitile(srt).
But viewing the different native language srt will be a big mess.
So we can generate the Xine OSD font manually with this program.
usage: ./xine-fontconv font.ttf fontname [encoding1 [encoding2 [...]]]
Happy Xineing ...

簡易使用方式:
cd /usr/share/xine/libxine1/fonts
xine-fontconv /usr/share/fonts/truetype/arphic/bsmi00lp.ttf aming Big5
然後就開始產生xine font,會有一點點久。
產生好之後,請修改~/.xine/config,加入
misc.spu_font:aming
misc.spu_src_encoding:Big5
播放方法:
file.avi file.srt
xine file.avi::file.srt or
xine file.avi#subtitle:file.srt
screenshot:




deb檔案位置:
http://people.debian.org.tw/~asho/deb/x ... nt.deb.deb
Testing 以上的 xine 皆可以搭配使用。