mhmhh prolly side related but for example if downloading a gif from telegram's, it often does it as .mp4. indeed seems the conversion can be excessive long depending on the command, and library i guess...

here the one i luckily saved from a stack question about ffmpg that i no more able to find at the search engines XD

`₿: ffmpeg -i file.mp4 -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 output.gif`

scale could be smaller, though costing quality, still functional for some simple ones... also there could be cases of wanting to flip the outpot so the transpose flag should be needed at the -vf's

Reply to this note

Please Login to reply.

Discussion

No replies yet.