foamCreateVideo: fix framerate option with avconv

This commit is contained in:
Chris Greenshields
2015-07-14 09:28:03 +01:00
parent 7044767525
commit 48b96926c6

View File

@ -115,9 +115,8 @@ if [ "$FMT" = "webm" ] ; then
if command -v avconv >/dev/null 2>&1 ; then if command -v avconv >/dev/null 2>&1 ; then
echo "Creating image with avconv..." echo "Creating image with avconv..."
avconv \ avconv \
-r 1 \
-i ${DIR}/${IMAGE}.%04d.png \
-r $FPS \ -r $FPS \
-i ${DIR}/${IMAGE}.%04d.png \
-c:v libvpx -crf 15 -b:v 1M \ -c:v libvpx -crf 15 -b:v 1M \
$VIDEO.$FMT $VIDEO.$FMT
else else
@ -127,9 +126,8 @@ else
if command -v avconv >/dev/null 2>&1 ; then if command -v avconv >/dev/null 2>&1 ; then
echo "Creating image with avconv..." echo "Creating image with avconv..."
avconv \ avconv \
-r 1 \
-i ${DIR}/${IMAGE}.%04d.png \
-r $FPS \ -r $FPS \
-i ${DIR}/${IMAGE}.%04d.png \
-c:v libx264 -pix_fmt yuv420p \ -c:v libx264 -pix_fmt yuv420p \
$VIDEO.$FMT $VIDEO.$FMT
elif command -v mencoder >/dev/null 2>&1 ; then elif command -v mencoder >/dev/null 2>&1 ; then