LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1314|回复: 5

mplayer增加50像素的黑边

[复制链接]
发表于 2007-4-15 20:42:52 | 显示全部楼层 |阅读模式
用命令mplayer -vf expand=0:-50:0:0 video.file
能否在config中加什么?我用命令行播放一个带字幕的.rm画面会糊
 楼主| 发表于 2007-4-15 21:14:06 | 显示全部楼层
I have wrote a script--mplayer.sh
LC_ALL=zh_CN.GB2312
mplayer -vf expand=0:-150:0:0 /home/movie/StrangerThanFiction/[奇幻人生].Stranger.Than.Fiction.2006.REAL.PROPER.DVDRip.XviD-OGTXViD.CD1[ireland].avi&
运行时显示仍旧是乱码,但用鼠标双击文件就字体正常,但没有黑边了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-15 21:25:01 | 显示全部楼层
LC_ALL=zh_CN.GB2312
mplayer -subcp gb2312 -vf expand=0:-150:0:0 /home/movie/StrangerThanFiction/[奇幻人生].Stranger.Than.Fiction.2006.REAL.PROPER.DVDRip.XviD-OGTXViD.CD1[ireland].avi&

That is OK!Enjoy it!!
回复 支持 反对

使用道具 举报

发表于 2007-4-16 22:43:36 | 显示全部楼层
仅供参考:
cat .mplayer/config
  1. # Write your default config options here!
  2. #alias mplayer='mplayer -stop-xscreensaver -zoom -vo gl'
  3. subcp=cp936
  4. #subcp=utf-8
  5. font=simhei
  6. #font=subfont
  7. unicode=1
  8. slang=zh
  9. stop-xscreensaver=1
  10. zoom=1
  11. #vo=gl2
  12. vo=xv
  13. ao=alsa
  14. #subfont-autoscale=2
  15. subfont-text-scale=4
  16. #subfont-osd-scale=40
  17. #subpos=99
  18. ontop=1
  19. #vf=expand=:-150:::1
  20. #vf=filmdint=mmx2=2
  21. fs=1
复制代码
回复 支持 反对

使用道具 举报

发表于 2007-8-27 13:38:38 | 显示全部楼层

  1. vf=expand=0:-60:0:0
复制代码

正是要找的设置,谢谢!

字幕显示在画面上层看着不舒服。在画面下方增加黑边专门显示字幕,爽。

之前用的设置:

  1. ass=true
  2. ass-bottom-margin=60
  3. ass-use-margins=true
  4. ass-border-color=0000aaff
  5. ass-font-scale=2
  6. ass-line-spacing=5
  7. ass-force-style="FontName=STKaiti"
复制代码

也能达到类似效果,不过字幕被横向拉长了,换字体也没用。

MPlayer官网上的FAQ也提到这个设置:http://www.mplayerhq.hu/DOCS/HTML-single/en/MPlayer.html
Q:        How can I get subtitles to appear on the black margins around a movie?

A:        Use the expand video filter to increase the area onto which the movie is rendered vertically and place the movie at the top border, for example:
mplayer -vf expand=0:-100:0:0 -slang de dvd://1
回复 支持 反对

使用道具 举报

发表于 2007-8-27 21:38:21 | 显示全部楼层
参考 mplayer kk 编译

添加这句
vf=screenshot=2,expand=:::::4/3:2
以及
subpos=96
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表