Please install the video card, sound card and motherboard driver from vendors. Do not use the default drivers from Windows operation system. The drivers are usually too old to operate correctly.
The other reason for this problem usually is the result of installing other CODEC software like Nimo or K-Lite. This kind of software forces applications to use their CODEC for play back. Therefore, the recorded file cannot be played since a different CODEC is being used for playback. Uninstall the CODEC software and reinstalling DirectX usually solves the problem.
It' also possible that Windows OS's system files has been damaged by virus or malicious software.
If this is the case, repair or fresh install the Windows OS is the only way to solve this problem.