flutter_captions 0.0.1 copy "flutter_captions: ^0.0.1" to clipboard
flutter_captions: ^0.0.1 copied to clipboard

A flutter library to add caption to a video.

Flutter Captions #

A Flutter library for adding captions to a video.

Installation #

Example #

You can find the example project here in this repository.

Usage #

Initialize CaptionWriter

final writer = CaptionWriter();

or

final writer = CaptionWriter( decoration: CaptionWriterDecoration(

      postion: CaptionWriterPostion.BottomCenter,
      fontSize: 12,
      margins: const EdgeInsets.all(24),
      shadow: 0.5,
      outline: 0,
      fontName: 'Arial',
      fontColor: Colors.white,
      bold: false,
      italic: false,
      underlined: false,
      borderStyle: 0,
      wrapStyle: 0,
      outlineColor: Colors.amber));

Adds caption and return output file

String out = await writer.process(File(path), [ CaptionWriterParams(

              text: 'Hello',
              time: CaptionWriterTimestamp(start: 65, end: 6500),
            ),
            CaptionWriterParams(
              text: 'Bye',
              time: CaptionWriterTimestamp(start: 6500, end: 16500),
            )
          \]);

Caption Postions #

  • BottomLeft
  • BottomCenter
  • BottomRight
  • CenterLeft
  • Center
  • CenterRight
  • TopLeft
  • TopCenter
  • TopRight
1
likes
130
pub points
52%
popularity

Publisher

unverified uploader

A flutter library to add caption to a video.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, ffmpeg_kit_flutter_full, flutter, path_provider

More

Packages that depend on flutter_captions