That reminds me of a thread I saw on an Internet forum a few years ago about some guy suggesting powering his fridge with a bicycle during a power outage. Turns out this is an extremely complicated problem which is probably best solved by ignoring it.
I bet you would get better results directly spinning the compressor via a flywheel rather than trying to generate the electricity to run the refrigerator.