Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
|
Lista Forumurilor Pe Tematici
|
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login
POZE MRRRR'S FORUM (VIEW ONLY)
Nu sunteti logat.
|
Nou pe simpatie: Livia Badea Profile
 | Femeie 24 ani Bucuresti cauta Barbat 26 - 49 ani |
|
|
TRaP
Moderator
Inregistrat: acum 7 ani
Postari: 875
|
|
Download FFMPEG and extract:
I put the gif file into my ffmpeg\bin folder. Opened cmd into the bin folder.
Typed the following 2 commands, in order:
| ffmpeg -i input.gif -vf "scale=500:-1:flags=lanczos,palettegen=stats_mode=diff" palette.png |
| ffmpeg -i input.gif -i palette.png -lavfi "scale=500:-1:flags=lanczos [x]; [x][1:v] paletteuse=dither=sierra2_4a" output.gif |
Source: ChatGPT
Additional ChatGPT stuff on the subject:
🔍 Why this preserves quality palettegen analyzes all frames stats_mode=diff is ideal for animated banners lanczos = best downscaling filter paletteuse with Sierra dithering keeps gradients clean This is the same technique used by professional encoders.
📏 For your 1600×200 signature banner Recommended settings: Width: 480–520 px Height: auto (-1) FPS: keep original (don’t reduce unless needed) If you want to keep original FPS, don’t add fps= at all.
🧪 Optional: avoid any temporal artifacts If the GIF has transparency and you want max stability: paletteuse=dither=sierra2_4a:alpha_threshold=128
📉 If file size still matters (secondary pass) Only if Outlook complains: fps=12
But visually, 15+ fps is usually indistinguishable for signature GIFs.
|
|
| pus acum 2 saptamani |
|
|
TRaP
Moderator
Inregistrat: acum 7 ani
Postari: 875
|
|
Extract GIF file info - all / some
| ffprobe -hide_banner -show_streams -select_streams v:0 input.gif |
| ffprobe -v error -select_streams v:0 -show_entries stream=width,height,avg_frame_rate,pix_fmt,duration -of default=noprint_wrappers=1 input.gif |
Using specific info:
| ffmpeg -i input.gif -vf "scale=500:-1:flags=lanczos,palettegen=stats_mode=diff" palette.png |
| ffmpeg -i input.gif -i palette.png -lavfi "scale=500:-1:flags=lanczos [x]; [x][1:v] paletteuse=dither=sierra2_4a:alpha_threshold=128" output.gif |
🟡 Outlook-optimized variant (visually identical, smaller) Outlook really doesn’t need 33 fps. This reduces size without visible quality loss:
| ffmpeg -i input.gif -vf "fps=15,scale=500:-1:flags=lanczos,palettegen=stats_mode=diff" palette.png |
| ffmpeg -i input.gif -i palette.png -lavfi "fps=15,scale=500:-1:flags=lanczos [x]; [x][1:v] paletteuse=dither=sierra2_4a:alpha_threshold=128" output.gif |
Most people cannot tell the difference, but file size drops a lot.
|
|
| pus acum 2 saptamani |
|