![format of audiobook builder format of audiobook builder](https://www.inta-audio.com/images/behringer-q1202usb-xenyx-small-format-mixer-p11817-31857_medium.jpg)
I also calculated the direction in which the slider start or end position can be dragged according to the position of the pointer, and determine whether the start point or the end point of the slider to be dragged.Īnd, the onHorizontalDragEnd callback is executed while the pointer is no longer touching the screen. Here, I have tried to give the painter a boundary so that it can’t slide beyond the start or the end point of the video. While the pointed is in motion the onHorizontalDragUpdate callback is active. I have used it to sense whether the pointer is near to the start position or near to the end position and move the slider accordingly. The onHorizontalDragStart callback is executed as soon the pointer touches the screen at some position and just starts dragging horizontally.
![format of audiobook builder format of audiobook builder](https://s.studiobinder.com/wp-content/uploads/2016/10/Film-Production-Stripboard-Shooting-Schedule-Template-Customizable-Locations-and-Colors-StudioBinder.png)
I have mainly used three callbacks of the GestureDetector widget: The Slider has been implemented using GestureDetector & CustomPaint widget. The two Text widgets placed in the two top corners show the start position and the end position of the trimmed video. The images in the background have been generated from the video, at different positions by diving the whole video length into the number of parts to be displayed on the TrimEditor. Let’s come to the most interesting part now, the UI design of the video trimmer. saveTrimmedVideo(startValue: _startValue, endValue: _endValue). Saving the trimmed video: await _trimmer.
#Format of audiobook builder mp4#
externalStorageDirectory: Supports only Android platform, accessible externallyīy default, the trimmed videos are stored in the MP4 format inside a folder called Trimmer in the chosen directory, and the file name follows the format: _trimmed.įor loading video: final Trimmer _trimmer = Trimmer() File _videoFile = await _trimmer.loadVideo().applicationDocumentsDirectory: Only accessible from inside the app.temporaryDirectory: Only accessible from inside the app, can be cleared at anytime.The trimmed video can be saved in either of the three directories defined in the StorageDir class. scaleGIF: To define the width of the output GIF, and the height is scaled accordingly as per the aspect ratio.fpsGIF: For setting an FPS value for the output GIF.If you want the output as a GIF then there are two additional options available: The formats can be selected from the class FileFormat. The plugin supports most of the video formats as the inputand the output trimmed video can be saved in formats: MP4, MKV, MOV, FLV, AVI, WVM as well as GIF. Support for advanced FFmpeg custom commands.
![format of audiobook builder format of audiobook builder](https://images-na.ssl-images-amazon.com/images/I/41aawrMJvlL._SY291_BO1,204,203,200_QL40_ML2_.jpg)
The package supports most of the video formats which are widely used, like MP4, MKV, MOV, FLV, AVI, WVM as well as GIF for saving the output video.