yt-dlp is excellent at answering one question: “What media URLs does this page expose?”
It is not automatically the best component for a different question: “How should this exact file be transferred, resumed, and verified?”
I learned that distinction while building GanKa Downloader, and separating those two jobs fixed both performance and trust problems.
The original design
The first version had a simple pipeline:
browser request → yt-dlp → downloaded file That worked for many pages, but it hid an important detail. For a direct MP4, the “8 connections” setting did not mean the media file was downloaded with eight connections. yt-dlp resolved the URL and then downloaded that direct file with one connection.
The setting was real, but it was attached to the wrong layer.
Separating resolution from transfer
The current design has three responsibilities:
- The browser discovers and hands off eligible downloads. It does not own the transfer.
- The resolver extracts fresh format metadata and URLs. yt-dlp is useful here because it understands many sites, format selectors, cookies, and player conventions.
- The local manager chooses and runs the transfer engine. It owns queues, resume state, progress, fallback, and the final file.
In simplified form:
browser request ↓ resolver → format metadata + fresh URLs ↓ engine selection ├─ direct media + HTTP Range → segmented downloader ├─ HLS playlist → segment downloader └─ unsupported path → yt-dlp fallback ↓ validate output → complete The resolver is not the permanent source of truth for the transfer. It produces the information the manager needs to choose an engine, and the manager is responsible for what happens next.
Why the engine choice matters
For a direct media file that supports byte ranges, a segmented downloader can split the file into multiple ranges and transfer them concurrently. For an HLS playlist, the useful unit is a segment, not the whole file. For separate audio and video tracks, each track can be downloaded independently and then merged without re-encoding.
That separation also makes fallback easier to reason about:
- If segmentation fails early, fall back before wasting significant bandwidth.
- If it fails after a large amount has already transferred, report the error instead of silently downloading everything again.
- If the user selected a specific resolution, never replace it with a lower-resolution format just to make the task look successful.
The harder part is correctness
Multi-connection transfer is only useful if the resulting file is actually correct. The most important guards in GanKa are not about speed:
- Fragment filtering: initialization segments and numbered fragments should not become “finished videos.”
- Tiny-output rejection: a 1 KB file is not a valid completed movie.
- Resume identity: ETag or Last-Modified changes invalidate old partial data.
- Resolution lock: a selected 4K format must not silently become 720p.
- Track validation: audio and video durations must be plausibly aligned before merging.
- Honest phases: downloading, merging, muxing, finalizing, and completed are different states.
The UI should never show 100% while ffmpeg is still merging tracks.
The speed claim needs conditions
On the same file and machine, my test measured:
1 connection: 2.9 MB/s 8 connections: 22.4 MB/s That is a real result, but it is not a universal promise. Small files may stay single-connection because segmentation has no benefit. A server without Range support cannot be accelerated this way. An edge-limited route can even perform worse with more connections.
I would rather publish the conditions than claim “8x faster” everywhere.
Current scope
- Windows only
- 15-day trial, then US$5 one-time
- No account, cloud upload, or download-history sync
- No DRM or live-stream support
- Direct installer from the official website
If you want to try it: https://api.ganskills.com/dl?ch=dev_transfer&utm_source=devto&utm_medium=organic&utm_campaign=global_202611&utm_content=transfer_architecture
I’m especially interested in feedback from developers who have built download queues or media pipelines: where do you draw the line between parsing, transfer, and final-file validation?