1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] how i can save overlay text box with a video in gallery by using ffmpeg?

Discussão em 'Mobile' iniciado por Stack, Setembro 10, 2024.

  1. Stack

    Stack Membro Participativo

    final escapedOverlayText = overlayText.replaceAll(''', '\''); final command = '-i $videoPath -vf "drawtext=text='$escapedOverlayText':x=10:y=10:fontsize=24:fontcolor=white" -c:a copy $outputPath';

    print('Executing command: $command');

    final session = await FFmpegKit.execute(command);
    final returnCode = await session.getReturnCode();
    print('here is errror Return code: $returnCode');


    that those section of code where this ffmpeg returns the following error I/flutter ( 6329): here is errror Return code: 1 I/flutter ( 6329): FFmpeg failed with return code: 1

    i am trying to save the video with overlay text data in the gallery.

    Continue reading...

Compartilhe esta Página