ffmpeg(1) -err_detect ignore_err -i video.mkv -c copy video_fixed.mkv
ffmpeg video converter
-r fps
    Set frame rate (Hz value, fraction or abbreviation), (default = 25).
-t duration
    Restrict the transcoded/captured video sequence to the duration specified in seconds.
    "hh:mm:ss[.xxx]" syntax is also supported.
-i filename
    input file name
source manpages: ffmpeg