Menu

Building a video downloader app in Flutter without ffmpeg
πŸ“°

Building a video downloader app in Flutter without ffmpeg

DEV Community: dartΒ·FCS AppsΒ·16 days ago
#yUx1WKCO
#devtodart#devto#dev#segments#sample
Reading 0:00
15s threshold

I build Vidkap, a video downloader app for Android and a video downloader extension for Chrome. Both do the same job: find the videos a web page actually loads and save them as a normal file you can keep.

A plain MP4 link is easy. Most video on the web isn't one, though. It's HLS or DASH: a playlist that points at hundreds of small segments, sometimes encrypted, sometimes with audio and video as separate streams. To give the user one playable file, you have to download all of it and put it back together.

The usual Flutter answer is to bundle ffmpeg. I didn't, for three reasons:

It adds tens of megabytes to the app.

FFmpegKit, the common Flutter wrapper, was retired in 2025.

I wanted full control over progress, cancellation and resuming.

The Chrome extension already had a JavaScript engine for this, so I ported it to Dart. It's now about 13,000 lines and goes from playlist to playable MP4 without any native media library.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.