How to Check If a Video File Is Corrupted [Using FFmpeg]

I can't play a video file on Windows PC, and I wonder why? How to check if a video file is corrupted or not? And is there any way to repair the corrupted video file?

Best Answered by

Brithny· Answered on Jul 20, 2023

If you want to know how to check if a video file is corrupted, an easy way to check the video is by using FFmpeg on your Windows PC and using the trusted software EaseUS Data Recovery Wizard to repair the corrupted video.

 Download for Win Recovery Rate 99.7%
 Download for Mac Trustpilot Rating 4.7

FFmpeg is the easiest way of checking the integrity of any video file type. Follow the steps below to check if a video file is corrupted or not:

Step 1. Download and launch FFmpeg on your Windows PC.

Step 2. Use a feature in FFmpeg video converter: the command line will just read the input file and report any errors that will appear: ffmpeg.exe -v error -i file.avi -f null - >error.log 2>&1.

Step 3. If it doesn't catch all problems with missing frames, use the command: ffprobe -show_entries stream=r_frame_rate,nb_read_frames,duration -select_streams v -count_frames -of compact=p=1:nk=1 -threads 3 -v 0.

Step 4. Check the output, which should be like this:

  • header framerate
  • video length in seconds
  • true frame count

Step 5. You can then check if there are missing frames. e.g., 25 * duration should equal the frame count, or it will be less if you miss frames.

And secondly, using EaseUS Data Recovery Wizard to fix corrupted video with three steps:

Step 1. Launch EaseUS Data Recovery Wizard on your Windows PC, choose the partition which contains the corrupted video, and then click 'Scan' to start.

Step 2. The EaseUS software will scan the selected partition and display all lost, deleted, and existing files. You can select 'Videos' under the file type on the left side and quickly find the corrupted video you want to repair.

Step 3. When you can preview the video, the software has fixed it for you. Finally, click 'Recover' to restore the fixed video to a different location rather than the original partition.

Use EaseUS Data Recovery Wizard to recover deleted or lost files easily and quickly.

Tutorials on how to recover lost, deleted, or formatted data from HDD, SSD, USB, SD card, or other storage media on Windows and Mac.