Updates ffmpeg-mp4-to-gif.sh

This commit is contained in:
2025-04-15 20:04:23 -03:00
parent 3c9d935602
commit 33233ca8af

View File

@@ -8,4 +8,5 @@ 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") 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 -vf palettegen $pallete_file
ffmpeg -y -i $file_to_convert -i $pallete_file -filter_complex fps=20,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"
ffmpeg -y -i $file_to_convert -i $pallete_file -filter_complex paletteuse "${file_to_convert%".$file_to_convert_extension"}.gif"