video conversion – Some invalid files from action camera as reported by ffmpeg, any advice welcome

I have a number of clips produced by a cheap sports action camera, a number of them cannot be played by any players, and ffpeg/ffprobe seems to indicate they contain ‘bad data’. The issue does not seem to be related to file size. Any ideas of how to diagnose/fix/repair/sequence the files really appreciated.

A good file output:

[avi @ 0x5e0efbbc5680] non-interleaved AVI
Input #0, avi, from 'VID00000.AVI':
  Duration: 00:13:52.67, start: 0.000000, bitrate: 14733 kb/s
  Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D), yuvj420p(pc, bt470bg/unknown/unknown), 1440x1080 [SAR 72:72 DAR 4:3], 14474 kb/s, 30 fps, 30 tbr, 30 tbn
  Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 16000 Hz, 1 channels, s16, 256 kb/s```

For a file that fails:

[avi @ 0x605ae2495680] Format avi detected only with low score of 1, misdetection possible
VID00004.AVI: Invalid data found when processing input

Any ideas on how to fix this really appreciated, about 20% of my clips seem to suffer this issue!

Read more here: Source link