问题:

使用 mplayer 打开视频时会有下面的错误:

mplayer: could not connect to socket
mplayer: No such file or directory


调试:

使用 -msglevel all=1 输出错误信息。

mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81

这里:

Failed to open LIRC support. You will not be able to use your remote control.
查了一下是遥控器。


解决:

因为并没有上面所谓的遥控器,所以在配置文件里加上下面一行就可以了。

$HOME/.mplayer/config里

设置:

lirc=no