This is my shell script but it gives errors:
#!/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
The error message is:
Can't get memory or file handle to write ">(x264 --demuxer y4m --crf 20 --threads auto --output video.264 - )"!FATAL: Cannot initialize video driver.
When I run this cmd on putty:
mplayer -nosound -benchmark -vo yuv4mpeg:file=>(x264 --demuxer y4m \
--crf 20 --threads auto --output video.264 - ) video.wmv
it works perfectly..
What am I doing wrong?