Tool
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.
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.
‘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.
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.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.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.input.mp4, so replace it yourself.Conversion failed! is not a cause but a closing message.-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.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.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.ffmpeg -v error -i file -f null -. If nothing is printed, FFmpeg read the whole file without hitting an error.