I have broken part of an mp4 file, and I know it caused by a network error when downloading it. I think FFmpeg capable of removing the unplayable part.
Error while decoding stream #0:0: Invalid data found when processing input
[aac @ 0x2174b40] channel element 0.0 is not allocated
Last message repeated X times
A command that worth a try, please