'Divide a video (File / XFile) in Flutter
As the title suggest, I'm trying to divide a video that is in File or XFile format into 2 or more parts.
The video can be recorded or picked up from phone photos/gallery (think of image_picker or camera packages).
Thing is, I'm trying to convert first the video from File to an <Uint8List>[], divide that new List of Uint8 into N parts and then using writeAsBytes() method to write files from each of the parts.
The problem I'm having is that videos are not being correctly written therefore cannot be played.
Am I in the right path? What Am I missing?
I'm not sure about using flutter_ffmpeg and divide the whole video as per phone's performance / battery consumption. (Could be hours long video).
Thanks !
Tried to divide a <File> into parts but cannot find the right way.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
