foamCreateVideo: avoid dropping frames for some color depths

This commit is contained in:
Chris Greenshields
2017-03-15 19:10:10 +00:00
parent dc328945b1
commit 7276dbd38d

View File

@ -122,7 +122,7 @@ 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 $FPS \ -framerate $FPS \
$START_NUMBER \ $START_NUMBER \
-i ${DIR}/${IMAGE}.%04d.png \ -i ${DIR}/${IMAGE}.%04d.png \
-c:v libvpx -crf 15 -b:v 1M \ -c:v libvpx -crf 15 -b:v 1M \
@ -134,7 +134,7 @@ 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 $FPS \ -framerate $FPS \
$START_NUMBER \ $START_NUMBER \
-i ${DIR}/${IMAGE}.%04d.png \ -i ${DIR}/${IMAGE}.%04d.png \
-c:v libx264 -pix_fmt yuv420p \ -c:v libx264 -pix_fmt yuv420p \