Script updates

This commit is contained in:
Matheus Albino
2024-08-09 19:21:28 -03:00
parent fe8e760d37
commit e5e4128458
5 changed files with 215 additions and 170 deletions

View File

@@ -8,4 +8,4 @@ video_res=$(ffprobe -v error -select_streams v:0 -show_entries stream=width,heig
video_framerate=$(ffmpeg -i $file_to_convert 2>&1 | sed -n "s/.*, \(.*\) fp.*/\1/p")
ffmpeg -y -i $file_to_convert -vf palettegen $pallete_file
ffmpeg -y -i $file_to_convert -i $pallete_file -filter_complex paletteuse "${file_to_convert%"$file_to_convert_extension"}.gif"
ffmpeg -y -i $file_to_convert -i $pallete_file -filter_complex fps=20,paletteuse "${file_to_convert%".$file_to_convert_extension"}.gif"