mplayer GUI wrapper for Mac OS X

mplayer 还是自己编译的性能最佳,若是使用别人编译好的(例如 MPlayerX),通常在播放高清视频时会出现比较卡的情形;另外编译选项也比较方便控制,比方说我在用的 enca 自动识别编码支持。但总是从命令行下执行有时稍显麻烦,通过创建一个 applescript wrapper app 可以方便地解决这个问题。

打开 Automator,创建一个applescript application, 输入如下内容:

on run {input, parameters}
if length of input is 0 then
set f to (choose file with multiple selections allowed)
else
set f to (input as string)
end if

do shell script ("/usr/local/bin/mplayer " & quoted form of POSIX path of f)
end run 

然后保存为 app. 再将相应视频文件关联到这个 app 上,就可以简单地双击打开视频文件了。(注意其中 mplayer 路径应对应你系统上正确的路径)

注意:若不使用 automator 而是简单地使用 applescript editor,好像在关联视频文件时没法关联所有相同类型文件,原因未知。。

 

posted on 2011-11-30 22:20  william9  阅读(332)  评论(0编辑  收藏  举报