2

Description :

I'm working on slide show app. Where I can import a video , add on it sound + text (subtitles and stuff) Then render it & save it locally or share it on social media. I've managed doing the first part with this package.

But I have 3 problems :

First: However I'm just putting text widgets overlaid onto the video player.

Second : How can I input a certain sound on the video?

Third : After all that , How can I render the output video which I can save it locally or share it?

Mahmoud Ashour
  • 327
  • 4
  • 11

2 Answers2

0

I think you could theoretically make it seem like you are combining video and audio based on how you render them, however to do the third it looks like you would need to get into video editing. Doing it from scratch could be quite a task, and I know in java there is ffmeg but not sure about dart. Here is another stackoverflow discussion that has more on the matter

Video Editor in Flutter using dart

Pav Johnson
  • 132
  • 7
0

There is now a high-level render package that heavily optimizes the approach of repaint boundary capturing.

Wrap you widget with Renderwidget:

import 'package:render/render.dart';

final controller = RenderController();

@override
Widget build(BuildContext context) {
   return Render(
      controller: controller,
      child: Container(),
   );
}

And then capture the motion with the controller:

final result = await renderController.captureMotion(
     duration,
     format: Format.gif,
);

final file = result.output;

Paul
  • 1,349
  • 1
  • 14
  • 26