mencoder -forceidx ~/Videos/endo.avi -ovc copy -oac copy -o ~/Videos/endo_fix.avi