CoverFFmpegVideoEditorConfig class
- Inheritance
-
- Object
- FFmpegVideoEditorConfig
- CoverFFmpegVideoEditorConfig
Constructors
- CoverFFmpegVideoEditorConfig(VideoEditorController controller, {String? name, String? outputDirectory, double scale = 1.0, bool isFiltersEnabled = true, CoverExportFormat format = CoverExportFormat.jpg, int quality = 100, String commandBuilder(CoverFFmpegVideoEditorConfig config, String coverPath, String outputPath)?})
-
const
Properties
- commandBuilder → (String Function(CoverFFmpegVideoEditorConfig config, String coverPath, 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
andmaxCrop
params into a String used to provide crop values to FFmpeg (see more)no setterinherited - format → CoverExportFormat
-
The format of the cover image to be exported.
final
- 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 totrue
.finalinherited - name → String?
-
If the name is
null
, then it uses this video filename.finalinherited - outputDirectory → String?
-
If the outputDirectory is
null
, then it usesTemporaryDirectory
.finalinherited - quality → int
-
The quality of the exported image (from 0 to 100 (more info))
final
- 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 to1.0
.finalinherited - scaleCmd → String
-
see FFmpeg doc
no setterinherited
Methods
-
filtersCmd(
List< String> filters) → String -
Returns the
-filter:v
(-vf alias) command to use in FFmpeg executioninherited -
getExecuteConfig(
) → Future< FFmpegVideoEditorExecute?> -
Returns a
FFmpegVideoEditorExecute
command to be executed with FFmpeg to export the cover image applying the editing parameters.override -
getExportFilters(
) → List< String> -
Returns the list of all the active filters
inherited
-
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