Hoping someone can help me, I've found some good info on these forums though I can't seem to get it to work. Thanks in advance :)

My aim: To validate the integrity of several hundred .mp4 which where downloaded over http. Due to connection issues, some of the videos are only partially downloaded. They show as correct video duration but the file size is significantly smaller. Videos play fine at start then cut off.

Below are several commands I've used with FFmpeg with varying success:


Scan Each Frame (Works, but takes very long time)
Code:
ffmpeg -v error -i "File Name".mp4 -f null - >error.log 2>&1
Scan 1 audio track (False negative)
Code:
ffmpeg -v error -i "File Name".mp4 -map 0:1 -f null - >error.log 2>&1
Scan Last 60sec (False negative, unless -sseof > or = video duration)
Code:
ffmpeg -v error -sseof -60 -i "File Name".mp4 -f null - >error.log 2>&1

I also would like to be able to run a batch scan of all files in folder, though can't get it to work.

Batch Scan Each Frame
Code:
find . -type f -exec sh -c 'ffmpeg -v error -i "{}" -f null - > "{}".log 2>&1' \;
Gives following error:

Code:
Access denied - .
File not found - -TYPE
File not found - F
File not found - -EXEC
File not found - SH
File not found - -C
File not found - 'FFMPEG
File not found - -V
File not found - ERROR
File not found - -I
File not found - -F
File not found - NULL
File not found - -
File not found - '
File not found - \;