Just in case - make sure WebM output is marked to loop.
parent
bb27aafee5
commit
af3ca28430
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue