fc_native_video_thumbnail
4.0.0, released 5 weeks ago by flutter-cavalry.com
Generate video thumbnails using native platform APIs
What it does
Creates a thumbnail image from a video file. It supports saving to a file or returning raw bytes, with optional seeking to a specific time.
AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Need a quick thumbnail for a video preview
- Want to cache thumbnails locally
- Require high‑performance native extraction
Skip it when
- Running on Linux without FFmpeg installed
- Using very old iOS or macOS targets below 16/13
Strengths
- Native API usage gives fast, high‑quality thumbnails
- Supports multiple platforms (iOS, Android, macOS, Windows, Linux)
- Asynchronous API with error handling
- Optional seeking to arbitrary time positions
Weaknesses
- Linux requires external FFmpeg and libjpeg libraries
- Higher minimum deployment targets (iOS 16, macOS 13)
- No built‑in caching or image manipulation beyond size/quality
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
On Linux install libavformat, libavcodec, libavutil, libswscale and libjpeg. No build_runner or codegen needed.
final plugin = FcNativeVideoThumbnail();
try {
final success = await plugin.saveThumbnailToFile(
srcFile: srcFile,
destFile: destFile,
width: 300,
height: 300,
quality: 90,
);
final bytes = await plugin.saveThumbnailToBytes(
srcFile: srcFile,
width: 300,
height: 300,
quality: 90,
);
} catch (e) {
// handle error
}Alternatives
Packages that do the same job and could replace fc_native_video_thumbnail.
- v_video_compressor
Flutter plugin for video compression and thumbnail generation using native APIs.
83Compare - stream_thumbnail
Create thumbnail images from local video files or URLs as bytes or files.
82Compare - video_player_android
Android implementation of the video_player plugin
88Compare - video_player_avfoundation
iOS and macOS implementation of the video_player plugin
86Compare
Works with
Packages commonly used together with fc_native_video_thumbnail: ones it builds on, ones built on it, and its own family.
- plugin_platform_interfacefc_native_video_thumbnail depends on itReusable base class for platform interfaces of Flutter federated plugins.
- fc_native_image_resizeSame familyA Flutter plugin to resize images via native APIs.
- common_utils2Built on fc_native_video_thumbnailProduction-focused Flutter utilities for notifications, storage, connectivity, and media.