By default, VideoEditor SDK exports edited video in the same resolution, as it was originally loaded into the editor, as long as no cropping operation was carried out. The frame rate of the exported video is the same as the input video and cannot be modified.
VideoEditorSaveSettings holds all the settings related to exporting and saving the video. Upon export, the
Uri of the exported video can be obtained from
VideoEditor SDK supports three
EXPORT_ALWAYS- Default mode. The editor will always export the video. For a successful export, the
EXPORT_IF_NECESSARY- The editor will only export if there are any modifications made to the video. The
DONE_WITHOUT_EXPORTif an export attempt was made without any modifications to the video.
EXPORT_ONLY_SETTINGS_LIST- The editor will not export the video. This is useful if you only need the dump of the
EditorSDKResult.settingsList) for serialization or background export. The
DONE_WITHOUT_EXPORTif an export attempt was made.
The output mode can be set in
The export format can be set using
Bit rate - By default, the exported video has the same bit rate as the input video. It can be set in
Bits per pixel (BPP) - Setting
VideoEditorSaveSettings.bitsPerPixelis a better option than setting the bit rate as it takes into account the size of the video. When this is set to a non-null value,
VideoEditorSaveSettings.bitRateis ignored. The resultant bitrate is calculated by multiplying the BPP with the width, height, and frame rate of the video. A common value for good quality/size balance with H.264 is
0.08fand sensible values are from 0.04f to 0.25f while VP8 looks good on lower values as well.
I-frame interval - By default, the i-frame interval is set to 2 seconds. It can be set in