extract_video_frame 0.0.1
extract_video_frame: ^0.0.1 copied to clipboard
A Dart package for extracting a video frame at a specific timestamp with consistent behavior across platforms.
ποΈ extract_video_frame #
A Dart package for extracting a video frame at a specific timestamp with consistent behavior across platforms.
Currently supports macOS and Windows, more platforms coming soon (your contributions are welcome!).
β¨ Features #
- Extract a frame from a video file at any point in time.
- Returns a
ui.Imagefor seamless use in Flutter apps. - Consistent behavior across supported platforms.
- Clean and easy-to-use API.
π¦ Installation #
Add the package to your pubspec.yaml:
dependencies:
extract_video_frame: ^<latest_version>
or run
flutter pub add extract_video_frame
Then run:
flutter pub get
π Usage #
import 'package:extract_video_frame/extract_video_frame.dart';
import 'dart:ui' as ui;
Future<void> getFrame() async {
final ui.Image frame = await extractVideoFrameAt(
videoFilePath: '/path/to/video.mp4',
positionInSeconds: 3.5, // Get frame at 3.5 seconds
);
// Use the frame as needed (e.g., convert to PNG, display in UI, etc.)
}
π₯οΈ Platform Support #
- β Windows
- β macOS
- π§ Linux
- π§ iOS
- π§ Android
- π§ Web
Want to see this work on more platforms? Contributions are very welcome!
π€ Contributing #
Got an idea? Found a bug? Want to help add platform or format support?
Feel free to open:
- Issues
- Feature requests
- Pull requests
Every bit helps make extract_video_frame more powerful and accessible!