video_thumbnail
0.5.6, released 2 years ago by an unverified publisher
Generates image thumbnails from local video files or URLs on Android and iOS.
What it does
Generates image thumbnails from video files or URLs. It returns the image in memory as a Uint8List or saves it as a file with customizable format, resolution, and quality.
AI-written summary of version 0.5.6, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display video thumbnails in a Flutter app from local files or URLs.
- You want to save a generated video frame as an image file on the device.
Skip it when
- You need web or desktop platform support (currently only supports Android and iOS).
- You require complex video editing or full video playback capabilities.
Strengths
- Supports both in-memory thumbnails and saving directly to a file.
- Customizable format (JPEG, PNG, WEBP), resolution, quality, and time offset.
Weaknesses
- Limited platform support (only Android and iOS).
- Known minor performance issues when generating WebP thumbnails on iOS using libwebp.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add video_thumbnail to pubspec.yaml. No extra native permissions documented in the README.
final uint8list = await VideoThumbnail.thumbnailData(
video: videofile.path,
imageFormat: ImageFormat.JPEG,
maxWidth: 128,
quality: 25,
);Alternatives
Packages that do the same job and could replace video_thumbnail.
- stream_thumbnail
Create thumbnail images from local video files or URLs as bytes or files.
82Compare - get_thumbnail_video
Generates image thumbnails from local video files, URLs, or assets.
50Compare - fc_native_video_thumbnail
Generate video thumbnails using native platform APIs
80Compare - video_player_android
Android implementation of the video_player plugin
88Compare
Works with
Packages commonly used together with video_thumbnail: ones it builds on, ones built on it, and its own family.