Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Zaurus 中文论坛 Forum Index » CACKO & SHARP/金峰 & OZ

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
[分享]kino2播放外挂srt字幕免乱码的方法
View previous topic :: View next topic  
Author Message
sosei



Joined: 17 Dec 2006
Posts: 72

小企鹅: 1937

PostPosted: 2007-Feb-24 Sat, pm1:06 Reply with quote
 Post subject: [分享]kino2播放外挂srt字幕免乱码的方法

乱码是因为mplayer没用系统字体显示OSD和字幕,要用自己独立的字体,而只原带了英文字体,没有带中文字体的缘故。

mplayer可用两种字体,点阵和ttf字体。

使用ttf字体需要特别编译过的mplayer版本。很糟糕,我没找到这个版本,谁知道请告诉我!

从mplayer站可下载点阵中文字体包,包含两种字体,每种字体分别有16和24两种尺寸。我感觉gb2312-ming这种字体看着比gb2312-kai稍清晰些。用16这个尺寸的即可,在320*240尺寸的片子下,注意字幕每行要控制在19个中文字幕内。用24这个尺寸每行能容的字符数就太少了。

接着说怎么安装使用。
ttf字体就拷到mplayer目录下,然后kino2设置里添加-subcp utf-8。字幕文件记得用utf-8格式。

点阵字体要拷到"/home/QtPalmtop/share/mplayer/font/"下,然后kino2设置里添加-unicode。字幕文件记得用gbk格式。

很糟糕的是直接往font目录下拷会发现原字体不能被覆盖,要用su改权限。俺懒得查具体格式了,所以下载的字体单独放在SD卡上。然后kino2设置里添加-font /mnt/card/gbsn00lp16/font.desc

另外,以前有人提了个把字幕压进片子的法子,这样虽然就不用加字体了,但是压进片子就没法在不用看字幕的时候关闭字幕了,也影响图像质量。不推荐使用。

最佳还是把srt字幕内置进mp4格式片子里。但很糟糕,我还不会怎么播放出来。

附录
http://net.ytu.edu.cn/share/%CE%B4%B7%D6%C0%E0/mplayer.html#OSD/%20%D7%D6%C4%BB%D1%A1%CF%EE
MPlayer的命令行参数简要说明


Last edited by sosei on 2007-Feb-24 Sat, pm1:17; edited 1 time in total
Back to top
View user's profile Send private message AIM Address81257054 Yahoo Messenger
plum



Joined: 03 Jan 2007
Posts: 129
Location: 河南 郑州
小企鹅: 3482

PostPosted: 2007-Feb-24 Sat, pm1:09 Reply with quote
 Post subject:

沙发,沙发!!!!
_________________
http://www.imobile365.com
Zaurus C1k+4G CF+Cell CF wifi+2G SD
ubuntu 7.10
WIndows XP Which in the VBOX under the ubuntu
Back to top
View user's profile Send private message Visit poster's website AIM Address30332348 MSN Messenger
sosei



Joined: 17 Dec 2006
Posts: 72

小企鹅: 1937

PostPosted: 2007-Feb-24 Sat, pm1:19 Reply with quote
 Post subject:

zplayer播放器设置一样
Back to top
View user's profile Send private message AIM Address81257054 Yahoo Messenger
ccpaging



Joined: 07 Dec 2006
Posts: 757

小企鹅: 16604

PostPosted: 2007-Feb-26 Mon, am10:34 Reply with quote
 Post subject:

很棒,爱钻研的好同志
_________________
SL-C1000, 1G CF, 1G SD
pdaxrom 1.1beta3
Roku Wifi Card(Used in Cacko 1.23 & pdaXrom 1.1 Beta3)
http://ccpaging.blog.ubuntu.org.cn/
http://ccpaging.osall.com/
http://blog.sina.com.cn/zaurus/
Back to top
View user's profile Send private message
sosei



Joined: 17 Dec 2006
Posts: 72

小企鹅: 1937

PostPosted: 2007-Feb-26 Mon, pm5:53 Reply with quote
 Post subject:

命苦啊
只好自力更生
Back to top
View user's profile Send private message AIM Address81257054 Yahoo Messenger
Display posts from previous:     
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Zaurus 中文论坛 Forum Index » CACKO & SHARP/金峰 & OZ All times are GMT + 8 Hours
Page 1 of 1

 
Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

[ 页面生成时间: 秒 ] :: [ 次查询 ] :: [ ]
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional