VideoFFmpegVideoEditorConfig class

Inheritance

Constructors

VideoFFmpegVideoEditorConfig(VideoEditorController controller, {String? name, String? outputDirectory, double scale = 1.0, bool isFiltersEnabled = true, VideoExportFormat format = VideoExportFormat.mp4, String commandBuilder(FFmpegVideoEditorConfig config, String videoPath, String outputPath)?})
const

Properties

commandBuilder → (String Function(FFmpegVideoEditorConfig config, String videoPath, String outputPath)?)
The commandBuilder can be used to add additional filters or options to the generated command
final
controller VideoEditorController
finalinherited
cropCmd String
Convert the controller's minCrop and maxCrop params into a String used to provide crop values to FFmpeg (see more)
no setterinherited
format VideoExportFormat
The format of the video to be exported. You can export as a GIF file by using VideoExportFormat.gif or with GifExportFormat() which allows you to control the frame rate of the exported GIF file.
final
gifCmd String
Returns the FFmpeg command to make the generated GIF to loop infinitely see FFmpeg doc
no setter
hashCode int
The hash code for this object.
no setterinherited
isFiltersEnabled bool
Set isFiltersEnabled to false if you do not want to apply any changes. Defaults to true.
finalinherited
name String?
If the name is null, then it uses this video filename.
finalinherited
outputDirectory String?
If the outputDirectory is null, then it uses TemporaryDirectory.
finalinherited
rotationCmd String
Convert the controller's rotation value into a String used to provide crop values to FFmpeg (see more)
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double
The scale is scale=width*scale:height*scale and reduce or increase the file dimensions. Defaults to 1.0.
finalinherited
scaleCmd String
see FFmpeg doc
no setterinherited
startTrimCmd String
Returns the FFpeg command to apply the controller's trim start parameters see FFmpeg doc
no setter
toTrimCmd String
Returns the FFpeg command to apply the controller's trim end parameters see FFmpeg doc
no setter

Methods

filtersCmd(List<String> filters) String
Returns the -filter:v (-vf alias) command to use in FFmpeg execution
inherited
getExecuteConfig() Future<FFmpegVideoEditorExecute>
Returns a FFmpegVideoEditorExecute command to be executed with FFmpeg to export the video applying the editing parameters.
override
getExportFilters() List<String>
Returns the list of all the active filters, including the GIF filter
override
getFFmpegProgress(int time) double
Can be used from FFmpeg session callback, for example:
inherited
getOutputPath({required String filePath, required FileFormat format}) Future<String>
Returns the output path of the exported file
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited