<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Moneeb Ahmed Dhariwal</title>
    <description>The latest articles on DEV Community by Moneeb Ahmed Dhariwal (@madhariwal).</description>
    <link>https://dev.to/madhariwal</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4255199%2Fbd14ac0c-1406-4ad9-970b-bd40c1f4a1ad.jpg</url>
      <title>DEV Community: Moneeb Ahmed Dhariwal</title>
      <link>https://dev.to/madhariwal</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/madhariwal"/>
    <language>en</language>
    <item>
      <title>Why I Built an Ad-Free, 4K Video Downloader in Next.js 14 &amp; Python (And Killed Popups Forever)</title>
      <dc:creator>Moneeb Ahmed Dhariwal</dc:creator>
      <pubDate>Fri, 20 Nov 2026 08:12:18 +0000</pubDate>
      <link>https://dev.to/madhariwal/why-i-built-an-ad-free-4k-video-downloader-in-nextjs-14-python-and-killed-popups-forever-2hg0</link>
      <guid>https://dev.to/madhariwal/why-i-built-an-ad-free-4k-video-downloader-in-nextjs-14-python-and-killed-popups-forever-2hg0</guid>
      <description>&lt;p&gt;Have you ever tried downloading a public video from Reddit or an educational lecture from YouTube recently?&lt;/p&gt;

&lt;p&gt;You type "video downloader" into Google, click on one of the top results, and within 3 seconds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Three sketchy popups open in background tabs.&lt;/li&gt;
&lt;li&gt;You see 4 blinking green "DOWNLOAD NOW" buttons (3 of which are adware installers).&lt;/li&gt;
&lt;li&gt;You finally download the Reddit video, only to discover &lt;strong&gt;it has no sound&lt;/strong&gt; because Reddit serves video and audio on separate streams.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As a full-stack engineer, I got sick of this hostile user experience. The web shouldn't feel like navigating a minefield just to grab an offline copy of a creative commons video, a transcript, or a TikTok tutorial without a giant watermark plastered over it.&lt;/p&gt;

&lt;p&gt;So I spent the last few weeks building &lt;strong&gt;&lt;a href="https://getvideo.techhowl.site" rel="noopener noreferrer"&gt;GetVideo&lt;/a&gt;&lt;/strong&gt; — an ad-free, high-performance public media utility built with &lt;strong&gt;Next.js 14, FastAPI, Redis, and Caddy&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Here is a look behind the scenes at the architecture, the technical hurdles, and why modern web engineering makes this 10x faster.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Tech Stack at a Glance
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Frontend&lt;/strong&gt;: &lt;a href="https://nextjs.org/" rel="noopener noreferrer"&gt;Next.js 14 App Router&lt;/a&gt; (Server Components, Tailwind CSS, &lt;code&gt;next-intl&lt;/code&gt; for English + Urdu RTL, PWA with native Web Share Target).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend API&lt;/strong&gt;: &lt;a href="https://fastapi.tiangolo.com/" rel="noopener noreferrer"&gt;FastAPI&lt;/a&gt; (Python 3.13, Pydantic v2 async validation, sliding-window token bucket rate-limiting).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Queue &amp;amp; Workers&lt;/strong&gt;: Redis 7 + &lt;a href="https://arq-docs.helpmanual.io/" rel="noopener noreferrer"&gt;ARQ&lt;/a&gt; worker pool for asynchronous extraction and stream multiplexing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multiplexer&lt;/strong&gt;: Custom FFmpeg stream-copy pipeline (&lt;code&gt;-c copy&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reverse Proxy&lt;/strong&gt;: Caddy 2 with automatic Let's Encrypt TLS and HTTP/3 support.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Live application: &lt;strong&gt;&lt;a href="https://getvideo.techhowl.site" rel="noopener noreferrer"&gt;https://getvideo.techhowl.site&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Challenge 1: The Reddit "Muted Video" Problem (Zero-Transcode Stream Copy)
&lt;/h2&gt;

&lt;p&gt;Most legacy downloaders fail on Reddit because Reddit uses DASH (Dynamic Adaptive Streaming over HTTP). The video stream (&lt;code&gt;DASH_1080.mp4&lt;/code&gt;) and the audio stream (&lt;code&gt;DASH_AUDIO_128.mp4&lt;/code&gt;) live on completely separate URLs.&lt;/p&gt;

&lt;p&gt;Cheap converters try to run full FFmpeg re-encoding (&lt;code&gt;libx264&lt;/code&gt; + &lt;code&gt;aac&lt;/code&gt;), which melts their server CPU and takes 30–60 seconds per video.&lt;/p&gt;

&lt;p&gt;Instead, we use &lt;strong&gt;FFmpeg Stream Copy&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -i video_input.mp4 -i audio_input.m4a -c copy -map 0:v:0 -map 1:a:0 output.mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because &lt;code&gt;-c copy&lt;/code&gt; simply repacks the packets into a clean MP4 container without touching the underlying bytes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CPU utilization is almost &lt;strong&gt;0%&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Merging a 1080p 3-minute video takes &lt;strong&gt;less than 400 milliseconds&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Users get a pristine, audio-synced video instantly.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Challenge 2: Real-Time SSE Feedback (No Fake Spinner Animations)
&lt;/h2&gt;

&lt;p&gt;Instead of a generic loading spinner, we implemented Server-Sent Events (SSE) between FastAPI and the Next.js client.&lt;/p&gt;

&lt;p&gt;When a user submits a URL on &lt;strong&gt;&lt;a href="https://getvideo.techhowl.site" rel="noopener noreferrer"&gt;GetVideo&lt;/a&gt;&lt;/strong&gt;, the job is queued in Redis:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;queued&lt;/code&gt; (Queue position calculated)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;fetching&lt;/code&gt; (Extracting adaptive streams)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;merging&lt;/code&gt; (Instant FFmpeg stream-copy)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ready&lt;/code&gt; (Signed single-use HMAC token generated)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The frontend renders a pleasant real-time progress bar. Once ready, the browser automatically triggers the file download via an ephemeral signed URL that self-destructs after 15 minutes.&lt;/p&gt;




&lt;h2&gt;
  
  
  Challenge 3: TikTok Without Watermarks &amp;amp; Bilingual Subtitles
&lt;/h2&gt;

&lt;p&gt;Two features I really wanted for myself:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;TikTok No-Watermark&lt;/strong&gt;: Content creators constantly need to repurpose their own TikTok videos to YouTube Shorts or Instagram Reels. We parse direct CDN streams to deliver 100% clean, uncompressed video.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Subtitles &amp;amp; Transcripts Studio&lt;/strong&gt;: Many people need transcripts for research or language learning. We built a tool into GetVideo that extracts &lt;code&gt;.srt&lt;/code&gt; and &lt;code&gt;.vtt&lt;/code&gt; tracks, exports clean plain-text transcripts, and can even &lt;strong&gt;merge bilingual subtitles&lt;/strong&gt; (e.g., Spanish + English side-by-side).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You can test the subtitle extractor and tools directly on the live platform:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://getvideo.techhowl.site" rel="noopener noreferrer"&gt;Universal Video Downloader&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://getvideo.techhowl.site/en/tiktok-video-downloader" rel="noopener noreferrer"&gt;TikTok No-Watermark Downloader&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;a href="https://getvideo.techhowl.site/en/instagram-reels-downloader" rel="noopener noreferrer"&gt;Instagram Reels Downloader&lt;/a&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Privacy by Design (Ephemeral Storage)
&lt;/h2&gt;

&lt;p&gt;We don't want your data. We don't store your videos. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We do not require accounts or logins.&lt;/li&gt;
&lt;li&gt;Download tokens expire in 15 minutes.&lt;/li&gt;
&lt;li&gt;A dedicated cleanup daemon runs every 15 minutes to permanently purge temp media from server storage.&lt;/li&gt;
&lt;li&gt;Zero tracking scripts or sketchy third-party ad networks.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  What’s Next?
&lt;/h2&gt;

&lt;p&gt;I’m currently rolling out a lightweight browser extension and expanding platform extractors. &lt;/p&gt;

&lt;p&gt;I'd love for the dev community to try it out, stress-test it, and share feedback!&lt;/p&gt;

&lt;p&gt;Check it out here: &lt;strong&gt;&lt;a href="https://getvideo.techhowl.site" rel="noopener noreferrer"&gt;https://getvideo.techhowl.site&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What tools do you usually use for media extraction, and what features would you like to see next? Let me know in the comments!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>nextjs</category>
      <category>python</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
