How long is the recording on a flight recorder?

As of 2005, it is an FAA requirement that the recording duration is a minimum of thirty minutes, but the NTSB has long recommended that it should be at least two hours.