Authorities have said black boxes holding the flight data and cockpit voice recorders stopped recording around four minutes before the crash.