The SDL version of FCEU has this annoying
bugfeature:
When you are recording a movie, and you accidentally load a savestate that was made
outside of recording, it will spit out an error, stop recording and
truncate the current movie to about 30 frames.
It has happened to me more than once, and based on the algorithm I figured out a few days ago, I created a recovery utility that repairs movie files that are damaged in situations like this.
Here it is.
http://bisqwit.iki.fi/utils/fcmrepairer.php
Feed it your truncated FCM file, and your
latest backup copy of the working FCM, and it will generate you the recovered movie - just as it was before your clumsy accident.
The more recent your backup was, the better the chances of succeeding.
This utility might save your day also if you accidentally load a wrong savestate.
Seemingly it generates movie data out from nothing, but the magic is that the data was still there in your FCM file, because FCEU actually never truncates the file. There's a lot of cruft at the end of the file. This utility takes advantage of that.