diff --git a/media/java/android/media/MediaRecorder.java b/media/java/android/media/MediaRecorder.java index 125ab2e91e22d..62d93d65cea80 100644 --- a/media/java/android/media/MediaRecorder.java +++ b/media/java/android/media/MediaRecorder.java @@ -698,6 +698,12 @@ public class MediaRecorder implements AudioRouting, * is no guarantee that the recorder will have stopped by the time the * listener is notified. * + *
When using MPEG-4 container ({@link #setOutputFormat(int)} with + * {@link OutputFormat#MPEG_4}), it is recommended to set maximum duration that fits the use + * case. Setting a larger than required duration may result in a larger than needed output file + * because of space reserved for MOOV box expecting large movie data in this recording session. + * Unused space of MOOV box is turned into FREE box in the output file.
+ * * @param max_duration_ms the maximum duration in ms (if zero or negative, disables the duration limit) * */ @@ -713,6 +719,12 @@ public class MediaRecorder implements AudioRouting, * is no guarantee that the recorder will have stopped by the time the * listener is notified. * + *When using MPEG-4 container ({@link #setOutputFormat(int)} with + * {@link OutputFormat#MPEG_4}), it is recommended to set maximum filesize that fits the use + * case. Setting a larger than required filesize may result in a larger than needed output file + * because of space reserved for MOOV box expecting large movie data in this recording session. + * Unused space of MOOV box is turned into FREE box in the output file.
+ * * @param max_filesize_bytes the maximum filesize in bytes (if zero or negative, disables the limit) * */