这是我的 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 - )"!致命:无法初始化视频驱动程序。
当我在腻子上运行这个 cmd 时:
mplayer -nosound -benchmark -vo yuv4mpeg:file=>(x264 --demuxer y4m \
--crf 20 --threads auto --output video.264 - ) video.wmv
它完美地工作..
我究竟做错了什么?