genVideoCover method
Generates cover images (thumbnails) for a list of video files.
This function processes the given list of video file paths and extracts their cover images (thumbnails), saving them to the specified output directory.
for linux -> sudo apt install ffmpeg
Parameters:
outDirPath
(required): The directory path where the generated thumbnails will be saved.videoPathList
(required): A list of video file paths for which covers need to be generated.iconSize
(optional, default: 300): The size (in pixels) of the generated cover images.
Returns:
- A Future that completes when all video covers are generated.
Example Usage:
await genVideoCover(
outDirPath: '/storage/emulated/0/VideoCovers',
videoPathList: ['/storage/emulated/0/Movies/sample.mp4'],
iconSize: 400,
);
This method should be implemented to provide actual functionality.
/// Deprecated: Use genVideoThumbnail
instead.
Implementation
@override
Future<void> genVideoCover({
required String outDirPath,
required List<String> videoPathList,
int iconSize = 300,
}) async {
await ThanPkg.android.thumbnail.genVideoThumbnailList(
outDirPath: outDirPath,
videoPathList: videoPathList,
iconSize: iconSize,
);
}