Build acap too
[qemu-vcap.git] / qcap.sh
blob759894bf20574800121858456829dfbf44276ef2
1 #!/bin/sh
3 input_width=$1
4 input_height=$2
5 input_video_fd=$3
6 input_audio_fd=$4
7 input_video_fps=$5
9 echo "$@" 1>&2
11 xterm -fn 10x20 -e sh -c "ffmpeg \
12 -ar 44100 -ac 2 -f s16le \
13 -i pipe:$input_audio_fd \
14 -f rawvideo -r $input_video_fps \
15 -s ${input_width}x${input_height} \
16 -i pipe:$input_video_fd \
17 -sameq -acodec mp2 -vcodec mpeg4 -y /tmp/qemu.avi; read"