How to repair broken mp4, m4v and mkv videos with ffmpeg Batch repair with no transcoding or generation loss! Since we are already on the command line, doing it in bash makes the most sense.