Remove frozen parts from a corrupted video
If your video has fixed frame rate, you probably mean by “frozen part” the part with the same frame repeated many times.

To remove duplicate frames you may apply the mpdecimate filter.