Add high-quality GIF export support - #20
Conversation
|
Ideally, you'd want people to choose quality and fps options but it would take away from the simplicity of the tool. |
…an#14 — cookies, playlist, AAC, GIF, batch download - averygan#25: cookies.txt support (COOKIES_FILE auto-detected, passed to all yt-dlp calls) - averygan#28: YouTube playlist expansion via /api/playlist endpoint (flat-playlist -J) - averygan#29: Force AAC audio codec (-S acodec:aac) for all video/audio downloads - averygan#20: GIF export via ffmpeg 2-pass palettegen/paletteuse, 15fps, max 480px width - averygan#14: Batch download via /api/batch/download + /api/batch/status, ThreadPoolExecutor(3), parallel Download All
|
Thanks for the PR! Logic looks good - A few things before merge:
|
|
Hey @averygan ! Sorry for the late reply. I've made the changes you suggested. A few considerations:
|
This PR introduces the ability for users to download videos directly as optimized GIFs.
Key Changes
index.html):formatparameter is correctly passed to the API during the download request.app.py):gifformat.ffmpegfor transcoding with a focus on quality and efficiency:15fpsfor smooth motion without excessive file size.480px(aspect-ratio preserved) to keep downloads fast.palettegenandpaletteuse) to ensure the GIF uses an optimized color palette for better visual fidelity.How to Test
.gif.