Just in case - make sure WebM output is marked to loop.

pull/1132/head
Ira Abramov 2018-01-07 15:30:25 +02:00
parent bb27aafee5
commit af3ca28430
1 changed files with 3 additions and 3 deletions

View File

@ -119,8 +119,8 @@ function v2gif {
if [[ "$make_webm" ]] ; then if [[ "$make_webm" ]] ; then
ffmpeg -loglevel panic -i "$file" \ ffmpeg -loglevel panic -i "$file" \
-c:v libvpx -crf 4 -threads 0 -an -b:v 2M -auto-alt-ref 0 -quality best \ -c:v libvpx -crf 4 -threads 0 -an -b:v 2M -auto-alt-ref 0 \
"${file%.*}.webm" || return 2 -quality best -loop 0 "${file%.*}.webm" || return 2
fi fi
# Set FPS to match the video if possible, otherwise fallback to default. # Set FPS to match the video if possible, otherwise fallback to default.
@ -253,7 +253,7 @@ function any2webm() {
ffmpeg -loglevel panic -i "$file" \ ffmpeg -loglevel panic -i "$file" \
-c:v libvpx -crf 4 -threads 0 -an -b:v $bandwidth -auto-alt-ref 0 \ -c:v libvpx -crf 4 -threads 0 -an -b:v $bandwidth -auto-alt-ref 0 \
-quality best $fps $size -pix_fmt yuva420p "$output_file" || return 2 -quality best $fps $size -loop 0 -pix_fmt yuva420p "$output_file" || return 2
# Checking if the file is bigger than Twitter likes and warn # Checking if the file is bigger than Twitter likes and warn
if [[ $alert -gt 0 ]] ; then if [[ $alert -gt 0 ]] ; then