【发布时间】:2011-01-21 13:31:00
【问题描述】:
这是我的 shell 脚本,但它给出了错误:
#!/bin/sh
while getopts "i:o:" flag
do
case $flag in
i) file_input=$OPTARG
;;
o) file_output=$OPTARG
;;
esac
done
mplayer -nosound -benchmark -vo yuv4mpeg:file=>(x264 --demuxer y4m \
--crf 20 --threads auto --output $file_output - ) $file_input
错误信息是:
无法获取要写入的内存或文件句柄 ">(x264 --demuxer y4m --crf 20 --threads auto --output video.264 - )"!致命:无法初始化视频驱动程序。
当我在 putty 上运行这个 cmd 时:
mplayer -nosound -benchmark -vo yuv4mpeg:file=>(x264 --demuxer y4m \
--crf 20 --threads auto --output video.264 - ) video.wmv
效果很好..
我做错了什么?
【问题讨论】:
-
所有解决方案都不是功能性的..