pub fn verify(
destination: &Path,
expected_ms: Option<u64>,
) -> Result<(), String>Expand description
Checks a converted file the only way a converted file can be checked.
Comparing checksums is meaningless here: the bytes are different by construction, which is the whole point. What can be checked is that the result is a file this program can read, that it holds audio, and that the audio lasts as long as what went in — which is what catches the failure that actually happens, an encode cut short by a full disk or a killed process.
It reads the output with Aède’s own parsers rather than asking ffmpeg again: a verification that trusts the tool being verified is not one.