Aus öffentlichen Paketdaten erstellte Orientierung.
Ein Flutter-Paket, das für die Videocutting in mobilen Anwendungen entwickelt wurde. Es ermöglicht Benutzern, Videodateien abzurufen, sie zwischen benutzerdefinierten Start- und Endzeiten zu schneiden und die resultierenden Clips im Dateisystem des Geräts zu speichern. Das Paket unterstützt sowohl Android als auch iOS und bietet eine nahtlose Erfahrung für Multimedia-Editing direkt in Apps. Es ist ideal für Anwendungen, die grundlegende Video-Manipulationen erfordern, ohne auf externe Dienste angewiesen zu sein.
Anwendungsfälle
Zuschneiden von vom Benutzer hochgeladenen Videos
Kurze Videoclips aus längeren Aufnahmen erstellen
Video-Editing in soziale Medien-Apps integrieren
Videoinhalte für die Freigabe vorbereiten
Tutorial- oder Demovideos bearbeiten
Geschnittene Videos lokal speichern
Hauptmerkmale
Videos aus dem Gerätespeicher abrufen
Videoclips mit präziser Zeitwahl zuschneiden
Geschnittene Videos in die Dateisystem speichern
Unterstützt Android und iOS
Einfache API für die Integration
Erhält die ursprüngliche Videoqualität
Geeignet für
Mobile Apps, die Videobearbeitung benötigen
Soziale Medien oder Content-Erstellungstools
Bildungs- oder Anleitungs-Apps
Apps, die benutzererzeugten Videoinhalt verarbeiten
Entwickler, die Multimedia-Editoren erstellen
Hinweise
Erfordert Dateisystemberechtigungen unter Android und iOS
Große Videodateien können die Leistung beeinträchtigen
Beschränkt auf grundlegende Trimmen (keine erweiterten Bearbeitungen)
Kann die Behandlung großer Dateigrößen erfordern
Abhängig von den nativen Plattformfunktionen für die Videobearbeitung
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
A Flutter package for trimming videos
Features
Customizable video trimmer.
Supports two types of trim viewer, fixed length and scrollable.
Video playback control.
Retrieving and storing video file.
Also, supports conversion to GIF.
NOTE: Versions 5.0.0 and above uses a native video trimmer without the overhead of FFmpeg. Have a look at the Changelog for breaking changes if you are below version 5.0.0.
Following image shows the structure of the TrimViewer. It consists of the Duration on top (displaying the start, end, and scrubber time), TrimArea consisting of the thumbnails, and TrimEditor which is an overlay that let's you select a portion from the video.
Example
The example app running on an iPhone 13 Pro device:
Usage
Add the dependency video_trimmer to your pubspec.yaml file:
For using main version of FFmpeg package:
dependencies:video_trimmer:^5.0.0
Android configuration
No additional configuration is needed for using on Android platform. You are good to go!
iOS configuration
Add the following keys to your Info.plist file, located in <project root>/ios/Runner/Info.plist:
<key>NSCameraUsageDescription</key>
<string>Used to demonstrate image picker plugin</string><key>NSMicrophoneUsageDescription</key><string>Used to capture audio for image picker plugin</string><key>NSPhotoLibraryUsageDescription</key><string>Used to demonstrate image picker plugin</string>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.