-f rawvideo -s 640x480 -r %(fps) -i - -c:v mpeg4 -b:v 1500k "%(tempvideofile)"
-i "%(tempvideofile)" -i "%(tempaudiofile)" -c:v copy -c:a copy -r %(fps) -f mov "%(outputname)"
-f rawvideo -s %(width)x%(height) -i - -c:v mpeg4 -filter:v scale=480:-1 -b:v 500k -maxrate:v 500k -minrate:v 400k "%(tempvideofile)"