* Optimizing thumbnail generation so they're 640x?

This makes them literally 30Kb on average for my personal use
Also they're thumbnails so they could actually be smaller
! forcing thumbnails to be jpg as well
This commit is contained in:
shockrah
2021-10-20 21:45:47 -07:00
parent 5e3b2e830b
commit f42f125766
3 changed files with 6 additions and 6 deletions

View File

@@ -43,6 +43,8 @@ pushd "$vids" > /dev/null
# Make sure only errors pop up here
ffmpeg -hide_banner -loglevel error \
-y -ss 00:00:01 -i "$if" -frames:v 1 "$of.jpg" > /dev/null
ffmpeg -hide_banner -loglevel error \
-y -i "$of.jpg" -vf scale=640:-1 "$of.jpg" > /dev/null
echo $of
done
popd > /dev/null