centos系统用命令行截视频图(shell下)

ZephyrXT 发布于 阅读:30

所需工具mtn 官网:http://moviethumbnail.sourceforge.net/

——————直接下载二进制执行文件——————

wget http://downloads.sourceforge.net/moviethumbnail/mtn-200808a-linux.tgz

解压: tar xzvf mtn-200808a-linux.tgz

——————进入到解压目录执行——————

cd /root/mtn-200808a-linux

./mht 视频路径 -f 字体路径

————————centos的字体路径——————

/usr/share/fonts/

选择其一即可

————————另选第三方字体————————

wget http://www.orwell.ru/download/cyberbit.zip

unzip cyberbit.zip

——————修改环境变量更方便的调用——————

vim ~/.bashrc

添加:

export PATH=${PATH}:/root/mtn-200808a-linux

保存退出

source ./.bashrc 使修改生效

——————详细使用说明——————

Usage:

mtn is a command-line program so its usage will mostly be done in a shell or command prompt. It has many options, the more frequently used ones are:

For more information, see detailed usage.

参考:

如何在CentOS系统中安装字体
https://bbs.zephyrxt.com/thread-7279-1-1.html
etc/profile环境变量配置解析
https://bbs.zephyrxt.com/thread-7280-1-1.html