免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1076 | 回复: 0

totem-xine 的中文字幕处理 [复制链接]

论坛徽章:
0
发表于 2007-06-03 16:52 |显示全部楼层
一:添加源代码源:
     sudo gedit /etc/apt/sources.list
     增加
     deb-src
http://archive.ubuntu.com/ubuntu/
breezy main restricted universe multiverse
二:下载源代码,编译出 xine-fontconv :
    sudo apt-get update
    sudo apt-get source libxine1c2
    cd xine-lib-1.0.1/misc/
    sudo gcc -o /usr/local/bin/xine-fontconv xine-fontconv.c `freetype-config --cflags --libs`
三:生成中文字体
    cd  /usr/share/xine/libxine1/fonts
    sudo  xine-fontconv /usr/share/fonts/zh_CN/TrueType/SIMSUN.TTF simsun gb18030
四:修改totem的配置:
    gedit ~/.gnome2/totem_config
    找到中间的项目修改为:
    subtitles.separate.font:simsun
    subtitles.separate.src_encoding:gb18030
   
五:播放:
    totem
file:///home/ubuntu/av/[
地狱神探].Constantine.DVDRip.XviD.CD1-DoNE.avi#subtitle:file:///home/ubuntu/av/[地狱神探].Constantine.DVDRip.XviD.CD1-DoNE.chs.srt
   
六:mplayer的解决办法:
mplayer [地狱神探].Constantine.DVDRip.XviD.CD1-DoNE.avi -sub
[地狱神探].Constantine.DVDRip.XviD.CD1-DoNE.chs.srt -subcp cp936 -font
/usr/share/fonts/zh_CN/TrueType/SIMSUN.TTF
附件是在breezy下编译好的xine-fontconv。
附件:

       
        文件:xine-fontconv.tar.gz
        大小:6KB
        下载:
下载
       
原文链接:http://forum.ubuntu.org.cn/viewtopic.php?t=2760&postdays=0&postorder=asc&start=0
       
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/19906/showart_313556.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP