mkh264.sh
#!/bin/bash
: ${1?"Usage: $0 <filename>"}
mkfifo stream.y4m
mplayer ${1} -nosound -benchmark -vf scale=720:-10,rotate=1 -vo yuv4mpeg:file=stream.y4m > LOG &
x264 -q 3 --bframes 0 --no-cabac -o `basename ${1}`.264 stream.y4m `awk '/VO/{print $3}' LOG`
rm -f stream.yuv stream.y4m LOG
沒有留言:
張貼留言