Web Applications / Project 19
MP4 & MP3 Downloader
The earlier Flask media utility, with a companion implementation guide.

01 / Overview
Behind the interface.
MP4 & MP3 Downloader is a lightweight Flask-based web app for converting and downloading YouTube videos as high-quality MP4 or MP3 files. Built with Python, Flask, yt-dlp, and FFmpeg (simple server-side MVC-like structure), it provides a minimal UI and robust download engine. It is also offered as a Progressive Web App (PWA), easily installable on mobile and desktop for quick access.
02 / Implementation
What makes it work.
Convert and download YouTube URLs to MP4 video or MP3 audio with one click.
Progressive Web App (PWA) — installable on mobile and desktop for quick access.
Server-side stack: Python + Flask, yt-dlp, and FFmpeg for merging and encoding.
Robust download engine with retry/fragment retries, custom headers, and JS runtime detection to reduce 403/SABR issues.
Local file management with organized movies/mp3 folders and recent-file listing with direct download/stream links.
Small, readable codebase with clear error reporting — easy to extend for auth, rate-limiting, or cloud storage.