I'm not sure that you are going to get any replies on this thread.
I think that maybe what you want is a DECODER that hides bad frames (just plays the last good frame),
an encoder will just try to encode whatever it is given.
Alternatively you could edit the bad frame in eg Avisynth, replace a bad frame with frame before or after, or
interpolate some missing frames. (audio need not be touched).
EDIT: Sawbones:-
http://forum.doom9.org/showthread.ph...light=sawbones