A download that reaches 100% has stopped receiving bytes. It has not told you that it received all of them.

That distinction sounds academic until it costs you an afternoon. I have spent the last year building a download manager for Windows, and the most common support message is not "it crashed" or "it is slow". It is "it finished, and the file does not work." Sometimes the video plays with no sound. Sometimes it opens for two seconds and stops. Sometimes the archive fails to extract, or the installer insists it is corrupt.

In every one of those cases the transfer did exactly what it was told. The server closed the connection, the byte counter reached the announced total, and the client reported success. The problem is that the announced total was never the size of the thing you wanted.

Three ways a finished download is still wrong

1. It is a preview, not the file. Many sites serve a short sample to anonymous visitors and the full file to logged-in ones. If your session expired mid-transfer, or the media token in the URL was single-use, you end up with a well-formed file that is a fraction of the real length. It plays. It just stops early.

2. It is a fragment or an initialization segment. Adaptive streaming splits everything into small pieces: a manifest, then two seconds of video, then two seconds more. Save a piece instead of assembling the whole thing and you get a file of a few hundred kilobytes with a real MP4 header sitting on top of it. Valid, and useless.

3. It has no audio track. This is the one nobody expects. Modern streams carry video and sound as separate tracks, listed separately in the manifest. A tool that only follows the video playlist produces a perfectly playable file with a silent audio track. Nothing fails. Nothing warns you. You discover it the moment you press play.

The 30-second check

You do not need a special tool for any of this. Two ffprobe commands cover most cases.

First, the real size and duration:

ffprobe -v error -show_entries format=duration,size -of default=nw=1 yourfile.mp4 

Compare the duration against what the page claimed. If it is seven percent of it, you have a preview. If the size is a couple of hundred kilobytes for something that should be a video, you have a fragment.

Then the streams:

ffprobe -v error -show_entries stream=codec_type -of csv=p=0 yourfile.mp4 

If there is no line saying audio, you have a silent file. This is the check that saves the most time, because the file looks healthy everywhere else — correct header, correct duration, plays in every player.

For segmented streams there is a third check worth knowing: add up the durations declared in the playlist (#EXTINF for HLS) and compare the sum with the length of the file you produced. A significant shortfall usually means segments were skipped, which is silent data loss rather than an encoding problem.

What has to happen for the check to be possible

None of this is exotic. It is work that has to be done deliberately, and most download paths do not do it, because a browser's job ends the moment the last byte arrives.

Doing it properly means three things:

  • Record the expected size and duration before the transfer starts, and verify them after it ends.
  • Assemble separate audio and video tracks instead of saving whichever playlist you happened to follow.
  • Refuse to call something complete when the numbers disagree, and say why instead of showing a green checkmark.

As an engineer, that is the interesting part of the problem. Speed is easy to demo. Knowing when to say "this is not the file you asked for" is the actual feature.

One honest caveat

Verification works on ordinary downloads and on streams you are entitled to fetch. It does not defeat DRM, it does not get past a paywall, and it cannot verify a live stream that has no declared length — there is nothing to check against. Anything claiming otherwise is describing a different product.

I build GanKa Downloader, a Windows download manager that does these checks automatically. It is a paid tool (US$5 one-time, 15-day trial), so treat the mention with the appropriate scepticism — the commands above work in any terminal, with or without it.