It's best to ferment fresh, raw vegetables. Freezing or cooking vegetables can damage their cell structure and alter the natural microbial environment, hindering successful fermentation.
Fermentation relies on the activity of beneficial bacteria naturally present on the surface of raw vegetables. These bacteria consume sugars and starches, producing lactic acid, which preserves the vegetables and gives them their characteristic tangy flavor.
Freezing vegetables can rupture cell walls, releasing enzymes and causing a loss of texture. This can lead to mushy or undesirable results during fermentation. While some frozen vegetables might technically ferment, the texture and flavor will likely be compromised.
Cooking vegetables also alters their structure and destroys the naturally occurring bacteria essential for fermentation. Cooked vegetables lack the necessary sugars and starches in their raw form, and the heat kills the beneficial microorganisms needed to initiate the fermentation process. While you could theoretically add a starter culture to cooked vegetables, the results are often unpredictable and less desirable than fermenting raw vegetables.
If you absolutely must use vegetables that have been frozen, consider adding a pinch of sugar or a small amount of fresh, raw vegetables to provide the necessary food source for the bacteria and improve the chances of successful fermentation. However, be aware that the texture may still be affected.