Tool

FFmpeg Error Log Explainer

Errors like ‘Invalid data found when processing input’ and ‘moov atom not found’ use the same wording for several different causes. Paste your log and the tool uses rules to find the error lines, separates a broken file from a bad command, and builds commands for you to try.

Examples:

The log is analyzed only inside this browser and is never sent to a server. Still, remove personal details such as file paths or tokens in URLs before you paste.

Why does the same error message have several causes?

‘Invalid data found when processing input’ is a generic message meaning ‘I ran into data I can’t parse.’ So what it means depends on where it appears.

  • At the moment the file is opened (there is no Input #0 in the log): the format wasn’t recognized. Common causes are a file that didn’t finish downloading, a file with the wrong extension, or a file where an error page was saved instead of the video.
  • During conversion (a stream number is attached, as in Error while decoding stream #0:1): part of that stream is damaged or the settings don’t match. #0:0 is the first stream of the first input (usually video) and #0:1 is the second stream (usually audio). You can confirm the exact numbers in the Stream #0:… list near the top of the log.
  • moov atom not found: the MP4 or MOV file has no index. This is mostly a problem with the file itself, not something settings can fix.

How does this tool decide?

  • It reads the log line by line and checks it against regular-expression rules for about thirty commonly seen error messages. It uses no AI and no outside server, and the same log always gives the same result.
  • It reads the Stream #0:N list under Input #0 … in the log and links each stream number to its type (video, audio, subtitle). For lines that start with a decoder name ([h264 @ …], [aac @ …]), it tells video from audio by that name.
  • It sorts causes into four groups: possibly a damaged file · command or settings problem · install, device or network problem · note (usually harmless). Lines that hit the same rule are merged into one item, with the number of lines shown.
  • If it can read the input file name from the log, it puts that name into the commands as is. If it can’t, it leaves input.mp4, so replace it yourself.

How do I use the results?

  • If there are several items, start from the top of the log: even when many lines appear, the first error is usually the cause and the rest are its consequences. In particular, Conversion failed! is not a cause but a closing message.
  • Try the repair commands in order: first look at the extent of the errors with -f null -, then see whether copying without re-encoding (-c copy) solves it, and if not, encode again. Re-encoding can change the quality slightly, so don’t delete the original. The -crf 18 in the commands is just an example; you can pick a value for your target quality in the CRF Recommender.
  • If you got a container error: when the cause is a codec that can’t go into MP4, the MKV to MP4 Remux Feasibility Checker can show you in advance which track is the problem.
  • If you got a sync or timestamp warning: the video may have uneven frame intervals (VFR), so check it with the VFR Detector. For how time is written inside a file, see the timestamps lesson.
  • If you want to build a command from scratch: the FFmpeg Command Builder makes a basic command that starts without errors.

Getting a proper log

  • Add 2>log.txt to the end of the command and FFmpeg’s messages are saved to a file (FFmpeg writes its messages to standard error). In Windows PowerShell, it’s simpler to drag-select the text in the terminal window and copy it.
  • If you can, paste everything from the version banner at the top through Input #0 and Stream mapping to the error lines. The stream numbers and codec info are near the top, so if you paste only the error lines there’s no way to tell which stream is meant.
  • To find out whether a file is really damaged, run ffmpeg -v error -i file -f null -. If nothing is printed, FFmpeg read the whole file without hitting an error.

Limitations worth knowing

  • It is rule-based, so it can’t interpret messages it doesn’t know. An error that isn’t on the list is shown as ‘not found.’ The wording can also change when the FFmpeg version changes.
  • A cause is a possibility. A log alone can’t confirm whether a file is damaged. The same message can come from other causes, so the tool shows the most severe items first rather than ordering them by likelihood.
  • The suggested commands are for trying out. This page doesn’t publish measured results for the commands (whether the repair succeeds, how the quality changes). They don’t repair every file, and an MP4 without its index in particular is hard to fix with FFmpeg alone. Back up the original before you run anything.
  • Hardware encoder, network and filter errors have many possible causes depending on the environment, so the tool only gives a general checklist.
  • The log is not sent to a server; it is processed only inside this browser.