Download ffmpeg
from here, download *-win64-gpl.zip
for Windows.
Install ffmpeg
for Ubuntu
sudo apt install ffmpeg
Below command will give you a log file. If no error found, the log file will be empty.
# scan a single file
ffmpeg.exe -v error -i C:\to\path\file.avi -f null - >error.log 2>&1
# batch scan
find C:\to\path\ -name "*.mp4" -exec sh -c "ffmpeg -v error -i '{}' -map 0:1 -f null - 2>'{}.log'" \;